Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1376 → Rev 1377

/web/acc/manager/htdocs/user_new.php
5,10 → 5,6
include("../lib/langues.php");
 
require('/etc/freeradius-web/config.php');
if ($show == 1){
header("Location: user_admin.php?login=$login");
exit;
}
if($show == 2)
{
header("Location: user_new2.php");
37,26 → 33,6
window.onload = function () {
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
};
/*Fin calendrier*/
function createTickets(arg){
var nbtickets = prompt("Saisissez le nombre d'utilisateurs à créer", "");
// On test la pression sur le boutton "annuler"
if (nbtickets===null){
alert('nbtickets===null');
return false;
}
// On test la valeur saisie n'est pas un nombre
if (isNaN(nbtickets)===true){
return false;
}
// Conversion en entier de nbtickets
nbtickets = parseInt(nbtickets)
// Configuration et envoie du formulaire
arg.nbtickets.value = nbtickets
arg.action = "ticket_voucher.php";
arg.submit();
return true;
}
</script>
</head>
<body>
105,7 → 81,7
include("../lib/$config[general_lib_type]/user_info.php");
if ($user_exists != "no"){
echo <<<EOM
<b><i>$login</i> $l_user_exist</b>
<b><i>$login</i> $l_user_exists</b>
EOM;
}
else{
164,6 → 140,7
<input type=hidden name=langue_imp value='fr'>
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
<?php
if($create==0){
echo <<<EOM
<tr>
<td class="etiquette" colspan=$colspan>
260,6 → 237,11
$help_link="help/expiration_help.html";
$desc=$l_expiration;
break;
case 'Filter-Id' :
$advanced=1;
$help_link="help/filtering_help.html";
$desc=$l_filtering;
break;
default:
$advanced=1;
break;
281,6 → 263,9
case 'Expiration' :
echo "<input type=\"hidden\" name=$oper_name value=\":=\">";
break;
case 'Filter-Id' :
echo "<input type=\"hidden\" name=$oper_name value=\":=\">";
break;
case 'Session-Timeout' :
case 'ChilliSpot-Max-Input-Octets' :
case 'ChilliSpot-Max-Output-Octets' :
360,18 → 345,20
/*Ajout du calendrier pour choisir la date*/
echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=20>";
break;
case 'Filter-Id' :
echo "<select name='Filter-Id'>";
echo "<option>$l_filtering_none</option>";
echo "<option value=\"00000001\">$l_filtering_havp</option>";
echo "<option value=\"00000011\">$l_filtering_havp_bl</option>";
echo "<option value=\"00000101\">$l_filtering_havp_wl</option>";
echo "</select>";
break;
default :
if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
break;
}
}else{
/*Pas de gestion de remplissage lors de la visualisation*/
if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
/*fin Ajout*/
}
}
if ($create==0){
print <<<EOM
<tr>
<td class="etiquette" colspan=$colspan>
389,12 → 376,12
<option value=\"it\" >Italiano</option>
<option value=\"pt\" >Portugês</option>
</select></td></tr>";
}
echo "</table><BR>";
}
echo "</table>";
if($create == 1)
{
echo "<a href=\"ticket.pdf\">Ticket</a><br>";
echo "<input type=submit class=button value=\"$l_show_profile\" OnClick=\"this.form.show.value=1\">";
echo "<a href=\"ticket.pdf\">Ticket</a><br/><br/>";
echo "<center><a href=\"user_admin.php?login=$login\">$l_show_profile</a></center>";
}
else
{
402,7 → 389,7
echo "<input type='hidden' name='nbtickets' value=''>";
echo "<input type=submit class=button value=\"$l_advanced_menu\" style=\"float: right;\" OnClick=\"this.form.show.value=2\">";
echo "<br>$l_or :<br>";
echo "<input type=button class=button value=\"$l_create_multiple\" OnClick=\"return createTickets(this.form);\">";
echo "<input type=button class=button value=\"$l_create_multiple\" OnClick=\"return createTickets(this.form, '$l_createTicketsMSG');\">";
echo $l_create_multiple_comment;
}
?>