Subversion Repositories ALCASAR

Rev

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

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