Subversion Repositories ALCASAR

Rev

Rev 1895 | Rev 2319 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1895 Rev 2006
1
<?php
1
<?php
2
 
2
 
-
 
3
//update Filter-Id for protocol filtering
-
 
4
if (isset($_POST['Filter-Proto']) && isset($_POST['Filter-Id']))
-
 
5
{
-
 
6
	$upId = (int)$_POST['Filter-Proto'];
-
 
7
	$downId = (int)$_POST['Filter-Id'];
-
 
8
	$upId = $upId+$downId;
-
 
9
	$upId = str_pad($upId, 8, '0', STR_PAD_LEFT);
-
 
10
	$_POST['Filter-Id'] = $upId;
-
 
11
}
-
 
12
 
3
if (!isset ($create)) $create=0;
13
if (!isset ($create)) $create=0;
4
if (!isset ($login)) $login='';
14
if (!isset ($login)) $login='';
5
if (!isset ($selected)) $selected=array();
15
if (!isset ($selected)) $selected=array();
6
 
16
 
7
/*if(!isset($selected))
17
/*if(!isset($selected))
8
{
18
{
9
	$selected['username'] = '';
19
	$selected['username'] = '';
10
	$selected['name'] = '';
20
	$selected['name'] = '';
11
	$selected['department'] = '';
21
	$selected['department'] = '';
12
	$selected['radius'] = '';
22
	$selected['radius'] = '';
13
	$selected['Expiration'] = '';
23
	$selected['Expiration'] = '';
14
	$selected['Max-All-Session'] = '';
24
	$selected['Max-All-Session'] = '';
15
	$selected['Session-Timeout'] = '';
25
	$selected['Session-Timeout'] = '';
16
	$selected['Max-Daily-Session'] = '';
26
	$selected['Max-Daily-Session'] = '';
17
	$selected['Max-Monthly-Session'] = '';
27
	$selected['Max-Monthly-Session'] = '';
18
	$selected['Simultaneous-Use'] = '';
28
	$selected['Simultaneous-Use'] = '';
19
	$selected['Login-Time'] = '';
29
	$selected['Login-Time'] = '';
20
	$selected['ChilliSpot-Max-Input-Octets'] = '';
30
	$selected['ChilliSpot-Max-Input-Octets'] = '';
21
	$selected['ChilliSpot-Max-Total-Octets'] = '';
31
	$selected['ChilliSpot-Max-Total-Octets'] = '';
22
	$selected['ChilliSpot-Bandwidth-Max-Up'] = '';
32
	$selected['ChilliSpot-Bandwidth-Max-Up'] = '';
23
	$selected['ChilliSpot-Bandwidth-Max-Down'] = '';
33
	$selected['ChilliSpot-Bandwidth-Max-Down'] = '';
24
	$selected['ChilliSpot-Max-Output-Octets'] = '';
34
	$selected['ChilliSpot-Max-Output-Octets'] = '';
25
	$selected['WISPr-Redirection-URL'] = '';
35
	$selected['WISPr-Redirection-URL'] = '';
26
}*/
36
}*/
27
 
37
 
28
//Gestion de la langue
38
//Gestion de la langue
29
if (is_file("../lib/langues.php"))
39
if (is_file("../lib/langues.php"))
30
	include("../lib/langues.php");
40
	include("../lib/langues.php");
31
require('/etc/freeradius-web/config.php');
41
require('/etc/freeradius-web/config.php');
32
 
42
 
33
if ($config['general_lib_type'] != 'sql'){
43
if ($config['general_lib_type'] != 'sql'){
34
	echo <<<EOM
44
	echo <<<EOM
35
<title>$l_title</title>
45
<title>$l_title</title>
36
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
46
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
37
<link rel="stylesheet" href="style.css">
47
<link rel="stylesheet" href="style.css">
38
</head>
48
</head>
39
<body>
49
<body>
40
<center>
50
<center>
41
<b>This page is only available if you are using sql as general library type</b>
51
<b>This page is only available if you are using sql as general library type</b>
42
</body>
52
</body>
43
</html>
53
</html>
44
EOM;
54
EOM;
45
        exit();
55
        exit();
46
}
56
}
47
 
57
 
48
require('../lib/attrshow.php');
58
require('../lib/attrshow.php');
49
require('../lib/defaults.php');
59
require('../lib/defaults.php');
50
require("../lib/$config[general_lib_type]/group_info.php");
60
require("../lib/$config[general_lib_type]/group_info.php");
51
 
61
 
52
if ($config['general_lib_type'] == 'sql' && $config['sql_use_operators'] == 'true'){
62
if ($config['general_lib_type'] == 'sql' && $config['sql_use_operators'] == 'true'){
53
	$colspan=2;
63
	$colspan=2;
54
	$show_ops=1;
64
	$show_ops=1;
55
	include_once("../lib/operators.php");
65
	include_once("../lib/operators.php");
56
	if(!isset($selected[$op_eq])) $selected[$op_eq] = '';
66
	if(!isset($selected[$op_eq])) $selected[$op_eq] = '';
57
}else{
67
}else{
58
	$show_ops = 0;
68
	$show_ops = 0;
59
	$colspan=1;
69
	$colspan=1;
60
}
70
}
61
?>
71
?>
62
 
72
 
63
<html><head><title>New group</title>
73
<html><head><title>New group</title>
64
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
74
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
65
<link rel="stylesheet" href="/css/style.css">
75
<link rel="stylesheet" href="/css/style.css">
66
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
76
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
67
<script type="text/javascript" src="/js/epoch_classes.js"></script>
77
<script type="text/javascript" src="/js/epoch_classes.js"></script>
68
<script type="text/javascript" src="/js/fonctions.js"></script>
78
<script type="text/javascript" src="/js/fonctions.js"></script>
69
<script language="javascript" type="text/javascript">
79
<script language="javascript" type="text/javascript">
70
/*Insertion du calendrier*/
80
/*Insertion du calendrier*/
71
	var dp_cal;
81
	var dp_cal;
72
window.onload = function () {
82
window.onload = function () {
73
	dp_cal  = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
83
	dp_cal  = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
74
};
84
};
75
/*Fin calendrier*/
85
/*Fin calendrier*/
76
</script>
86
</script>
77
</head>
87
</head>
78
<body>
88
<body>
79
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
89
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
80
	<tr><th><? echo "$l_groups_managment"; ?></th></tr>
90
	<tr><th><? echo "$l_groups_managment"; ?></th></tr>
81
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
91
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
82
height="2"></td></tr>
92
height="2"></td></tr>
83
</TABLE>
93
</TABLE>
84
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
94
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
85
	<tr bgcolor="#666666"><td>
95
	<tr bgcolor="#666666"><td>
86
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
96
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
87
		<tr><td valign="middle" align="left">
97
		<tr><td valign="middle" align="left">
88
<center>
98
<center>
89
<table border=0 width=750 cellpadding=1 cellspacing=1>
99
<table border=0 width=750 cellpadding=1 cellspacing=1>
90
<tr valign=top>
100
<tr valign=top>
91
<td width=340></td>
101
<td width=340></td>
92
<td bgcolor="black" width=200>
102
<td bgcolor="black" width=200>
93
	<table border=0 width=100% cellpadding=2 cellspacing=0>
103
	<table border=0 width=100% cellpadding=2 cellspacing=0>
94
	<tr bgcolor="#907030" align=right valign=top><th>
104
	<tr bgcolor="#907030" align=right valign=top><th>
95
	<font color="white"><? echo "$l_group_create"; ?></font>
105
	<font color="white"><? echo "$l_group_create"; ?></font>
96
	</th></tr>
106
	</th></tr>
97
	</table>
107
	</table>
98
</td></tr>
108
</td></tr>
99
<tr bgcolor="black" valign=top><td colspan=2>
109
<tr bgcolor="black" valign=top><td colspan=2>
100
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
110
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
101
	<tr><td>
111
	<tr><td>
102
 
112
 
103
<?php
113
<?php
104
if (is_file("../lib/$config[general_lib_type]/group_info.php"))
114
if (is_file("../lib/$config[general_lib_type]/group_info.php"))
105
	include("../lib/$config[general_lib_type]/group_info.php");
115
	include("../lib/$config[general_lib_type]/group_info.php");
106
if ($create == 1){
116
if ($create == 1){
107
	if ($group_exists != "no"){
117
	if ($group_exists != "no"){
108
		echo <<<EOM
118
		echo <<<EOM
109
<b><i>$login</i> $l_already_exist</b>
119
<b><i>$login</i> $l_already_exist</b>
110
EOM;
120
EOM;
111
	}
121
	}
112
	else{
122
	else{
113
		if (is_file("../lib/$config[general_lib_type]/create_group.php"))
123
		if (is_file("../lib/$config[general_lib_type]/create_group.php"))
114
			include("../lib/$config[general_lib_type]/create_group.php");
124
			include("../lib/$config[general_lib_type]/create_group.php");
115
		if (is_file("../lib/$config[general_lib_type]/group_info.php"))
125
		if (is_file("../lib/$config[general_lib_type]/group_info.php"))
116
			include("../lib/$config[general_lib_type]/group_info.php");
126
			include("../lib/$config[general_lib_type]/group_info.php");
117
	}
127
	}
118
}
128
}
119
if ($create == 0){
129
if ($create == 0){
120
?>
130
?>
121
   <form name="newgroup" method=post>
131
   <form name="newgroup" method=post>
122
      <input type=hidden name=create value="0">
132
      <input type=hidden name=create value="0">
123
      <input type=hidden name=show value="0">
133
      <input type=hidden name=show value="0">
124
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
134
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
125
<?php
135
<?php
126
	echo <<<EOM
136
	echo <<<EOM
127
	<tr>
137
	<tr>
128
		<td class="etiquette" colspan=$colspan>
138
		<td class="etiquette" colspan=$colspan>
129
		$l_created_groups
139
		$l_created_groups
130
		</td><td>
140
		</td><td>
131
EOM;
141
EOM;
132
		if (!isset($existing_groups))
142
		if (!isset($existing_groups))
133
			echo "<b>$l_group_empty</b>\n";
143
			echo "<b>$l_group_empty</b>\n";
134
		else{
144
		else{
135
			echo "<select name=\"existing_groups\">\n";
145
			echo "<select name=\"existing_groups\">\n";
136
			foreach ($existing_groups as $group => $count)
146
			foreach ($existing_groups as $group => $count)
137
				echo "<option value=\"$group\">$group\n";
147
				echo "<option value=\"$group\">$group\n";
138
			echo "</select>\n";
148
			echo "</select>\n";
139
		}
149
		}
140
	echo <<<EOM
150
	echo <<<EOM
141
		</td>
151
		</td>
142
	</tr>
152
	</tr>
143
	<tr>
153
	<tr>
144
		<td class="etiquette" colspan=$colspan>
154
		<td class="etiquette" colspan=$colspan>
145
		$l_group_name
155
		$l_group_name
146
		</td><td>
156
		</td><td>
147
		<input type=text name="login" value="$login" size=35>
157
		<input type=text name="login" value="$login" size=35>
148
		</td>
158
		</td>
149
	</tr>
159
	</tr>
150
	<tr>
160
	<tr>
151
		<td class="etiquette" colspan=$colspan>
161
		<td class="etiquette" colspan=$colspan>
152
		$l_group_members
162
		$l_group_members
153
		</td><td>
163
		</td><td>
154
		<textarea name=members cols="50" wrap="PHYSICAL" rows=5></textarea>
164
		<textarea name=members cols="50" wrap="PHYSICAL" rows=5></textarea>
155
		</td>
165
		</td>
156
	</tr>
166
	</tr>
157
 
167
 
158
EOM;
168
EOM;
159
	foreach($show_attrs as $key => $desc){
169
	foreach($show_attrs as $key => $desc){
160
		$name = $attrmap["$key"];
170
		$name = $attrmap["$key"];
161
		if ($name == 'none')
171
		if ($name == 'none')
162
			continue;
172
			continue;
163
		$oper_name = $name . '_op';
173
		$oper_name = $name . '_op';
164
		if(isset($item_vals["$key"][0]) && $item_vals["$key"][0] != ''){
174
		if(isset($item_vals["$key"][0]) && $item_vals["$key"][0] != ''){
165
			$val = $item_vals["$key"][0];
175
			$val = $item_vals["$key"][0];
166
		} else if(isset($default_vals["$key"][0])) {
176
		} else if(isset($default_vals["$key"][0])) {
167
			$val = $default_vals["$key"][0];
177
			$val = $default_vals["$key"][0];
168
		} else {
178
		} else {
169
			$val = '';
179
			$val = '';
170
		}
180
		}
171
		switch ($key)
181
		switch ($key)
172
		{
182
		{
173
		// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.)
183
		// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.)
174
			case 'Simultaneous-Use' :
184
			case 'Simultaneous-Use' :
175
				$advanced=1;
185
				$advanced=1;
176
				$help_link="help/simultaneous_use_help.html";
186
				$help_link="help/simultaneous_use_help.html";
177
				$desc=$l_simultaneous_use;
187
				$desc=$l_simultaneous_use;
178
				break;
188
				break;
179
			case 'Max-All-Session' :
189
			case 'Max-All-Session' :
180
				$advanced=1;
190
				$advanced=1;
181
				$help_link="help/max_all_session_help.html";
191
				$help_link="help/max_all_session_help.html";
182
				$desc=$l_max_all_session;
192
				$desc=$l_max_all_session;
183
				break;
193
				break;
184
			case 'Session-Timeout' :
194
			case 'Session-Timeout' :
185
				$advanced=1;
195
				$advanced=1;
186
				$help_link="help/session_timeout_help.html";
196
				$help_link="help/session_timeout_help.html";
187
				$desc=$l_session_timeout;
197
				$desc=$l_session_timeout;
188
				break;
198
				break;
189
			case 'Max-Daily-Session' :
199
			case 'Max-Daily-Session' :
190
				$advanced=1;
200
				$advanced=1;
191
				$help_link="help/session_timeout_help.html";
201
				$help_link="help/session_timeout_help.html";
192
				$desc=$l_daily_timeout;
202
				$desc=$l_daily_timeout;
193
				break;
203
				break;
194
			case 'Max-Monthly-Session' :
204
			case 'Max-Monthly-Session' :
195
				$advanced=1;
205
				$advanced=1;
196
				$help_link="help/session_timeout_help.html";
206
				$help_link="help/session_timeout_help.html";
197
				$desc=$l_monthly_timeout;
207
				$desc=$l_monthly_timeout;
198
				break;
208
				break;
199
			case 'Login-Time' :
209
			case 'Login-Time' :
200
				$advanced=1;
210
				$advanced=1;
201
				$help_link="help/login_time_help.html";
211
				$help_link="help/login_time_help.html";
202
				$desc=$l_login_time;
212
				$desc=$l_login_time;
203
				break;
213
				break;
204
			case 'Expiration' :
214
			case 'Expiration' :
205
				$advanced=1;
215
				$advanced=1;
206
				$help_link="help/expiration_help.html";
216
				$help_link="help/expiration_help.html";
207
				$desc=$l_expiration;
217
				$desc=$l_expiration;
208
				break;
218
				break;
209
			case 'ChilliSpot-Max-Input-Octets' :
219
			case 'ChilliSpot-Max-Input-Octets' :
210
				$advanced=1;
220
				$advanced=1;
211
				$help_link="help/chillispot_max_input_octets_help.html";
221
				$help_link="help/chillispot_max_input_octets_help.html";
212
				$desc=$l_max_input_octets;
222
				$desc=$l_max_input_octets;
213
				break;
223
				break;
214
			case 'ChilliSpot-Max-Output-Octets' :
224
			case 'ChilliSpot-Max-Output-Octets' :
215
				$advanced=1;
225
				$advanced=1;
216
				$help_link="help/chillispot_max_output_octets_help.html";
226
				$help_link="help/chillispot_max_output_octets_help.html";
217
				$desc=$l_max_output_octets;
227
				$desc=$l_max_output_octets;
218
				break;
228
				break;
219
			case 'ChilliSpot-Max-Total-Octets' :
229
			case 'ChilliSpot-Max-Total-Octets' :
220
				$advanced=1;
230
				$advanced=1;
221
				$help_link="help/chillispot_max_total_octets_help.html";
231
				$help_link="help/chillispot_max_total_octets_help.html";
222
				$desc=$l_max_total_octets;
232
				$desc=$l_max_total_octets;
223
				break;
233
				break;
224
			case 'ChilliSpot-Bandwidth-Max-Up' :
234
			case 'ChilliSpot-Bandwidth-Max-Up' :
225
				$advanced=1;
235
				$advanced=1;
226
				$help_link="help/chillispot_bandwidth_max_up_help.html";
236
				$help_link="help/chillispot_bandwidth_max_up_help.html";
227
				$desc=$l_max_bandwidth_up;
237
				$desc=$l_max_bandwidth_up;
228
				break;
238
				break;
229
			case 'ChilliSpot-Bandwidth-Max-Down' :
239
			case 'ChilliSpot-Bandwidth-Max-Down' :
230
				$advanced=1;
240
				$advanced=1;
231
				$help_link="help/chillispot_bandwidth_max_down_help.html";
241
				$help_link="help/chillispot_bandwidth_max_down_help.html";
232
				$desc=$l_max_bandwidth_down;
242
				$desc=$l_max_bandwidth_down;
233
				break;
243
				break;
234
			case 'WISPr-Redirection-URL' :
244
			case 'WISPr-Redirection-URL' :
235
				$advanced=1;
245
				$advanced=1;
236
				$help_link="help/wispr_redirection_url_help.html";
246
				$help_link="help/wispr_redirection_url_help.html";
237
				$desc=$l_wispr_redirection;
247
				$desc=$l_wispr_redirection;
238
				break;
248
				break;
239
			case 'Filter-Id' :
249
			case 'Filter-Id' :
240
				$advanced=1;
250
				$advanced=1;
241
				$help_link="help/filtering_help.html";
251
				$help_link="help/filtering_help.html";
242
				$desc=$l_filtering;
252
				$desc=$l_filtering;
243
				break;
253
				break;
244
			default:
254
			default:
245
				$advanced=1;
255
				$advanced=1;
246
				break;
256
				break;
247
		}
257
		}
248
//		if ($advanced){
258
//		if ($advanced){
249
//			print <<<EOM
259
//			print <<<EOM
250
//			<tr>
260
//			<tr>
251
//				<td class="etiquette">
261
//				<td class="etiquette">
252
//				$desc
262
//				$desc
253
//				</td>
263
//				</td>
254
//EOM;
264
//EOM;
255
//		}
265
//		}
256
		if ($show_ops && $advanced){
266
		if ($show_ops && $advanced){
257
		print <<<EOM
267
		print <<<EOM
258
			<tr>
268
			<tr>
259
			<td class="etiquette">
269
			<td class="etiquette">
260
			<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>
261
			</td>
271
			</td>
262
EOM;
272
EOM;
263
			switch ($key){
273
			switch ($key){
264
				case 'Simultaneous-Use' :
274
				case 'Simultaneous-Use' :
265
				case 'Max-All-Session' :
275
				case 'Max-All-Session' :
266
				case 'Max-Daily-Session' :
276
				case 'Max-Daily-Session' :
267
				case 'Max-Weekly-Session' :
277
				case 'Max-Weekly-Session' :
268
				case 'Max-Monthly-Session' :
278
				case 'Max-Monthly-Session' :
269
				case 'Login-Time' :
279
				case 'Login-Time' :
270
				case 'Expiration' :
280
				case 'Expiration' :
271
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
281
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
272
					break;
282
					break;
273
				case 'Filter-Id' :
283
				case 'Filter-Id' :
274
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
284
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
275
					break;
285
					break;
276
				case 'Session-Timeout' :
286
				case 'Session-Timeout' :
277
				case 'ChilliSpot-Max-Input-Octets' :
287
				case 'ChilliSpot-Max-Input-Octets' :
278
				case 'ChilliSpot-Max-Output-Octets' :
288
				case 'ChilliSpot-Max-Output-Octets' :
279
				case 'ChilliSpot-Max-Total-Octets' :
289
				case 'ChilliSpot-Max-Total-Octets' :
280
				case 'ChilliSpot-Bandwidth-Max-Up' :
290
				case 'ChilliSpot-Bandwidth-Max-Up' :
281
				case 'ChilliSpot-Bandwidth-Max-Down' :
291
				case 'ChilliSpot-Bandwidth-Max-Down' :
282
				case 'WISPr-Redirection-URL' :
292
				case 'WISPr-Redirection-URL' :
283
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
293
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
284
					break;
294
					break;
285
				default :
295
				default :
286
					print <<<EOM
296
					print <<<EOM
287
					<td>
297
					<td>
288
						<select name=$oper_name>
298
						<select name=$oper_name>
289
							<option $selected[$op_eq] value="=">=
299
							<option $selected[$op_eq] value="=">=
290
							<option $selected[$op_set] value=":=">:=
300
							<option $selected[$op_set] value=":=">:=
291
							<option $selected[$op_add] value="+=">+=
301
							<option $selected[$op_add] value="+=">+=
292
							<option $selected[$op_eq2] value="==">==
302
							<option $selected[$op_eq2] value="==">==
293
							<option $selected[$op_ne] value="!=">!=
303
							<option $selected[$op_ne] value="!=">!=
294
							<option $selected[$op_gt] value=">">&gt;
304
							<option $selected[$op_gt] value=">">&gt;
295
							<option $selected[$op_ge] value=">=">&gt;=
305
							<option $selected[$op_ge] value=">=">&gt;=
296
							<option $selected[$op_lt] value="<">&lt;
306
							<option $selected[$op_lt] value="<">&lt;
297
							<option $selected[$op_le] value="<=">&lt;=
307
							<option $selected[$op_le] value="<=">&lt;=
298
							<option $selected[$op_regeq] value="=~">=~
308
							<option $selected[$op_regeq] value="=~">=~
299
							<option $selected[$op_regne] value="!~">!~
309
							<option $selected[$op_regne] value="!~">!~
300
							<option $selected[$op_exst] value="=*">=*
310
							<option $selected[$op_exst] value="=*">=*
301
							<option $selected[$op_nexst] value="!*">!*
311
							<option $selected[$op_nexst] value="!*">!*
302
						</select>
312
						</select>
303
					</td>
313
					</td>
304
EOM;
314
EOM;
305
					break;
315
					break;
306
			}
316
			}
307
		}
317
		}
308
 
318
 
309
/*
319
/*
310
Ajout du choix d'unité (pour les durées limites de session, journée et de mois)
320
Ajout du choix d'unité (pour les durées limites de session, journée et de mois)
311
et d'un calendrier pour la date d'expiration
321
et d'un calendrier pour la date d'expiration
312
Sauf dans le cas de la visualisation
322
Sauf dans le cas de la visualisation
313
*/
323
*/
314
	if ($advanced){echo "<td>";}
324
	if ($advanced){echo "<td>";}
315
	if ($create==0 ){
325
	if ($create==0 ){
316
		switch ($name){
326
		switch ($name){
317
			/*
327
			/*
318
			Choix de l'unité heures, minutes ou secondes
328
			Choix de l'unité heures, minutes ou secondes
319
			pour les durées limites de session,journée et de mois
329
			pour les durées limites de session,journée et de mois
320
			*/
330
			*/
321
			case 'Session-Timeout' :
331
			case 'Session-Timeout' :
322
			case 'Max-Daily-Session' :
332
			case 'Max-Daily-Session' :
323
			case 'Max-Monthly-Session' :
333
			case 'Max-Monthly-Session' :
324
			case 'Max-All-Session' :
334
			case 'Max-All-Session' :
325
				/*valeur d'origine de durée limite */
335
				/*valeur d'origine de durée limite */
326
				echo"<input id =\"$name\" type=text name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=28>";
336
				echo"<input id =\"$name\" type=text name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=28>";
327
				/* Choix d'unité*/
337
				/* Choix d'unité*/
328
				echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newgroup')\">
338
				echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newgroup')\">
329
						<option value=\"s\" selected>s</option>
339
						<option value=\"s\" selected>s</option>
330
						<option value=\"m\" >m</option>
340
						<option value=\"m\" >m</option>
331
						<option value=\"H\" >H</option>
341
						<option value=\"H\" >H</option>
332
					</select>";
342
					</select>";
333
				break;
343
				break;
334
			case 'Expiration' :
344
			case 'Expiration' :
335
				/*Ajout du calendrier pour choisir la date*/
345
				/*Ajout du calendrier pour choisir la date*/
336
				echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=35>";
346
				echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=35>";
337
				break;
347
				break;
338
			case 'Filter-Id' :
348
			case 'Filter-Id' :
339
				echo "<select name='Filter-Id'>";
349
				echo "<select name='Filter-Id'>";
340
				echo "<option value=\"00000000\">$l_filtering_none</option>";
350
				echo "<option value=\"00000000\">$l_filtering_none</option>";
341
				echo "<option value=\"00000001\">$l_filtering_havp</option>";
351
				echo "<option value=\"00000001\">$l_filtering_havp</option>";
342
				echo "<option value=\"00000011\">$l_filtering_havp_bl</option>";
352
				echo "<option value=\"00000011\">$l_filtering_havp_bl</option>";
343
				echo "<option value=\"00000101\">$l_filtering_havp_wl</option>";
353
				echo "<option value=\"00000101\">$l_filtering_havp_wl</option>";
344
				echo "</select>";
354
				echo "</select>";
345
				break;
355
				break;
346
			default :
356
			default :
347
				if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
357
				if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
348
				break;
358
				break;
349
			}
359
			}
350
	}
360
	}
351
/*fin Ajout*/
361
/*fin Ajout*/
352
}
362
}
-
 
363
 
-
 
364
/*protocole filter*/
-
 
365
print <<<EOM
-
 
366
<tr>
-
 
367
	<td class="etiquette" colspan=$colspan>
-
 
368
		$l_proto
-
 
369
	</td>
-
 
370
	<td width=20>
-
 
371
EOM;
-
 
372
/*Choix de la langue du ticket d'impression*/
-
 
373
echo" <select name='Filter-Proto'>
-
 
374
		<option value=\"00000000\" selected>$l_proto_0</option>
-
 
375
		<option value=\"10000000\" >$l_proto_1</option>
-
 
376
		<option value=\"01000000\" >$l_proto_2</option>
-
 
377
		<option value=\"00100000\" >$l_proto_3</option>
-
 
378
	</select></td></tr>";
-
 
379
 
-
 
380
	
353
echo "</table><BR>";
381
echo "</table><BR>";
354
}
382
}
355
if ($create == 1)
383
if ($create == 1)
356
	echo "<br/><center><a href=\"group_admin.php?login=$login\">$l_show_profile</a></center>";
384
	echo "<br/><center><a href=\"group_admin.php?login=$login\">$l_show_profile</a></center>";
357
else
385
else
358
	echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newgroup');\">";
386
	echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newgroup');\">";
359
?>
387
?>
360
<br><br>
388
<br><br>
361
</form>
389
</form>
362
	</td></tr>
390
	</td></tr>
363
</table>
391
</table>
364
</tr>
392
</tr>
365
</table>
393
</table>
366
</TD></TR>
394
</TD></TR>
367
</TABLE>
395
</TABLE>
368
</td></tr>
396
</td></tr>
369
</TABLE>
397
</TABLE>
370
</body>
398
</body>
371
</html>
399
</html>
372
 
400