1,8 → 1,5 |
<?php |
// for developpement purpose |
// CONST ROOT = "C:/Serveurs/Alcasar-mageia/"; |
CONST ROOT = "/"; |
require_once(ROOT.'/var/www/html/acc/manager/lib/alcasar/ticketspdf.class.php'); |
require_once('/var/www/html/acc/manager/lib/alcasar/ticketspdf.class.php'); |
// ticket d'impression (thank's to Geoffroy MUSITELLI) |
//--recupération des variables provenant du formulaire |
$langue_imp=utf8_decode($_POST["langue_imp"]); |
33,6 → 30,7 |
$l_expiration_imp="Date d'expiration :"; |
$l_unlimited="Illimitée"; |
$l_without="Aucune"; |
$l_duplicate="Duplicata"; |
break; |
case 'de': |
$l_title_imp = "INTERNETZUGANG TICKET"; |
51,6 → 49,7 |
$l_expiration_imp="Verfallsdatum :"; |
$l_unlimited="Unbegrentz"; |
$l_without="Ohne"; |
$l_duplicate="Duplikat"; |
break; |
case 'nl': |
$l_title_imp = "ONTVANGST INTERNET"; |
68,6 → 67,7 |
$l_expiration_imp="Vervaldatum :"; |
$l_unlimited="Onbeperkte"; |
$l_without="Ohne"; |
$l_duplicate="Duplicaat"; |
break; |
case 'es': |
$l_title_imp = "BONO INTERNET"; |
85,6 → 85,7 |
$l_expiration_imp="Fecha de caducidad :"; |
$l_unlimited="Ilimitado"; |
$l_without="Sin"; |
$l_duplicate="Duplicado"; |
break; |
case 'it': |
$l_title_imp = "RICEVIMENTO INTERNET"; |
102,6 → 103,7 |
$l_expiration_imp="Data di scadenza :"; |
$l_unlimited="Illimitato"; |
$l_without="Senza"; |
$l_duplicate="Duplicato"; |
break; |
case 'pt': |
$l_title_imp = "BILHETE DE ACESSO À INTERNET"; |
119,6 → 121,7 |
$l_expiration_imp="Data de vencimento :"; |
$l_unlimited="Ilimitado"; |
$l_without="Sem"; |
$l_duplicate="Duplicado"; |
break; |
default: |
$l_title_imp = "INTERNET ACCESS TICKET"; |
136,6 → 139,7 |
$l_expiration_imp="Expiration date :"; |
$l_unlimited="Unlimited"; |
$l_without="Without"; |
$l_duplicate="Duplicate"; |
break; |
} |
|
174,7 → 178,7 |
$pdf->addInfos($l_max_daily_session_imp, $mds_imp); |
$pdf->addInfos($l_expiration_imp, $exp_imp); |
$pdf->Ln(10); |
$pdf->addComment($l_explain); |
$pdf->addComment($l_duplicate,'C');//à mettre en rouge |
|
// envoie du document au navigateur |
$ticket_name="ticket_".$log_imp.".pdf"; |