Subversion Repositories ALCASAR

Rev

Rev 40 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 40 Rev 113
Line 52... Line 52...
52
 
52
 
53
?>
53
?>
54
 
54
 
55
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
55
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
56
<link rel="stylesheet" href="/css/style.css">
56
<link rel="stylesheet" href="/css/style.css">
-
 
57
<script language="javascript" type="text/javascript">
-
 
58
function formControl(){
-
 
59
	var myregex = /[\S]+/gi; //un ou plusieurs caractères non blanc" (tous les caractères sauf espace, retour chariot, tabulation, saut de ligne, saut de page).
-
 
60
	if (myregex.test(document.newgroup.login.value)){
-
 
61
		document.newgroup.create.value=1;
-
 
62
		return true;
-
 
63
	} else {
-
 
64
		alert("Nom du groupe invalide.");//non internationnalisé
-
 
65
		return false;
-
 
66
	}
-
 
67
}
-
 
68
</script>
57
</head>
69
</head>
58
<body>
70
<body>
59
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
71
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
60
	<tr><th><? echo "$l_frame_top"; ?></th></tr>
72
	<tr><th><? echo "$l_frame_top"; ?></th></tr>
61
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
73
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
Line 95... Line 107...
95
		if (is_file("../lib/$config[general_lib_type]/group_info.php"))
107
		if (is_file("../lib/$config[general_lib_type]/group_info.php"))
96
			include("../lib/$config[general_lib_type]/group_info.php");
108
			include("../lib/$config[general_lib_type]/group_info.php");
97
	}
109
	}
98
}
110
}
99
?>
111
?>
100
   <form method=post>
112
   <form name="newgroup" method=post>
101
      <input type=hidden name=create value="0">
113
      <input type=hidden name=create value="0">
102
      <input type=hidden name=show value="0">
114
      <input type=hidden name=show value="0">
103
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
115
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
104
<?php
116
<?php
105
	echo <<<EOM
117
	echo <<<EOM
Line 170... Line 182...
170
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
182
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
171
						break;
183
						break;
172
					case 'Max-Monthly-Session' :
184
					case 'Max-Monthly-Session' :
173
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
185
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
174
						break;
186
						break;
-
 
187
					case 'ChilliSpot-Max-Input-Octets' :
-
 
188
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
-
 
189
						break;
-
 
190
					case 'ChilliSpot-Max-Output-Octets' :
-
 
191
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
-
 
192
						break;
-
 
193
					case 'ChilliSpot-Max-Total-Octets' :
-
 
194
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
-
 
195
						break;
-
 
196
					case 'ChilliSpot-Bandwidth-Max-Up' :
-
 
197
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
-
 
198
						break;
-
 
199
					case 'ChilliSpot-Bandwidth-Max-Down' :
-
 
200
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
-
 
201
						break;
-
 
202
					case 'WISPr-Redirection-URL' :
-
 
203
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
-
 
204
						break;
175
					default :
205
					default :
176
						print <<<EOM
206
						print <<<EOM
177
<td>
207
<td>
178
<select name=$oper_name>
208
<select name=$oper_name>
179
<option $selected[$op_eq] value="=">=
209
<option $selected[$op_eq] value="=">=
Line 204... Line 234...
204
	}
234
	}
205
echo "</table><BR>";
235
echo "</table><BR>";
206
if ($create == 1)
236
if ($create == 1)
207
	echo "<input type=submit class=button value=\"Afficher le groupe\" OnClick=\"this.form.show.value=1\">";
237
	echo "<input type=submit class=button value=\"Afficher le groupe\" OnClick=\"this.form.show.value=1\">";
208
	else
238
	else
209
	echo "<input type=submit class=button value=\"Cr&eacute;er\" OnClick=\"this.form.create.value=1\">";
239
	echo "<input type=submit class=button value=\"Cr&eacute;er\" OnClick=\"return formControl();\">";
210
?>
240
?>
211
<br><br>
241
<br><br>
212
</form>
242
</form>
213
	</td></tr>
243
	</td></tr>
214
</table>
244
</table>