1,9 → 1,12 |
<?php |
<?php |
// ticket d'impression (thank's to Geoffroy MUSITELLI) |
//gestion de la langue |
if (is_file("../lib/langues.php")) |
include("../lib/langues.php"); |
require('/etc/freeradius-web/config.php'); |
// for developpement purpose |
// CONST ROOT = "C:/Serveurs/Alcasar-mageia/"; |
CONST ROOT = "/"; |
require(ROOT.'etc/freeradius-web/config.php'); |
if ($show == 1){ |
header("Location: user_admin.php?login=$login"); |
exit; |
19,7 → 22,7 |
} |
?> |
<html><head><title>Voucher creation</title> |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>"> |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>"> |
<link rel="stylesheet" href="/css/style.css"> |
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" /> |
<script type="text/javascript" src="/js/epoch_classes.js"></script> |
32,12 → 35,31 |
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 = "vouchers_new.php"; |
arg.submit(); |
|
return true; |
} |
</script> |
</head> |
<body> |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0"> |
<tr><th><?php echo"$l_users_managment"; ?></th></tr> |
<tr><th><?php echo"$l_users_managment"; ?></th></tr> |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr> |
</TABLE> |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1> |
51,7 → 73,7 |
<td bgcolor="black"> |
<table border=0 width=100% cellpadding=2 cellspacing=0> |
<tr bgcolor="#907030" align=right valign=top><th> |
<font color="white"><?php echo "$l_user_create"; ?></font> |
<font color="white"><?php echo "$l_user_create"; ?></font> |
</th></tr> |
</table> |
</td></tr> |
58,7 → 80,7 |
<tr bgcolor="black" valign=top><td colspan=2> |
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor="#ffffd0" valign=top> |
<tr><td> |
<?php |
<?php |
function sec_imp($time) |
/* Formatage des secondes avant l'impression */ |
{ |
129,7 → 151,7 |
<input type=hidden name=show value="0"> |
<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 |
<?php |
echo <<<EOM |
<tr> |
<td class="etiquette" colspan=$colspan> |
350,8 → 372,17 |
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\">";} |
else{ |
else{ |
echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newuser');\">"; |
echo "<input type='hidden' name='nbtickets' value=''>"; |
echo "<br>Ou :<br>"; |
|
$l_create_multiple = "Créer plusieurs tickets"; |
echo "<input type=button class=button value=\"$l_create_multiple\" OnClick=\"return createTickets(this.form);\">"; |
$l_create_multiple_comment = "<br>Remarques : lors de la création plusieurs tickets sysmultanément :<br> |
- l'identifiant et le mot de passe sont générés aléatoirement,<br> |
- les champs \"Nom, prénom\" et \"Adresse de couriel\" ne sont pas pris en compte.<br> "; |
echo $l_create_multiple_comment; |
} |
?> |
</form> |