Subversion Repositories ALCASAR

Rev

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

Rev 1125 Rev 1129
Line 1... Line 1...
1
<?php
1
<?php
2
// for developpement purpose
-
 
3
// CONST ROOT = "C:/Serveurs/Alcasar-mageia/";
-
 
4
CONST ROOT = "/";
-
 
5
require_once(ROOT.'/var/www/html/acc/manager/lib/alcasar/ticketspdf.class.php');
2
require_once('/var/www/html/acc/manager/lib/alcasar/ticketspdf.class.php');
6
// ticket d'impression (thank's to Geoffroy MUSITELLI)
3
// ticket d'impression (thank's to Geoffroy MUSITELLI)
7
//--recupération des variables provenant du formulaire 
4
//--recupération des variables provenant du formulaire 
8
$langue_imp=utf8_decode($_POST["langue_imp"]);
5
$langue_imp=utf8_decode($_POST["langue_imp"]);
9
$log_imp=utf8_decode($_POST["log_imp"]);
6
$log_imp=utf8_decode($_POST["log_imp"]);
10
$passwd_imp=utf8_decode($_POST["passwd_imp"]);
7
$passwd_imp=utf8_decode($_POST["passwd_imp"]);
Line 31... Line 28...
31
		$l_max_daily_session_imp="Durée journalière :";
28
		$l_max_daily_session_imp="Durée journalière :";
32
		$l_max_monthly_session_imp ="Durée mensuelle :";
29
		$l_max_monthly_session_imp ="Durée mensuelle :";
33
		$l_expiration_imp="Date d'expiration :";
30
		$l_expiration_imp="Date d'expiration :";
34
		$l_unlimited="Illimitée";
31
		$l_unlimited="Illimitée";
35
		$l_without="Aucune";
32
		$l_without="Aucune";
-
 
33
		$l_duplicate="Duplicata";
36
	break;
34
	break;
37
	case 'de':
35
	case 'de':
38
		$l_title_imp = "INTERNETZUGANG TICKET";
36
		$l_title_imp = "INTERNETZUGANG TICKET";
39
		$l_footer_imp = "Präsentiert von ALCASAR";
37
		$l_footer_imp = "Präsentiert von ALCASAR";
40
			//$l_explain1_imp = "Geben Sie 'Alcasar' in Ihrem Browser, um Ihr Konto zu verwalten (kennwort, zertifikat, etc.).";
38
			//$l_explain1_imp = "Geben Sie 'Alcasar' in Ihrem Browser, um Ihr Konto zu verwalten (kennwort, zertifikat, etc.).";
Line 49... Line 47...
49
		$l_max_daily_session_imp="Stunden t&auml;glich :";
47
		$l_max_daily_session_imp="Stunden t&auml;glich :";
50
		$l_max_monthly_session_imp ="monatlich Dauer :";
48
		$l_max_monthly_session_imp ="monatlich Dauer :";
51
		$l_expiration_imp="Verfallsdatum :";
49
		$l_expiration_imp="Verfallsdatum :";
52
		$l_unlimited="Unbegrentz";
50
		$l_unlimited="Unbegrentz";
53
		$l_without="Ohne";
51
		$l_without="Ohne";
-
 
52
		$l_duplicate="Duplikat";
54
	break;
53
	break;
55
	case 'nl':
54
	case 'nl':
56
		$l_title_imp = "ONTVANGST INTERNET";
55
		$l_title_imp = "ONTVANGST INTERNET";
57
		$l_footer_imp = "Powered by ALCASAR";
56
		$l_footer_imp = "Powered by ALCASAR";
58
			//$l_explain1_imp = "Voer 'Alcasar' in uw browser om uw account te beheren (wachtwoord, certificaat, etc.).";
57
			//$l_explain1_imp = "Voer 'Alcasar' in uw browser om uw account te beheren (wachtwoord, certificaat, etc.).";
Line 66... Line 65...
66
		$l_max_daily_session_imp="Dagelijkse uren :";
65
		$l_max_daily_session_imp="Dagelijkse uren :";
67
		$l_max_monthly_session_imp ="Maandelijkse duur :";
66
		$l_max_monthly_session_imp ="Maandelijkse duur :";
68
		$l_expiration_imp="Vervaldatum :";
67
		$l_expiration_imp="Vervaldatum :";
69
		$l_unlimited="Onbeperkte";
68
		$l_unlimited="Onbeperkte";
70
		$l_without="Ohne";
69
		$l_without="Ohne";
-
 
70
		$l_duplicate="Duplicaat";
71
	break;
71
	break;
72
	case 'es':
72
	case 'es':
73
		$l_title_imp = "BONO INTERNET";
73
		$l_title_imp = "BONO INTERNET";
74
		$l_footer_imp = "Desarrollado por ALCASAR";
74
		$l_footer_imp = "Desarrollado por ALCASAR";
75
			//$l_explain1_imp = "Escribe 'Alcasar' de su navegador para administrar su cuenta (contraseña, certificado, etc.).";
75
			//$l_explain1_imp = "Escribe 'Alcasar' de su navegador para administrar su cuenta (contraseña, certificado, etc.).";
Line 83... Line 83...
83
		$l_max_daily_session_imp="Horas diarias :";
83
		$l_max_daily_session_imp="Horas diarias :";
84
		$l_max_monthly_session_imp ="Duraciôn mensual :";
84
		$l_max_monthly_session_imp ="Duraciôn mensual :";
85
		$l_expiration_imp="Fecha de caducidad :";
85
		$l_expiration_imp="Fecha de caducidad :";
86
		$l_unlimited="Ilimitado";
86
		$l_unlimited="Ilimitado";
87
		$l_without="Sin";
87
		$l_without="Sin";
-
 
88
		$l_duplicate="Duplicado";
88
	break;
89
	break;
89
	case 'it':
90
	case 'it':
90
		$l_title_imp = "RICEVIMENTO INTERNET";
91
		$l_title_imp = "RICEVIMENTO INTERNET";
91
		$l_footer_imp = "Powered by ALCASAR";
92
		$l_footer_imp = "Powered by ALCASAR";
92
			//$l_explain1_imp = "Inserisci 'alcasar' nel tuo browser per gestire il tuo account (password, certificato, ecc).";
93
			//$l_explain1_imp = "Inserisci 'alcasar' nel tuo browser per gestire il tuo account (password, certificato, ecc).";
Line 100... Line 101...
100
		$l_max_daily_session_imp="Ore giornaliere :";
101
		$l_max_daily_session_imp="Ore giornaliere :";
101
		$l_max_monthly_session_imp ="Durata mensile :";
102
		$l_max_monthly_session_imp ="Durata mensile :";
102
		$l_expiration_imp="Data di scadenza :";
103
		$l_expiration_imp="Data di scadenza :";
103
		$l_unlimited="Illimitato";
104
		$l_unlimited="Illimitato";
104
		$l_without="Senza";
105
		$l_without="Senza";
-
 
106
		$l_duplicate="Duplicato";
105
	break;
107
	break;
106
	case 'pt':
108
	case 'pt':
107
		$l_title_imp = "BILHETE DE ACESSO À INTERNET";
109
		$l_title_imp = "BILHETE DE ACESSO À INTERNET";
108
		$l_footer_imp = "Desenvolvido por ALCASAR";
110
		$l_footer_imp = "Desenvolvido por ALCASAR";
109
			//$l_explain1_imp = "Digite 'Alcasar' no seu navegador para gerenciar sua conta (senha, certidão, etc).";
111
			//$l_explain1_imp = "Digite 'Alcasar' no seu navegador para gerenciar sua conta (senha, certidão, etc).";
Line 117... Line 119...
117
		$l_max_daily_session_imp="Conexão máxima diária :";
119
		$l_max_daily_session_imp="Conexão máxima diária :";
118
		$l_max_monthly_session_imp ="MConexão máxima mensal :";
120
		$l_max_monthly_session_imp ="MConexão máxima mensal :";
119
		$l_expiration_imp="Data de vencimento :";
121
		$l_expiration_imp="Data de vencimento :";
120
		$l_unlimited="Ilimitado";
122
		$l_unlimited="Ilimitado";
121
		$l_without="Sem";
123
		$l_without="Sem";
-
 
124
		$l_duplicate="Duplicado";
122
	break;
125
	break;
123
	default:
126
	default:
124
		$l_title_imp = "INTERNET ACCESS TICKET";
127
		$l_title_imp = "INTERNET ACCESS TICKET";
125
		$l_footer_imp = "Powered by ALCASAR";
128
		$l_footer_imp = "Powered by ALCASAR";
126
			//$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, certificate, etc.).";
129
			//$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, certificate, etc.).";
Line 134... Line 137...
134
		$l_max_daily_session_imp="Max daily session :";
137
		$l_max_daily_session_imp="Max daily session :";
135
		$l_max_monthly_session_imp ="Max monthly session :";
138
		$l_max_monthly_session_imp ="Max monthly session :";
136
		$l_expiration_imp="Expiration date :";
139
		$l_expiration_imp="Expiration date :";
137
		$l_unlimited="Unlimited";
140
		$l_unlimited="Unlimited";
138
		$l_without="Without";
141
		$l_without="Without";
-
 
142
		$l_duplicate="Duplicate";
139
	break;
143
	break;
140
	}
144
	}
141
	
145
	
142
	/*  Si les valeurs de durée sont égal à '-' remplissage avec la valeur 'Illimitée'*/
146
	/*  Si les valeurs de durée sont égal à '-' remplissage avec la valeur 'Illimitée'*/
143
	if ($sto_imp=='-'){ $sto_imp=$l_unlimited;}
147
	if ($sto_imp=='-'){ $sto_imp=$l_unlimited;}
Line 172... Line 176...
172
$pdf->addInfos($l_max_all_session_imp, $mas_imp);
176
$pdf->addInfos($l_max_all_session_imp, $mas_imp);
173
$pdf->addInfos($l_session_timeout_imp, $sto_imp);
177
$pdf->addInfos($l_session_timeout_imp, $sto_imp);
174
$pdf->addInfos($l_max_daily_session_imp, $mds_imp);
178
$pdf->addInfos($l_max_daily_session_imp, $mds_imp);
175
$pdf->addInfos($l_expiration_imp, $exp_imp);
179
$pdf->addInfos($l_expiration_imp, $exp_imp);
176
$pdf->Ln(10);
180
$pdf->Ln(10);
177
$pdf->addComment($l_explain);
181
$pdf->addComment($l_duplicate,'C');//à mettre en rouge
178
 
182
 
179
// envoie du document au navigateur 
183
// envoie du document au navigateur 
180
$ticket_name="ticket_".$log_imp.".pdf";
184
$ticket_name="ticket_".$log_imp.".pdf";
181
$pdf->Output("ticket.pdf");
185
$pdf->Output("ticket.pdf");
182
header ('Location: ticket.pdf');
186
header ('Location: ticket.pdf');