Subversion Repositories ALCASAR

Rev

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

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