Subversion Repositories ALCASAR

Rev

Rev 2595 | Rev 2626 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
324 richard 1
<?php
2319 tom.houday 2
# $Id: group_new.php 2618 2018-08-22 21:52:19Z tom.houdayer $
508 richard 3
 
2319 tom.houday 4
//Gestion de la langue
5
if (is_file("../lib/langues.php"))
6
	include("../lib/langues.php");
7
 
2505 tom.houday 8
// Update Alcasar-Status-Page-Must-Stay-Open
9
if ((isset($_POST['Alcasar-Status-Page-Must-Stay-Open'])) && ($_POST['Alcasar-Status-Page-Must-Stay-Open'] === '2')) {
2501 tom.houday 10
	$_POST['Idle-Timeout'] = '600'; // 10 minutes
11
} else {
12
	$_POST['Idle-Timeout'] = '';
2393 tom.houday 13
}
2501 tom.houday 14
$_POST['Idle-Timeout_op'] = '=';
2393 tom.houday 15
 
2319 tom.houday 16
require('/etc/freeradius-web/config.php');
17
 
18
if (!isset ($create)) $create=0;
19
if (!isset ($login)) $login='';
20
if (!isset ($selected)) $selected=array();
21
 
22
require('../lib/attrshow.php');
23
require('../lib/defaults.php');
24
require("../lib/$config[general_lib_type]/group_info.php");
25
 
1805 clement.si 26
if ($config['general_lib_type'] != 'sql'){
324 richard 27
	echo <<<EOM
28
<title>$l_title</title>
1840 raphael.pi 29
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
324 richard 30
<link rel="stylesheet" href="style.css">
31
</head>
32
<body>
33
<center>
34
<b>This page is only available if you are using sql as general library type</b>
35
</body>
36
</html>
37
EOM;
38
        exit();
39
}
40
 
41
 
2319 tom.houday 42
if (false && /* Hide operator column */ $config['general_lib_type'] == 'sql' && $config['sql_use_operators'] == 'true'){
324 richard 43
	$colspan=2;
44
	$show_ops=1;
1805 clement.si 45
	include_once("../lib/operators.php");
46
	if(!isset($selected[$op_eq])) $selected[$op_eq] = '';
324 richard 47
}else{
48
	$show_ops = 0;
49
	$colspan=1;
50
}
51
?>
2319 tom.houday 52
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
911 richard 53
<html><head><title>New group</title>
1840 raphael.pi 54
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
2565 lucas.echa 55
<link rel="stylesheet" href="/css/jquery-ui.min.css">
324 richard 56
<link rel="stylesheet" href="/css/style.css">
508 richard 57
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
509 richard 58
<script type="text/javascript" src="/js/epoch_classes.js"></script>
59
<script type="text/javascript" src="/js/fonctions.js"></script>
324 richard 60
<script language="javascript" type="text/javascript">
508 richard 61
/*Insertion du calendrier*/
1805 clement.si 62
	var dp_cal;
508 richard 63
window.onload = function () {
64
	dp_cal  = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
65
};
66
/*Fin calendrier*/
324 richard 67
</script>
2319 tom.houday 68
<script type="text/javascript">
69
	function showAdvancedFields(show) {
70
		var form = document.forms['newgroup'];
71
		var btn_show = document.getElementById('show-advanced-fields');
72
		var btn_hide = document.getElementById('hide-advanced-fields');
73
 
74
		if (show) {
75
			btn_hide.style.display = null;
76
			btn_show.style.display = 'none';
77
			form.className += ' hide-advanced-fields';
78
		} else {
79
			btn_show.style.display = null;
80
			btn_hide.style.display = 'none';
81
			form.className = form.className.replace(' hide-advanced-fields', '');
82
 
83
		}
84
	}
85
</script>
86
<style type="text/css">
87
	.hide-advanced-fields .advanced-field {
88
		display: none;
89
	}
90
</style>
324 richard 91
</head>
92
<body>
93
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
911 richard 94
	<tr><th><? echo "$l_groups_managment"; ?></th></tr>
1805 clement.si 95
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
324 richard 96
height="2"></td></tr>
97
</TABLE>
98
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
99
	<tr bgcolor="#666666"><td>
100
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
101
		<tr><td valign="middle" align="left">
102
<center>
1377 richard 103
<table border=0 width=750 cellpadding=1 cellspacing=1>
324 richard 104
<tr valign=top>
105
<td width=340></td>
106
<td bgcolor="black" width=200>
107
	<table border=0 width=100% cellpadding=2 cellspacing=0>
108
	<tr bgcolor="#907030" align=right valign=top><th>
109
	<font color="white"><? echo "$l_group_create"; ?></font>
110
	</th></tr>
111
	</table>
112
</td></tr>
113
<tr bgcolor="black" valign=top><td colspan=2>
114
	<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top>
115
	<tr><td>
1805 clement.si 116
 
324 richard 117
<?php
118
if (is_file("../lib/$config[general_lib_type]/group_info.php"))
119
	include("../lib/$config[general_lib_type]/group_info.php");
120
if ($create == 1){
121
	if ($group_exists != "no"){
122
		echo <<<EOM
907 richard 123
<b><i>$login</i> $l_already_exist</b>
324 richard 124
EOM;
125
	}
126
	else{
127
		if (is_file("../lib/$config[general_lib_type]/create_group.php"))
128
			include("../lib/$config[general_lib_type]/create_group.php");
129
		if (is_file("../lib/$config[general_lib_type]/group_info.php"))
130
			include("../lib/$config[general_lib_type]/group_info.php");
131
	}
132
}
1377 richard 133
if ($create == 0){
324 richard 134
?>
2319 tom.houday 135
   <form name="newgroup" method="post" class="">
136
      <input type="hidden" name="create" value="0">
137
      <input type="hidden" name="show" value="0">
324 richard 138
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
139
<?php
140
	echo <<<EOM
141
	<tr>
508 richard 142
		<td class="etiquette" colspan=$colspan>
907 richard 143
		$l_created_groups
324 richard 144
		</td><td>
145
EOM;
146
		if (!isset($existing_groups))
907 richard 147
			echo "<b>$l_group_empty</b>\n";
324 richard 148
		else{
1805 clement.si 149
			echo "<select name=\"existing_groups\">\n";
324 richard 150
			foreach ($existing_groups as $group => $count)
151
				echo "<option value=\"$group\">$group\n";
152
			echo "</select>\n";
153
		}
154
	echo <<<EOM
155
		</td>
156
	</tr>
157
	<tr>
508 richard 158
		<td class="etiquette" colspan=$colspan>
907 richard 159
		$l_group_name
324 richard 160
		</td><td>
161
		<input type=text name="login" value="$login" size=35>
162
		</td>
163
	</tr>
164
	<tr>
508 richard 165
		<td class="etiquette" colspan=$colspan>
907 richard 166
		$l_group_members
324 richard 167
		</td><td>
1377 richard 168
		<textarea name=members cols="50" wrap="PHYSICAL" rows=5></textarea>
324 richard 169
		</td>
170
	</tr>
1805 clement.si 171
 
324 richard 172
EOM;
173
	foreach($show_attrs as $key => $desc){
2394 tom.houday 174
		if ($key === 'Idle-Timeout') continue;
324 richard 175
		$name = $attrmap["$key"];
176
		if ($name == 'none')
177
			continue;
178
		$oper_name = $name . '_op';
1805 clement.si 179
		if(isset($item_vals["$key"][0]) && $item_vals["$key"][0] != ''){
180
			$val = $item_vals["$key"][0];
181
		} else if(isset($default_vals["$key"][0])) {
182
			$val = $default_vals["$key"][0];
183
		} else {
184
			$val = '';
185
		}
508 richard 186
		switch ($key)
187
		{
1805 clement.si 188
		// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.)
189
			case 'Simultaneous-Use' :
2319 tom.houday 190
				$advanced = false;
191
				$help_link = "help/simultaneous_use_help.html";
192
				$desc = $l_simultaneous_use;
907 richard 193
				break;
194
			case 'Max-All-Session' :
2618 tom.houday 195
				$advanced = true;
2319 tom.houday 196
				$help_link = "help/max_all_session_help.html";
197
				$desc = $l_max_all_session;
907 richard 198
				break;
1805 clement.si 199
			case 'Session-Timeout' :
2319 tom.houday 200
				$advanced = true;
201
				$help_link = "help/session_timeout_help.html";
202
				$desc = $l_session_timeout;
907 richard 203
				break;
204
			case 'Max-Daily-Session' :
2319 tom.houday 205
				$advanced = true;
206
				$help_link = "help/session_timeout_help.html";
207
				$desc = $l_daily_timeout;
907 richard 208
				break;
209
			case 'Max-Monthly-Session' :
2319 tom.houday 210
				$advanced = true;
211
				$help_link = "help/session_timeout_help.html";
212
				$desc = $l_monthly_timeout;
907 richard 213
				break;
1805 clement.si 214
			case 'Login-Time' :
2319 tom.houday 215
				$advanced = true;
216
				$help_link = "help/login_time_help.html";
217
				$desc = $l_login_time;
907 richard 218
				break;
219
			case 'Expiration' :
2319 tom.houday 220
				$advanced = false;
221
				$help_link = "help/expiration_help.html";
222
				$desc = $l_expiration;
907 richard 223
				break;
2512 tom.houday 224
			case 'CoovaChilli-Max-Input-Octets' :
2319 tom.houday 225
				$advanced = true;
2512 tom.houday 226
				$help_link = "help/coovachilli_max_input_octets_help.html";
2319 tom.houday 227
				$desc = $l_max_input_octets;
907 richard 228
				break;
2512 tom.houday 229
			case 'CoovaChilli-Max-Output-Octets' :
2319 tom.houday 230
				$advanced = true;
2512 tom.houday 231
				$help_link = "help/coovachilli_max_output_octets_help.html";
2319 tom.houday 232
				$desc = $l_max_output_octets;
907 richard 233
				break;
2512 tom.houday 234
			case 'CoovaChilli-Max-Total-Octets' :
2319 tom.houday 235
				$advanced = true;
2512 tom.houday 236
				$help_link = "help/coovachilli_max_total_octets_help.html";
2319 tom.houday 237
				$desc = $l_max_total_octets;
907 richard 238
				break;
2513 tom.houday 239
			case 'CoovaChilli-Max-Total-Octets-Daily' :
240
				$advanced = true;
241
				$help_link = "help/coovachilli_max_total_octets_help.html";
242
				$desc = $l_max_total_octets_daily;
243
				break;
244
			case 'CoovaChilli-Max-Total-Octets-Monthly' :
245
				$advanced = true;
246
				$help_link = "help/coovachilli_max_total_octets_help.html";
247
				$desc = $l_max_total_octets_monthly;
248
				break;
2512 tom.houday 249
			case 'CoovaChilli-Bandwidth-Max-Up' :
2319 tom.houday 250
				$advanced = true;
2512 tom.houday 251
				$help_link = "help/coovachilli_bandwidth_max_up_help.html";
2319 tom.houday 252
				$desc = $l_max_bandwidth_up;
907 richard 253
				break;
2512 tom.houday 254
			case 'CoovaChilli-Bandwidth-Max-Down' :
2319 tom.houday 255
				$advanced = true;
2512 tom.houday 256
				$help_link = "help/coovachilli_bandwidth_max_down_help.html";
2319 tom.houday 257
				$desc = $l_max_bandwidth_down;
907 richard 258
				break;
508 richard 259
			case 'WISPr-Redirection-URL' :
2319 tom.houday 260
				$advanced = true;
261
				$help_link = "help/wispr_redirection_url_help.html";
262
				$desc = $l_wispr_redirection;
508 richard 263
				break;
2501 tom.houday 264
			case 'Alcasar-Filter' :
2319 tom.houday 265
				$advanced = false;
266
				$help_link = "help/filtering_help.html";
267
				$desc = $l_filtering;
1377 richard 268
				break;
2505 tom.houday 269
			case 'Alcasar-Protocols-Filter' :
2501 tom.houday 270
				$advanced = false;
271
				$help_link = "help/protocols_help.html";
272
				$desc = $l_proto;
273
				break;
2505 tom.houday 274
			case 'Alcasar-Status-Page-Must-Stay-Open' :
2501 tom.houday 275
				$advanced = false;
276
				$help_link = "help/statusOpenRequired_help.html";
277
				$desc = $l_statusOpenRequired;
278
				break;
2510 tom.houday 279
			case 'Alcasar-Expire-After' :
2595 tom.houday 280
				$advanced = true;
281
				$help_link = "help/expire_after_help.html";
282
				$desc = $l_expire_after;
2510 tom.houday 283
				break;
508 richard 284
			default:
2319 tom.houday 285
				$advanced = true;
508 richard 286
				break;
287
		}
2319 tom.houday 288
 
289
		$advancedField = ($advanced) ? ' class="advanced-field"' : '';
290
 
291
		if ($show_ops){
907 richard 292
		print <<<EOM
2319 tom.houday 293
			<tr$advancedField>
907 richard 294
			<td class="etiquette">
2319 tom.houday 295
			<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>
907 richard 296
			</td>
324 richard 297
EOM;
2319 tom.houday 298
			switch ($key) {
1805 clement.si 299
				case 'Simultaneous-Use' :
890 stephane 300
				case 'Max-All-Session' :
508 richard 301
				case 'Max-Daily-Session' :
302
				case 'Max-Weekly-Session' :
303
				case 'Max-Monthly-Session' :
1805 clement.si 304
				case 'Login-Time' :
907 richard 305
				case 'Expiration' :
2510 tom.houday 306
				case 'Alcasar-Expire-After' :
2513 tom.houday 307
				case 'CoovaChilli-Max-Total-Octets-Daily' :
308
				case 'CoovaChilli-Max-Total-Octets-Monthly' :
2618 tom.houday 309
				case 'CoovaChilli-Max-Total-Octets' :
2319 tom.houday 310
					echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\":=\">:=";
508 richard 311
					break;
907 richard 312
				case 'Session-Timeout' :
2512 tom.houday 313
				case 'CoovaChilli-Max-Input-Octets' :
314
				case 'CoovaChilli-Max-Output-Octets' :
315
				case 'CoovaChilli-Bandwidth-Max-Up' :
316
				case 'CoovaChilli-Bandwidth-Max-Down' :
508 richard 317
				case 'WISPr-Redirection-URL' :
2501 tom.houday 318
				case 'Alcasar-Filter' :
2505 tom.houday 319
				case 'Alcasar-Protocols-Filter' :
320
				case 'Alcasar-Status-Page-Must-Stay-Open' :
2319 tom.houday 321
					echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\"=\">=";
508 richard 322
					break;
323
				default :
324
					print <<<EOM
325
					<td>
2319 tom.houday 326
						<select name=\"$oper_name\">
907 richard 327
							<option $selected[$op_eq] value="=">=
328
							<option $selected[$op_set] value=":=">:=
329
							<option $selected[$op_add] value="+=">+=
330
							<option $selected[$op_eq2] value="==">==
331
							<option $selected[$op_ne] value="!=">!=
332
							<option $selected[$op_gt] value=">">&gt;
333
							<option $selected[$op_ge] value=">=">&gt;=
334
							<option $selected[$op_lt] value="<">&lt;
335
							<option $selected[$op_le] value="<=">&lt;=
336
							<option $selected[$op_regeq] value="=~">=~
337
							<option $selected[$op_regne] value="!~">!~
338
							<option $selected[$op_exst] value="=*">=*
339
							<option $selected[$op_nexst] value="!*">!*
340
						</select>
508 richard 341
					</td>
324 richard 342
EOM;
508 richard 343
					break;
344
			}
2319 tom.houday 345
		} else {
346
			print <<<EOM
347
				<tr$advancedField>
348
				<td class="etiquette" colspan="$colspan">
349
				<a href="$help_link" target="help" onclick="window.open('$help_link','help','width=600,height=350,toolbar=no,scrollbars=no,resizable=yes')" title="$l_click_for_help"><font color="blue">$desc</font></a>
350
EOM;
351
			switch ($key) {
352
				case 'Simultaneous-Use' :
353
				case 'Max-All-Session' :
354
				case 'Max-Daily-Session' :
355
				case 'Max-Weekly-Session' :
356
				case 'Max-Monthly-Session' :
357
				case 'Login-Time' :
358
				case 'Expiration' :
2501 tom.houday 359
				case 'Alcasar-Filter' :
2505 tom.houday 360
				case 'Alcasar-Protocols-Filter' :
361
				case 'Alcasar-Status-Page-Must-Stay-Open' :
2510 tom.houday 362
				case 'Alcasar-Expire-After' :
2513 tom.houday 363
				case 'CoovaChilli-Max-Total-Octets-Daily' :
364
				case 'CoovaChilli-Max-Total-Octets-Monthly' :
2618 tom.houday 365
				case 'CoovaChilli-Max-Total-Octets' :
2319 tom.houday 366
					echo "<input type=\"hidden\" name=\"$oper_name\" value=\":=\">";
367
					break;
368
				case 'Session-Timeout' :
2512 tom.houday 369
				case 'CoovaChilli-Max-Input-Octets' :
370
				case 'CoovaChilli-Max-Output-Octets' :
371
				case 'CoovaChilli-Bandwidth-Max-Up' :
372
				case 'CoovaChilli-Bandwidth-Max-Down' :
2319 tom.houday 373
				case 'WISPr-Redirection-URL' :
374
					echo "<input type=\"hidden\" name=\"$oper_name\" value=\"=\">";
375
					break;
376
				default :
377
					print <<<EOM
378
						<select name=\"$oper_name\">
379
							<option $selected[$op_eq] value="=">=</option>
380
							<option $selected[$op_set] value=":=">:=</option>
381
							<option $selected[$op_add] value="+=">+=</option>
382
							<option $selected[$op_eq2] value="==">==</option>
383
							<option $selected[$op_ne] value="!=">!=</option>
384
							<option $selected[$op_gt] value=">">&gt;</option>
385
							<option $selected[$op_ge] value=">=">&gt;=</option>
386
							<option $selected[$op_lt] value="<">&lt;</option>
387
							<option $selected[$op_le] value="<=">&lt;=</option>
388
							<option $selected[$op_regeq] value="=~">=~</option>
389
							<option $selected[$op_regne] value="!~">!~</option>
390
							<option $selected[$op_exst] value="=*">=*</option>
391
							<option $selected[$op_nexst] value="!*">!*</option>
392
						</select>
393
EOM;
394
					break;
395
			}
396
			echo '</td>';
324 richard 397
		}
1805 clement.si 398
 
399
/*
400
Ajout du choix d'unité (pour les durées limites de session, journée et de mois)
508 richard 401
et d'un calendrier pour la date d'expiration
402
Sauf dans le cas de la visualisation
403
*/
2319 tom.houday 404
	echo '<td>';
405
	if ($create == 0) {
508 richard 406
		switch ($name){
407
			/*
2319 tom.houday 408
			Choix de l'unité jour, heures, minutes ou secondes
409
			pour les durées limites max, de session,de journée et de mois
1805 clement.si 410
			*/
508 richard 411
			case 'Session-Timeout' :
412
			case 'Max-Daily-Session' :
2319 tom.houday 413
				/*valeur d'origine de durée limite */
414
				echo"<input type=\"text\" name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=10>";
415
				/* Choix d'unité*/
2321 tom.houday 416
				echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newgroup')\">
2319 tom.houday 417
						<option value=\"s\" selected>s</option>
418
						<option value=\"m\" >m</option>
419
						<option value=\"H\" >H</option>
420
					</select>";
421
				break;
508 richard 422
			case 'Max-Monthly-Session' :
907 richard 423
			case 'Max-All-Session' :
2510 tom.houday 424
			case 'Alcasar-Expire-After' :
508 richard 425
				/*valeur d'origine de durée limite */
2319 tom.houday 426
				echo"<input type=\"text\" name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=10>";
508 richard 427
				/* Choix d'unité*/
2321 tom.houday 428
				echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newgroup')\">
508 richard 429
						<option value=\"s\" selected>s</option>
430
						<option value=\"m\" >m</option>
431
						<option value=\"H\" >H</option>
2319 tom.houday 432
						<option value=\"J\" >J</option>
508 richard 433
					</select>";
434
				break;
435
			case 'Expiration' :
436
				/*Ajout du calendrier pour choisir la date*/
2319 tom.houday 437
				echo"<input id=\"popup_container\" type=\"text\" name=\"$name\" value=\"$val\" size=\"20\">";
508 richard 438
				break;
2501 tom.houday 439
			case 'Alcasar-Filter' :
440
				echo "<select name=\"$name\">";
441
				echo "<option value=\"\"></option>";
442
				echo "<option value=\"1\">$l_filtering_none</option>";
443
				echo "<option value=\"2\">$l_filtering_havp</option>";
444
				echo "<option value=\"3\">$l_filtering_havp_bl</option>";
445
				echo "<option value=\"4\">$l_filtering_havp_wl</option>";
1377 richard 446
				echo "</select>";
447
				break;
2505 tom.houday 448
			case 'Alcasar-Protocols-Filter' :
2501 tom.houday 449
				echo "<select name=\"$name\">";
450
				echo "<option value=\"\"></option>";
451
				echo "<option value=\"1\">$l_proto_0</option>";
452
				echo "<option value=\"2\">$l_proto_1</option>";
453
				echo "<option value=\"3\">$l_proto_2</option>";
454
				echo "<option value=\"4\">$l_proto_3</option>";
455
				echo "</select>";
456
				break;
2505 tom.houday 457
			case 'Alcasar-Status-Page-Must-Stay-Open' :
2501 tom.houday 458
				echo "<label><input type=\"radio\" name=\"$name\" value=\"\" checked>$l_yes</label>
459
					<label><input type=\"radio\" name=\"$name\" value=\"2\">$l_no</label>";
460
				break;
2565 lucas.echa 461
			case 'Login-Time':
462
				echo "<input type=\"text\" name=\"$name\" id=\"$name\" value=\"$val\" size=\"20\" pattern=\"^((Mo|Tu|We|Th|Fr|Sa|Su|Wk|Any)[0-9]{4}-[0-9]{4},){0,}(Mo|Tu|We|Th|Fr|Sa|Su|Wk|Any)[0-9]{4}-[0-9]{4}$\">";
463
				echo "<a id=\"login-time-calendar\" href=\"#\"><img alt=\"schedule\" src=\"images/calendar.png\"/></a>";
464
				echo '<div id="login-time-dialog" title="Weekly period"><div id="login-time-schedule"></div></div>';
465
				break;
508 richard 466
			default :
2319 tom.houday 467
				echo "<input type=\"text\" name=\"$name\" value=\"$val\" size=\"20\">";
508 richard 468
				break;
2319 tom.houday 469
		}
324 richard 470
	}
508 richard 471
/*fin Ajout*/
472
}
2006 raphael.pi 473
 
324 richard 474
echo "</table><BR>";
2394 tom.houday 475
 
1377 richard 476
}
324 richard 477
if ($create == 1)
1377 richard 478
	echo "<br/><center><a href=\"group_admin.php?login=$login\">$l_show_profile</a></center>";
2383 tom.houday 479
else {
907 richard 480
	echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newgroup');\">";
2319 tom.houday 481
	echo "<button type=\"button\" id =\"show-advanced-fields\" onclick=\"showAdvancedFields(true)\" style=\"float: right;\">$l_simple_menu</button>";
482
	echo "<button type=\"button\" id =\"hide-advanced-fields\" onclick=\"showAdvancedFields(false)\" style=\"float: right; display: none;\">$l_advanced_menu</button>";
2383 tom.houday 483
}
324 richard 484
?>
485
<br><br>
486
</form>
487
	</td></tr>
488
</table>
489
</tr>
490
</table>
2319 tom.houday 491
</center>
324 richard 492
</TD></TR>
493
</TABLE>
494
</td></tr>
495
</TABLE>
2565 lucas.echa 496
<script type="text/javascript" src="/js/jquery.min.js"></script>
497
<script type="text/javascript" src="/js/jquery-ui.min.js"></script>
498
<script type="text/javascript" src="/js/schedule.js"></script>
499
<script type="text/javascript" src="/js/login-time.js"></script>
324 richard 500
</body>
501
</html>