Subversion Repositories ALCASAR

Rev

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

Rev 2006 Rev 2319
Line 1... Line 1...
1
<?php
1
<?php
-
 
2
# $Id: group_new.php 2319 2017-07-04 23:21:40Z tom.houdayer $
-
 
3
 
-
 
4
//Gestion de la langue
-
 
5
if (is_file("../lib/langues.php"))
-
 
6
	include("../lib/langues.php");
-
 
7
 
-
 
8
require('/etc/freeradius-web/config.php');
-
 
9
 
-
 
10
if (!isset ($create)) $create=0;
-
 
11
if (!isset ($login)) $login='';
-
 
12
if (!isset ($selected)) $selected=array();
-
 
13
 
-
 
14
require('../lib/attrshow.php');
-
 
15
require('../lib/defaults.php');
-
 
16
require("../lib/$config[general_lib_type]/group_info.php");
2
 
17
 
3
//update Filter-Id for protocol filtering
18
//update Filter-Id for protocol filtering
4
if (isset($_POST['Filter-Proto']) && isset($_POST['Filter-Id']))
19
if (isset($_POST['Filter-Proto']) && isset($_POST['Filter-Id']))
5
{
20
{
6
	$upId = (int)$_POST['Filter-Proto'];
21
	$upId = (int)$_POST['Filter-Proto'];
Line 8... Line 23...
8
	$upId = $upId+$downId;
23
	$upId = $upId+$downId;
9
	$upId = str_pad($upId, 8, '0', STR_PAD_LEFT);
24
	$upId = str_pad($upId, 8, '0', STR_PAD_LEFT);
10
	$_POST['Filter-Id'] = $upId;
25
	$_POST['Filter-Id'] = $upId;
11
}
26
}
12
 
27
 
13
if (!isset ($create)) $create=0;
-
 
14
if (!isset ($login)) $login='';
-
 
15
if (!isset ($selected)) $selected=array();
-
 
16
 
-
 
17
/*if(!isset($selected))
-
 
18
{
-
 
19
	$selected['username'] = '';
-
 
20
	$selected['name'] = '';
-
 
21
	$selected['department'] = '';
-
 
22
	$selected['radius'] = '';
-
 
23
	$selected['Expiration'] = '';
-
 
24
	$selected['Max-All-Session'] = '';
-
 
25
	$selected['Session-Timeout'] = '';
-
 
26
	$selected['Max-Daily-Session'] = '';
-
 
27
	$selected['Max-Monthly-Session'] = '';
-
 
28
	$selected['Simultaneous-Use'] = '';
-
 
29
	$selected['Login-Time'] = '';
-
 
30
	$selected['ChilliSpot-Max-Input-Octets'] = '';
-
 
31
	$selected['ChilliSpot-Max-Total-Octets'] = '';
-
 
32
	$selected['ChilliSpot-Bandwidth-Max-Up'] = '';
-
 
33
	$selected['ChilliSpot-Bandwidth-Max-Down'] = '';
-
 
34
	$selected['ChilliSpot-Max-Output-Octets'] = '';
-
 
35
	$selected['WISPr-Redirection-URL'] = '';
-
 
36
}*/
-
 
37
 
-
 
38
//Gestion de la langue
-
 
39
if (is_file("../lib/langues.php"))
-
 
40
	include("../lib/langues.php");
-
 
41
require('/etc/freeradius-web/config.php');
-
 
42
 
-
 
43
if ($config['general_lib_type'] != 'sql'){
28
if ($config['general_lib_type'] != 'sql'){
44
	echo <<<EOM
29
	echo <<<EOM
45
<title>$l_title</title>
30
<title>$l_title</title>
46
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
31
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
47
<link rel="stylesheet" href="style.css">
32
<link rel="stylesheet" href="style.css">
Line 53... Line 38...
53
</html>
38
</html>
54
EOM;
39
EOM;
55
        exit();
40
        exit();
56
}
41
}
57
 
42
 
58
require('../lib/attrshow.php');
-
 
59
require('../lib/defaults.php');
-
 
60
require("../lib/$config[general_lib_type]/group_info.php");
-
 
61
 
43
 
62
if ($config['general_lib_type'] == 'sql' && $config['sql_use_operators'] == 'true'){
44
if (false && /* Hide operator column */ $config['general_lib_type'] == 'sql' && $config['sql_use_operators'] == 'true'){
63
	$colspan=2;
45
	$colspan=2;
64
	$show_ops=1;
46
	$show_ops=1;
65
	include_once("../lib/operators.php");
47
	include_once("../lib/operators.php");
66
	if(!isset($selected[$op_eq])) $selected[$op_eq] = '';
48
	if(!isset($selected[$op_eq])) $selected[$op_eq] = '';
67
}else{
49
}else{
68
	$show_ops = 0;
50
	$show_ops = 0;
69
	$colspan=1;
51
	$colspan=1;
70
}
52
}
71
?>
53
?>
72
 
-
 
-
 
54
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
73
<html><head><title>New group</title>
55
<html><head><title>New group</title>
74
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
56
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
75
<link rel="stylesheet" href="/css/style.css">
57
<link rel="stylesheet" href="/css/style.css">
76
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
58
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
77
<script type="text/javascript" src="/js/epoch_classes.js"></script>
59
<script type="text/javascript" src="/js/epoch_classes.js"></script>
Line 82... Line 64...
82
window.onload = function () {
64
window.onload = function () {
83
	dp_cal  = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
65
	dp_cal  = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
84
};
66
};
85
/*Fin calendrier*/
67
/*Fin calendrier*/
86
</script>
68
</script>
-
 
69
<script type="text/javascript">
-
 
70
	function showAdvancedFields(show) {
-
 
71
		var form = document.forms['newgroup'];
-
 
72
		var btn_show = document.getElementById('show-advanced-fields');
-
 
73
		var btn_hide = document.getElementById('hide-advanced-fields');
-
 
74
 
-
 
75
		if (show) {
-
 
76
			btn_hide.style.display = null;
-
 
77
			btn_show.style.display = 'none';
-
 
78
			form.className += ' hide-advanced-fields';
-
 
79
		} else {
-
 
80
			btn_show.style.display = null;
-
 
81
			btn_hide.style.display = 'none';
-
 
82
			form.className = form.className.replace(' hide-advanced-fields', '');
-
 
83
 
-
 
84
		}
-
 
85
	}
-
 
86
</script>
-
 
87
<style type="text/css">
-
 
88
	.hide-advanced-fields .advanced-field {
-
 
89
		display: none;
-
 
90
	}
-
 
91
</style>
87
</head>
92
</head>
88
<body>
93
<body>
89
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
94
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
90
	<tr><th><? echo "$l_groups_managment"; ?></th></tr>
95
	<tr><th><? echo "$l_groups_managment"; ?></th></tr>
91
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
96
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
Line 126... Line 131...
126
			include("../lib/$config[general_lib_type]/group_info.php");
131
			include("../lib/$config[general_lib_type]/group_info.php");
127
	}
132
	}
128
}
133
}
129
if ($create == 0){
134
if ($create == 0){
130
?>
135
?>
131
   <form name="newgroup" method=post>
136
   <form name="newgroup" method="post" class="">
132
      <input type=hidden name=create value="0">
137
      <input type="hidden" name="create" value="0">
133
      <input type=hidden name=show value="0">
138
      <input type="hidden" name="show" value="0">
134
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
139
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
135
<?php
140
<?php
136
	echo <<<EOM
141
	echo <<<EOM
137
	<tr>
142
	<tr>
138
		<td class="etiquette" colspan=$colspan>
143
		<td class="etiquette" colspan=$colspan>
Line 180... Line 185...
180
		}
185
		}
181
		switch ($key)
186
		switch ($key)
182
		{
187
		{
183
		// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.)
188
		// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.)
184
			case 'Simultaneous-Use' :
189
			case 'Simultaneous-Use' :
185
				$advanced=1;
190
				$advanced = false;
186
				$help_link="help/simultaneous_use_help.html";
191
				$help_link = "help/simultaneous_use_help.html";
187
				$desc=$l_simultaneous_use;
192
				$desc = $l_simultaneous_use;
188
				break;
193
				break;
189
			case 'Max-All-Session' :
194
			case 'Max-All-Session' :
190
				$advanced=1;
195
				$advanced = false;
191
				$help_link="help/max_all_session_help.html";
196
				$help_link = "help/max_all_session_help.html";
192
				$desc=$l_max_all_session;
197
				$desc = $l_max_all_session;
193
				break;
198
				break;
194
			case 'Session-Timeout' :
199
			case 'Session-Timeout' :
195
				$advanced=1;
200
				$advanced = true;
196
				$help_link="help/session_timeout_help.html";
201
				$help_link = "help/session_timeout_help.html";
197
				$desc=$l_session_timeout;
202
				$desc = $l_session_timeout;
198
				break;
203
				break;
199
			case 'Max-Daily-Session' :
204
			case 'Max-Daily-Session' :
200
				$advanced=1;
205
				$advanced = true;
201
				$help_link="help/session_timeout_help.html";
206
				$help_link = "help/session_timeout_help.html";
202
				$desc=$l_daily_timeout;
207
				$desc = $l_daily_timeout;
203
				break;
208
				break;
204
			case 'Max-Monthly-Session' :
209
			case 'Max-Monthly-Session' :
205
				$advanced=1;
210
				$advanced = true;
206
				$help_link="help/session_timeout_help.html";
211
				$help_link = "help/session_timeout_help.html";
207
				$desc=$l_monthly_timeout;
212
				$desc = $l_monthly_timeout;
208
				break;
213
				break;
209
			case 'Login-Time' :
214
			case 'Login-Time' :
210
				$advanced=1;
215
				$advanced = true;
211
				$help_link="help/login_time_help.html";
216
				$help_link = "help/login_time_help.html";
212
				$desc=$l_login_time;
217
				$desc = $l_login_time;
213
				break;
218
				break;
214
			case 'Expiration' :
219
			case 'Expiration' :
215
				$advanced=1;
220
				$advanced = false;
216
				$help_link="help/expiration_help.html";
221
				$help_link = "help/expiration_help.html";
217
				$desc=$l_expiration;
222
				$desc = $l_expiration;
218
				break;
223
				break;
219
			case 'ChilliSpot-Max-Input-Octets' :
224
			case 'ChilliSpot-Max-Input-Octets' :
220
				$advanced=1;
225
				$advanced = true;
221
				$help_link="help/chillispot_max_input_octets_help.html";
226
				$help_link = "help/chillispot_max_input_octets_help.html";
222
				$desc=$l_max_input_octets;
227
				$desc = $l_max_input_octets;
223
				break;
228
				break;
224
			case 'ChilliSpot-Max-Output-Octets' :
229
			case 'ChilliSpot-Max-Output-Octets' :
225
				$advanced=1;
230
				$advanced = true;
226
				$help_link="help/chillispot_max_output_octets_help.html";
231
				$help_link = "help/chillispot_max_output_octets_help.html";
227
				$desc=$l_max_output_octets;
232
				$desc = $l_max_output_octets;
228
				break;
233
				break;
229
			case 'ChilliSpot-Max-Total-Octets' :
234
			case 'ChilliSpot-Max-Total-Octets' :
230
				$advanced=1;
235
				$advanced = true;
231
				$help_link="help/chillispot_max_total_octets_help.html";
236
				$help_link = "help/chillispot_max_total_octets_help.html";
232
				$desc=$l_max_total_octets;
237
				$desc = $l_max_total_octets;
233
				break;
238
				break;
234
			case 'ChilliSpot-Bandwidth-Max-Up' :
239
			case 'ChilliSpot-Bandwidth-Max-Up' :
235
				$advanced=1;
240
				$advanced = true;
236
				$help_link="help/chillispot_bandwidth_max_up_help.html";
241
				$help_link = "help/chillispot_bandwidth_max_up_help.html";
237
				$desc=$l_max_bandwidth_up;
242
				$desc = $l_max_bandwidth_up;
238
				break;
243
				break;
239
			case 'ChilliSpot-Bandwidth-Max-Down' :
244
			case 'ChilliSpot-Bandwidth-Max-Down' :
240
				$advanced=1;
245
				$advanced = true;
241
				$help_link="help/chillispot_bandwidth_max_down_help.html";
246
				$help_link = "help/chillispot_bandwidth_max_down_help.html";
242
				$desc=$l_max_bandwidth_down;
247
				$desc = $l_max_bandwidth_down;
243
				break;
248
				break;
244
			case 'WISPr-Redirection-URL' :
249
			case 'WISPr-Redirection-URL' :
245
				$advanced=1;
250
				$advanced = true;
246
				$help_link="help/wispr_redirection_url_help.html";
251
				$help_link = "help/wispr_redirection_url_help.html";
247
				$desc=$l_wispr_redirection;
252
				$desc = $l_wispr_redirection;
248
				break;
253
				break;
249
			case 'Filter-Id' :
254
			case 'Filter-Id' :
250
				$advanced=1;
255
				$advanced = false;
251
				$help_link="help/filtering_help.html";
256
				$help_link = "help/filtering_help.html";
252
				$desc=$l_filtering;
257
				$desc = $l_filtering;
253
				break;
258
				break;
254
			default:
259
			default:
255
				$advanced=1;
260
				$advanced = true;
256
				break;
261
				break;
257
		}
262
		}
258
//		if ($advanced){
-
 
259
//			print <<<EOM
-
 
260
//			<tr>
263
 
261
//				<td class="etiquette">
264
		$advancedField = ($advanced) ? ' class="advanced-field"' : '';
262
//				$desc
-
 
263
//				</td>
-
 
264
//EOM;
-
 
265
//		}
265
 
266
		if ($show_ops && $advanced){
266
		if ($show_ops){
267
		print <<<EOM
267
		print <<<EOM
268
			<tr>
268
			<tr$advancedField>
269
			<td class="etiquette">
269
			<td class="etiquette">
270
			<a href="$help_link" target=help onclick=window.open("$help_link","help","width=600,height=250,toolbar=no,scrollbars=no,resizable=yes") title="$l_click_for_help"><font color="blue">$desc</font></a>
270
			<a href="$help_link" target=help onclick="window.open('$help_link','help','width=600,height=250,toolbar=no,scrollbars=no,resizable=yes')" title="$l_click_for_help"><font color="blue">$desc</font></a>
271
			</td>
271
			</td>
272
EOM;
272
EOM;
273
			switch ($key){
273
			switch ($key) {
274
				case 'Simultaneous-Use' :
274
				case 'Simultaneous-Use' :
275
				case 'Max-All-Session' :
275
				case 'Max-All-Session' :
276
				case 'Max-Daily-Session' :
276
				case 'Max-Daily-Session' :
277
				case 'Max-Weekly-Session' :
277
				case 'Max-Weekly-Session' :
278
				case 'Max-Monthly-Session' :
278
				case 'Max-Monthly-Session' :
279
				case 'Login-Time' :
279
				case 'Login-Time' :
280
				case 'Expiration' :
280
				case 'Expiration' :
281
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
281
					echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\":=\">:=";
282
					break;
282
					break;
283
				case 'Filter-Id' :
283
				case 'Filter-Id' :
284
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
284
					echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\":=\">:=";
285
					break;
285
					break;
286
				case 'Session-Timeout' :
286
				case 'Session-Timeout' :
287
				case 'ChilliSpot-Max-Input-Octets' :
287
				case 'ChilliSpot-Max-Input-Octets' :
288
				case 'ChilliSpot-Max-Output-Octets' :
288
				case 'ChilliSpot-Max-Output-Octets' :
289
				case 'ChilliSpot-Max-Total-Octets' :
289
				case 'ChilliSpot-Max-Total-Octets' :
290
				case 'ChilliSpot-Bandwidth-Max-Up' :
290
				case 'ChilliSpot-Bandwidth-Max-Up' :
291
				case 'ChilliSpot-Bandwidth-Max-Down' :
291
				case 'ChilliSpot-Bandwidth-Max-Down' :
292
				case 'WISPr-Redirection-URL' :
292
				case 'WISPr-Redirection-URL' :
293
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
293
					echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\"=\">=";
294
					break;
294
					break;
295
				default :
295
				default :
296
					print <<<EOM
296
					print <<<EOM
297
					<td>
297
					<td>
298
						<select name=$oper_name>
298
						<select name=\"$oper_name\">
299
							<option $selected[$op_eq] value="=">=
299
							<option $selected[$op_eq] value="=">=
300
							<option $selected[$op_set] value=":=">:=
300
							<option $selected[$op_set] value=":=">:=
301
							<option $selected[$op_add] value="+=">+=
301
							<option $selected[$op_add] value="+=">+=
302
							<option $selected[$op_eq2] value="==">==
302
							<option $selected[$op_eq2] value="==">==
303
							<option $selected[$op_ne] value="!=">!=
303
							<option $selected[$op_ne] value="!=">!=
Line 312... Line 312...
312
						</select>
312
						</select>
313
					</td>
313
					</td>
314
EOM;
314
EOM;
315
					break;
315
					break;
316
			}
316
			}
-
 
317
		} else {
-
 
318
			print <<<EOM
-
 
319
				<tr$advancedField>
-
 
320
				<td class="etiquette" colspan="$colspan">
-
 
321
				<a href="$help_link" target="help" onclick="window.open('$help_link','help','width=600,height=350,toolbar=no,scrollbars=no,resizable=yes')" title="$l_click_for_help"><font color="blue">$desc</font></a>
-
 
322
EOM;
-
 
323
			switch ($key) {
-
 
324
				case 'Simultaneous-Use' :
-
 
325
				case 'Max-All-Session' :
-
 
326
				case 'Max-Daily-Session' :
-
 
327
				case 'Max-Weekly-Session' :
-
 
328
				case 'Max-Monthly-Session' :
-
 
329
				case 'Login-Time' :
-
 
330
				case 'Expiration' :
-
 
331
					echo "<input type=\"hidden\" name=\"$oper_name\" value=\":=\">";
-
 
332
					break;
-
 
333
				case 'Filter-Id' :
-
 
334
					echo "<input type=\"hidden\" name=\"$oper_name\" value=\":=\">";
-
 
335
					break;
-
 
336
				case 'Session-Timeout' :
-
 
337
				case 'ChilliSpot-Max-Input-Octets' :
-
 
338
				case 'ChilliSpot-Max-Output-Octets' :
-
 
339
				case 'ChilliSpot-Max-Total-Octets' :
-
 
340
				case 'ChilliSpot-Bandwidth-Max-Up' :
-
 
341
				case 'ChilliSpot-Bandwidth-Max-Down' :
-
 
342
				case 'WISPr-Redirection-URL' :
-
 
343
					echo "<input type=\"hidden\" name=\"$oper_name\" value=\"=\">";
-
 
344
					break;
-
 
345
				default :
-
 
346
					print <<<EOM
-
 
347
						<select name=\"$oper_name\">
-
 
348
							<option $selected[$op_eq] value="=">=</option>
-
 
349
							<option $selected[$op_set] value=":=">:=</option>
-
 
350
							<option $selected[$op_add] value="+=">+=</option>
-
 
351
							<option $selected[$op_eq2] value="==">==</option>
-
 
352
							<option $selected[$op_ne] value="!=">!=</option>
-
 
353
							<option $selected[$op_gt] value=">">&gt;</option>
-
 
354
							<option $selected[$op_ge] value=">=">&gt;=</option>
-
 
355
							<option $selected[$op_lt] value="<">&lt;</option>
-
 
356
							<option $selected[$op_le] value="<=">&lt;=</option>
-
 
357
							<option $selected[$op_regeq] value="=~">=~</option>
-
 
358
							<option $selected[$op_regne] value="!~">!~</option>
-
 
359
							<option $selected[$op_exst] value="=*">=*</option>
-
 
360
							<option $selected[$op_nexst] value="!*">!*</option>
-
 
361
						</select>
-
 
362
EOM;
-
 
363
					break;
-
 
364
			}
-
 
365
			echo '</td>';
317
		}
366
		}
318
 
367
 
319
/*
368
/*
320
Ajout du choix d'unité (pour les durées limites de session, journée et de mois)
369
Ajout du choix d'unité (pour les durées limites de session, journée et de mois)
321
et d'un calendrier pour la date d'expiration
370
et d'un calendrier pour la date d'expiration
322
Sauf dans le cas de la visualisation
371
Sauf dans le cas de la visualisation
323
*/
372
*/
324
	if ($advanced){echo "<td>";}
373
	echo '<td>';
325
	if ($create==0 ){
374
	if ($create == 0) {
326
		switch ($name){
375
		switch ($name){
327
			/*
376
			/*
328
			Choix de l'unité heures, minutes ou secondes
377
			Choix de l'unité jour, heures, minutes ou secondes
329
			pour les durées limites de session,journée et de mois
378
			pour les durées limites max, de session,de journée et de mois
330
			*/
379
			*/
331
			case 'Session-Timeout' :
380
			case 'Session-Timeout' :
332
			case 'Max-Daily-Session' :
381
			case 'Max-Daily-Session' :
-
 
382
				/*valeur d'origine de durée limite */
-
 
383
				echo"<input type=\"text\" name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=10>";
-
 
384
				/* Choix d'unité*/
-
 
385
				echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newuser')\">
-
 
386
						<option value=\"s\" selected>s</option>
-
 
387
						<option value=\"m\" >m</option>
-
 
388
						<option value=\"H\" >H</option>
-
 
389
					</select>";
-
 
390
				break;
333
			case 'Max-Monthly-Session' :
391
			case 'Max-Monthly-Session' :
334
			case 'Max-All-Session' :
392
			case 'Max-All-Session' :
335
				/*valeur d'origine de durée limite */
393
				/*valeur d'origine de durée limite */
336
				echo"<input id =\"$name\" type=text name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=28>";
394
				echo"<input type=\"text\" name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=10>";
337
				/* Choix d'unité*/
395
				/* Choix d'unité*/
338
				echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newgroup')\">
396
				echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newuser')\">
339
						<option value=\"s\" selected>s</option>
397
						<option value=\"s\" selected>s</option>
340
						<option value=\"m\" >m</option>
398
						<option value=\"m\" >m</option>
341
						<option value=\"H\" >H</option>
399
						<option value=\"H\" >H</option>
-
 
400
						<option value=\"J\" >J</option>
342
					</select>";
401
					</select>";
343
				break;
402
				break;
344
			case 'Expiration' :
403
			case 'Expiration' :
345
				/*Ajout du calendrier pour choisir la date*/
404
				/*Ajout du calendrier pour choisir la date*/
346
				echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=35>";
405
				echo"<input id=\"popup_container\" type=\"text\" name=\"$name\" value=\"$val\" size=\"20\">";
347
				break;
406
				break;
348
			case 'Filter-Id' :
407
			case 'Filter-Id' :
349
				echo "<select name='Filter-Id'>";
408
				echo "<select name='Filter-Id'>";
350
				echo "<option value=\"00000000\">$l_filtering_none</option>";
409
				echo "<option value=\"\">$l_filtering_none</option>";
351
				echo "<option value=\"00000001\">$l_filtering_havp</option>";
410
				echo "<option value=\"00000001\">$l_filtering_havp</option>";
352
				echo "<option value=\"00000011\">$l_filtering_havp_bl</option>";
411
				echo "<option value=\"00000011\">$l_filtering_havp_bl</option>";
353
				echo "<option value=\"00000101\">$l_filtering_havp_wl</option>";
412
				echo "<option value=\"00000101\">$l_filtering_havp_wl</option>";
354
				echo "</select>";
413
				echo "</select>";
355
				break;
414
				break;
356
			default :
415
			default :
357
				if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
416
				echo "<input type=\"text\" name=\"$name\" value=\"$val\" size=\"20\">";
358
				break;
417
				break;
359
			}
418
		}
360
	}
419
	}
361
/*fin Ajout*/
420
/*fin Ajout*/
362
}
421
}
363
 
422
 
364
/*protocole filter*/
423
/*Network protocole filtering*/
365
print <<<EOM
424
print <<<EOM
366
<tr>
425
	<tr>
367
	<td class="etiquette" colspan=$colspan>
426
		<td class="etiquette" colspan="$colspan">
368
		$l_proto
-
 
-
 
427
		<a href="help/protocols_help.html" target="help" onclick="window.open('help/protocols_help.html','help','width=600,height=250,toolbar=no,scrollbars=no,resizable=yes')" title="$l_click_for_help"><font color="blue">$l_proto</font></a>
369
	</td>
428
		</td>
370
	<td width=20>
429
		<td width=20>
371
EOM;
430
EOM;
372
/*Choix de la langue du ticket d'impression*/
-
 
373
echo" <select name='Filter-Proto'>
431
	echo" <select name='Filter-Proto'>
374
		<option value=\"00000000\" selected>$l_proto_0</option>
432
			<option value=\"00000000\" selected>$l_proto_0</option>
375
		<option value=\"10000000\" >$l_proto_1</option>
433
			<option value=\"10000000\" >$l_proto_1</option>
376
		<option value=\"01000000\" >$l_proto_2</option>
434
			<option value=\"01000000\" >$l_proto_2</option>
377
		<option value=\"00100000\" >$l_proto_3</option>
435
			<option value=\"00100000\" >$l_proto_3</option>
378
	</select></td></tr>";
436
		</select></td></tr>";
379
 
-
 
380
	
-
 
381
echo "</table><BR>";
437
echo "</table><BR>";
382
}
438
}
383
if ($create == 1)
439
if ($create == 1)
384
	echo "<br/><center><a href=\"group_admin.php?login=$login\">$l_show_profile</a></center>";
440
	echo "<br/><center><a href=\"group_admin.php?login=$login\">$l_show_profile</a></center>";
385
else
441
else
386
	echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newgroup');\">";
442
	echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newgroup');\">";
-
 
443
	echo "<button type=\"button\" id =\"show-advanced-fields\" onclick=\"showAdvancedFields(true)\" style=\"float: right;\">$l_simple_menu</button>";
-
 
444
	echo "<button type=\"button\" id =\"hide-advanced-fields\" onclick=\"showAdvancedFields(false)\" style=\"float: right; display: none;\">$l_advanced_menu</button>";
387
?>
445
?>
388
<br><br>
446
<br><br>
389
</form>
447
</form>
390
	</td></tr>
448
	</td></tr>
391
</table>
449
</table>
392
</tr>
450
</tr>
393
</table>
451
</table>
-
 
452
</center>
394
</TD></TR>
453
</TD></TR>
395
</TABLE>
454
</TABLE>
396
</td></tr>
455
</td></tr>
397
</TABLE>
456
</TABLE>
398
</body>
457
</body>