Subversion Repositories ALCASAR

Rev

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

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