Subversion Repositories ALCASAR

Rev

Rev 1326 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1326 Rev 1377
Line 2... Line 2...
2
// ticket d'impression (thank's to Geoffroy MUSITELLI)
2
// ticket d'impression (thank's to Geoffroy MUSITELLI)
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
require('/etc/freeradius-web/config.php');
6
require('/etc/freeradius-web/config.php');
7
if ($show == 1){
-
 
8
	header("Location: user_admin.php?login=$login");
-
 
9
	exit;
-
 
10
}
-
 
11
if($show == 2)
7
if($show == 2)
12
{
8
{
13
	header("Location: user_new.php");
9
	header("Location: user_new.php");
14
	exit;
10
	exit;
15
}
11
}
Line 145... Line 141...
145
      <input type=hidden name=create value="0">
141
      <input type=hidden name=create value="0">
146
      <input type=hidden name=show value="0">
142
      <input type=hidden name=show value="0">
147
	  <input type=hidden name=langue_imp value='fr'>
143
	  <input type=hidden name=langue_imp value='fr'>
148
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
144
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
149
<?php
145
<?php
-
 
146
if($create==0){
150
	echo <<<EOM
147
	echo <<<EOM
151
	<tr>
148
	<tr>
152
		<td class="etiquette" colspan=$colspan>
149
		<td class="etiquette" colspan=$colspan>
153
		$l_login
150
		$l_login
154
		</td><td>
151
		</td><td>
Line 276... Line 273...
276
			case 'WISPr-Redirection-URL' :
273
			case 'WISPr-Redirection-URL' :
277
				$advanced=1;
274
				$advanced=1;
278
				$help_link="help/wispr_redirection_url_help.html";
275
				$help_link="help/wispr_redirection_url_help.html";
279
				$desc=$l_wispr_redirection;
276
				$desc=$l_wispr_redirection;
280
				break;
277
				break;
-
 
278
			case 'Filter-Id' :
-
 
279
				$advanced=1;
-
 
280
				$help_link="help/filtering_help.html";
-
 
281
				$desc=$l_filtering;
-
 
282
				break;
281
			default:
283
			default:
282
				$advanced=1;
284
				$advanced=1;
283
				break;
285
				break;
284
		}
286
		}
285
		if ($show_ops && $advanced){
287
		if ($show_ops && $advanced){
Line 297... Line 299...
297
				case 'Max-Monthly-Session' :
299
				case 'Max-Monthly-Session' :
298
				case 'Login-Time' : 
300
				case 'Login-Time' : 
299
				case 'Expiration' :
301
				case 'Expiration' :
300
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
302
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
301
					break;
303
					break;
-
 
304
				case 'Filter-Id' :
-
 
305
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
-
 
306
					break;
302
				case 'Session-Timeout' :
307
				case 'Session-Timeout' :
303
				case 'ChilliSpot-Max-Input-Octets' :
308
				case 'ChilliSpot-Max-Input-Octets' :
304
				case 'ChilliSpot-Max-Output-Octets' :
309
				case 'ChilliSpot-Max-Output-Octets' :
305
				case 'ChilliSpot-Max-Total-Octets' :
310
				case 'ChilliSpot-Max-Total-Octets' :
306
				case 'ChilliSpot-Bandwidth-Max-Up' :
311
				case 'ChilliSpot-Bandwidth-Max-Up' :
Line 368... Line 373...
368
					break;
373
					break;
369
				case 'Expiration' :
374
				case 'Expiration' :
370
					/*Ajout du calendrier pour choisir la date*/
375
					/*Ajout du calendrier pour choisir la date*/
371
					echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=20>";
376
					echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=20>";
372
					break;
377
					break;
-
 
378
				case 'Filter-Id' :
-
 
379
					echo "<select name='Filter-Id'>";
-
 
380
					echo "<option>$l_filtering_none</option>";
-
 
381
					echo "<option value=\"00000001\">$l_filtering_havp</option>";
-
 
382
					echo "<option value=\"00000011\">$l_filtering_havp_bl</option>";
-
 
383
					echo "<option value=\"00000101\">$l_filtering_havp_wl</option>";
-
 
384
					echo "</select>";
-
 
385
					break;
373
				default :
386
				default :
374
					if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
387
					if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
375
					break;
388
					break;
376
			}
389
			}
377
		}else{
-
 
378
		/*Pas de gestion de remplissage lors de la visualisation*/
-
 
379
			if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
-
 
380
		
-
 
381
/*fin Ajout*/
-
 
382
		}
390
		}
383
	}
391
	}
384
if (create==0){
-
 
385
	print <<<EOM
392
	print <<<EOM
386
	<tr>
393
	<tr>
387
		<td class="etiquette" colspan=$colspan>
394
		<td class="etiquette" colspan=$colspan>
388
			$l_lang_ticket
395
			$l_lang_ticket
389
		</td>
396
		</td>
Line 402... Line 409...
402
	}
409
	}
403
echo "</table><BR>";
410
echo "</table><BR>";
404
if($create == 1)
411
if($create == 1)
405
{
412
{
406
	echo "<a href=\"ticket.pdf\">Ticket</a><br>";
413
	echo "<a href=\"ticket.pdf\">Ticket</a><br>";
407
	echo "<input type=submit class=button value=\"$l_show_profile\" OnClick=\"this.form.show.value=1\">";
414
	echo "<center><a href=\"user_admin.php?login=$login\">$l_show_profile</a></center>";
408
}
415
}
409
else	
416
else	
410
{
417
{
411
	echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newuser');\">";
418
	echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newuser');\">";
412
	echo "<input type='hidden' name='nbtickets' value=''>";
419
	echo "<input type='hidden' name='nbtickets' value=''>";