Line 11... |
Line 11... |
11 |
$mms_imp=utf8_decode($_POST["mms_imp"]);
|
11 |
$mms_imp=utf8_decode($_POST["mms_imp"]);
|
12 |
//--initialisation des classes FPDF
|
12 |
//--initialisation des classes FPDF
|
13 |
//Langue du Ticket d'impression en fonction de la liste déroulante
|
13 |
//Langue du Ticket d'impression en fonction de la liste déroulante
|
14 |
switch ($langue_imp){
|
14 |
switch ($langue_imp){
|
15 |
case 'fr':
|
15 |
case 'fr':
|
16 |
$l_title_imp = "TICKET ACCÈS INTERNET";
|
16 |
$l_title_imp = "TICKET D'ACCÈS INTERNET";
|
- |
|
17 |
$l_footer_imp = "Généré par ALCASAR";
|
- |
|
18 |
$l_explain1_imp = "Entrer 'alcasar' dans votre navigateur pour gérer votre compte (déconnexion, mot de passe, etc.).";
|
17 |
$l_login_imp = "Utilisateur :";
|
19 |
$l_login_imp = "Utilisateur :";
|
18 |
$l_password_imp = "Mot de passe :";
|
20 |
$l_password_imp = "Mot de passe :";
|
19 |
$l_max_all_session_imp="Durée totale autoriséee :";
|
21 |
$l_max_all_session_imp="Durée totale autorisée :";
|
20 |
$l_session_timeout_imp="Durée d'une session :";
|
22 |
$l_session_timeout_imp="Durée d'une session :";
|
21 |
$l_max_daily_session_imp="Durée journalière :";
|
23 |
$l_max_daily_session_imp="Durée journalière :";
|
22 |
$l_max_monthly_session_imp ="Durée mensuelle :";
|
24 |
$l_max_monthly_session_imp ="Durée mensuelle :";
|
23 |
$l_expiration_imp="Date d'expiration :";
|
25 |
$l_expiration_imp="Date d'expiration :";
|
24 |
$v_illimit="Illimitée";
|
26 |
$v_illimit="Illimitée";
|
25 |
$v_without="Aucune";
|
27 |
$v_without="Aucune";
|
26 |
break;
|
28 |
break;
|
27 |
case 'de':
|
29 |
case 'de':
|
28 |
$l_title_imp = "GUTSCHEIN SPRACHE";
|
30 |
$l_title_imp = "INTERNETZUGANG TICKET";
|
- |
|
31 |
$l_footer_imp = "Präsentiert von ALCASAR";
|
- |
|
32 |
$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, logout, etc.).";
|
29 |
$l_login_imp = "Login :";
|
33 |
$l_login_imp = "Login :";
|
30 |
$l_password_imp = "Passwort :";
|
34 |
$l_password_imp = "Passwort :";
|
31 |
$l_max_all_session_imp="Maximale erlaubt Dauer :";
|
35 |
$l_max_all_session_imp="Maximale erlaubt Dauer :";
|
32 |
$l_session_timeout_imp="Dauer der Sitzung :";
|
36 |
$l_session_timeout_imp="Dauer der Sitzung :";
|
33 |
$l_max_daily_session_imp="Stunden täglich :";
|
37 |
$l_max_daily_session_imp="Stunden täglich :";
|
Line 36... |
Line 40... |
36 |
$v_illimit="Unbegrentz";
|
40 |
$v_illimit="Unbegrentz";
|
37 |
$v_without="Ohne";
|
41 |
$v_without="Ohne";
|
38 |
break;
|
42 |
break;
|
39 |
case 'nl':
|
43 |
case 'nl':
|
40 |
$l_title_imp = "ONTVANGST INTERNET";
|
44 |
$l_title_imp = "ONTVANGST INTERNET";
|
- |
|
45 |
$l_footer_imp = "Powered by ALCASAR";
|
41 |
$l_login_imp = "Gebruikers :";
|
46 |
$l_login_imp = "Gebruikers :";
|
42 |
$l_password_imp = "Wachtwoord :";
|
47 |
$l_password_imp = "Wachtwoord :";
|
43 |
$l_max_all_session_imp="Maximun all session time :"; // a traduire
|
48 |
$l_max_all_session_imp="Totaal toegestane tijd :";
|
44 |
$l_session_timeout_imp="Sessieduur :";
|
49 |
$l_session_timeout_imp="Sessieduur :";
|
45 |
$l_max_daily_session_imp="Dagelijkse uren :";
|
50 |
$l_max_daily_session_imp="Dagelijkse uren :";
|
46 |
$l_max_monthly_session_imp ="Maandelijkse duur :";
|
51 |
$l_max_monthly_session_imp ="Maandelijkse duur :";
|
47 |
$l_expiration_imp="Vervaldatum :";
|
52 |
$l_expiration_imp="Vervaldatum :";
|
48 |
$v_illimit="Onbeperkte";
|
53 |
$v_illimit="Onbeperkte";
|
49 |
$v_without="Ohne";
|
54 |
$v_without="Ohne";
|
50 |
break;
|
55 |
break;
|
51 |
case 'es':
|
56 |
case 'es':
|
52 |
$l_title_imp = "BONO INTERNET";
|
57 |
$l_title_imp = "BONO INTERNET";
|
- |
|
58 |
$l_footer_imp = "Desarrollado por ALCASAR";
|
53 |
$l_login_imp = "Usuario :";
|
59 |
$l_login_imp = "Usuario :";
|
54 |
$l_password_imp = "Contraseña :";
|
60 |
$l_password_imp = "Contraseña :";
|
55 |
$l_max_all_session_imp="Maximun all session time :"; // a traduire
|
61 |
$l_max_all_session_imp="Tiempo total permitido :";
|
56 |
$l_session_timeout_imp="Duraciôn de Sesiôn :";
|
62 |
$l_session_timeout_imp="Duraciôn de Sesiôn :";
|
57 |
$l_max_daily_session_imp="Horas diarias :";
|
63 |
$l_max_daily_session_imp="Horas diarias :";
|
58 |
$l_max_monthly_session_imp ="Duraciôn mensual :";
|
64 |
$l_max_monthly_session_imp ="Duraciôn mensual :";
|
59 |
$l_expiration_imp="Fecha de caducidad :";
|
65 |
$l_expiration_imp="Fecha de caducidad :";
|
60 |
$v_illimit="Ilimitado";
|
66 |
$v_illimit="Ilimitado";
|
61 |
$v_without="Sin";
|
67 |
$v_without="Sin";
|
62 |
break;
|
68 |
break;
|
63 |
case 'it':
|
69 |
case 'it':
|
64 |
$l_title_imp = "RICEVIMENTO INTERNET";
|
70 |
$l_title_imp = "RICEVIMENTO INTERNET";
|
- |
|
71 |
$l_footer_imp = "Powered by ALCASAR";
|
65 |
$l_login_imp = "Utenti :";
|
72 |
$l_login_imp = "Utenti :";
|
66 |
$l_password_imp = "Password :";
|
73 |
$l_password_imp = "Password :";
|
67 |
$l_max_all_session_imp="Maximun all session time :"; // a traduire
|
74 |
$l_max_all_session_imp="Tempo totale consentito:";
|
68 |
$l_session_timeout_imp="Durata della sessione :";
|
75 |
$l_session_timeout_imp="Durata della sessione :";
|
69 |
$l_max_daily_session_imp="Ore giornaliere :";
|
76 |
$l_max_daily_session_imp="Ore giornaliere :";
|
70 |
$l_max_monthly_session_imp ="Durata mensile :";
|
77 |
$l_max_monthly_session_imp ="Durata mensile :";
|
71 |
$l_expiration_imp="Data di scadenza :";
|
78 |
$l_expiration_imp="Data di scadenza :";
|
72 |
$v_illimit="Illimitato";
|
79 |
$v_illimit="Illimitato";
|
73 |
$v_without="Senza";
|
80 |
$v_without="Senza";
|
74 |
break;
|
81 |
break;
|
- |
|
82 |
case 'pt':
|
- |
|
83 |
$l_title_imp = "BILHETE DE ACESSO À INTERNET";
|
- |
|
84 |
$l_footer_imp = "Desenvolvido por ALCASAR";
|
- |
|
85 |
$l_login_imp = "Usuário :";
|
- |
|
86 |
$l_password_imp = "Senha :";
|
- |
|
87 |
$l_max_all_session_imp="Tempo máximo de toda conexão :";
|
- |
|
88 |
$l_session_timeout_imp="Fim da conexão :";
|
- |
|
89 |
$l_max_daily_session_imp="Conexão máxima diária :";
|
- |
|
90 |
$l_max_monthly_session_imp ="MConexão máxima mensal :";
|
- |
|
91 |
$l_expiration_imp="Data de vencimento :";
|
- |
|
92 |
$v_illimit="Ilimitado";
|
- |
|
93 |
$v_without="Sem";
|
75 |
default:
|
94 |
default:
|
76 |
$l_title_imp = "INTERNET VOUCHER";
|
95 |
$l_title_imp = "INTERNET ACCESS TICKET";
|
- |
|
96 |
$l_footer_imp = "Powered by ALCASAR";
|
77 |
$l_login_imp = "Login :";
|
97 |
$l_login_imp = "Login :";
|
78 |
$l_password_imp = "Password :";
|
98 |
$l_password_imp = "Password :";
|
79 |
$l_max_all_session_imp="Maximun all session time :";
|
99 |
$l_max_all_session_imp="Total time allowed :";
|
80 |
$l_session_timeout_imp="Session timeout :";
|
100 |
$l_session_timeout_imp="Session timeout :";
|
81 |
$l_max_daily_session_imp="Max daily session :";
|
101 |
$l_max_daily_session_imp="Max daily session :";
|
82 |
$l_max_monthly_session_imp ="Max monthly session :";
|
102 |
$l_max_monthly_session_imp ="Max monthly session :";
|
83 |
$l_expiration_imp="Expiration date :";
|
103 |
$l_expiration_imp="Expiration date :";
|
84 |
$v_illimit="Unlimited";
|
104 |
$v_illimit="Unlimited";
|
Line 95... |
Line 115... |
95 |
function Header()
|
115 |
function Header()
|
96 |
{
|
116 |
{
|
97 |
global $l_title_imp;
|
117 |
global $l_title_imp;
|
98 |
//Logo coordonnées x , y, largeur de l'image
|
118 |
//Logo coordonnées x , y, largeur de l'image
|
99 |
$this->Image('../../../images/logo-alcasar.png',25,5,25);
|
119 |
$this->Image('../../../images/logo-alcasar.png',25,5,25);
|
- |
|
120 |
$this->Image('../../../images/organisme.png',250,5,25);
|
100 |
//Police Arial gras 15
|
121 |
//Police Arial gras 15
|
101 |
$this->SetFont('Arial','B',18);
|
122 |
$this->SetFont('Arial','B',18);
|
102 |
//couleur de l'écriture en rouge
|
123 |
//couleur de l'écriture en rouge
|
103 |
$this->SetTextColor(250,1,10);
|
124 |
$this->SetTextColor(250,1,10);
|
104 |
//Titre largeur cellule x , hauteur y, texte, bordure 0 , Indique où déplace la prochaine position courante 0 droite, centré C
|
125 |
//Titre largeur cellule x , hauteur y, texte, bordure 0 , Indique où déplace la prochaine position courante 0 droite, centré C
|
105 |
$this->Cell(190,10,$l_title_imp,0,0,'C');
|
126 |
$this->Cell(190,10,utf8_decode($l_title_imp),0,0,'C');
|
106 |
//Saut de ligne
|
127 |
//Saut de ligne
|
107 |
$this->Ln(25);
|
128 |
$this->Ln(25);
|
108 |
}
|
129 |
}
|
109 |
//Pied de page
|
130 |
//Pied de page
|
110 |
function Footer()
|
131 |
function Footer()
|
111 |
{
|
132 |
{
|
- |
|
133 |
global $l_footer_imp;
|
112 |
//Positionnement à 1,5 cm du bas
|
134 |
//Positionnement à 1,5 cm du bas
|
113 |
$this->SetY(-15);
|
135 |
$this->SetY(-15);
|
114 |
//Police Arial italique 8
|
136 |
//Police Arial italique 8
|
115 |
$this->SetFont('Arial','I',8);
|
137 |
$this->SetFont('Arial','I',8);
|
116 |
//Produit par est volontairement resté en français
|
138 |
//Produit par est volontairement resté en français
|
117 |
$this->Cell(200,20,'Produit par : ALCASAR',0,0,'C');
|
139 |
$this->Cell(200,20,utf8_decode($l_footer_imp),0,0,'C');
|
118 |
}
|
140 |
}
|
119 |
//fonction rectangle
|
141 |
//fonction rectangle
|
120 |
//Rectangle : x, y : coin supérieur gauche du rectangle.w, h : largeur et hauteur. r : rayon des coins arrondis.
|
142 |
//Rectangle : x, y : coin supérieur gauche du rectangle.w, h : largeur et hauteur. r : rayon des coins arrondis.
|
121 |
//style : comme celui de Rect() : F, D (défaut), FD ou DF.
|
143 |
//style : comme celui de Rect() : F, D (défaut), FD ou DF.
|
122 |
function RoundedRect($x, $y, $w, $h, $r, $style = '')
|
144 |
function RoundedRect($x, $y, $w, $h, $r, $style = '')
|
Line 173... |
Line 195... |
173 |
$pdf->RoundedRect(40, 32, 130, 80, 3.5, 'D');
|
195 |
$pdf->RoundedRect(40, 32, 130, 80, 3.5, 'D');
|
174 |
//création utilisateur et mot de passe coordonnées x , y hauteur et largeur , texte
|
196 |
//création utilisateur et mot de passe coordonnées x , y hauteur et largeur , texte
|
175 |
$pdf->Ln(5);
|
197 |
$pdf->Ln(5);
|
176 |
$pdf->SetFont('Arial','',12);
|
198 |
$pdf->SetFont('Arial','',12);
|
177 |
$pdf->cell(50);
|
199 |
$pdf->cell(50);
|
178 |
$pdf->Cell(45,10,$l_login_imp,0,0,'R');
|
200 |
$pdf->Cell(45,10,utf8_decode($l_login_imp),0,0,'R');
|
179 |
$pdf->SetFont('Arial','B',12);
|
201 |
$pdf->SetFont('Arial','B',12);
|
180 |
$pdf->Cell(45,10,$log_imp,0,1,'L');
|
202 |
$pdf->Cell(45,10,$log_imp,0,1,'L');
|
181 |
$pdf->cell(50);
|
203 |
$pdf->cell(50);
|
182 |
$pdf->SetFont('Arial','',12);
|
204 |
$pdf->SetFont('Arial','',12);
|
183 |
$pdf->Cell(45,10,$l_password_imp,0,0,'R');
|
205 |
$pdf->Cell(45,10,utf8_decode($l_password_imp),0,0,'R');
|
184 |
$pdf->SetFont('Arial','B',12);
|
206 |
$pdf->SetFont('Arial','B',12);
|
185 |
$pdf->Cell(45,10,$passwd_imp,0,1,'L');
|
207 |
$pdf->Cell(45,10,$passwd_imp,0,1,'L');
|
186 |
//saut de ligne
|
208 |
//saut de ligne
|
187 |
$pdf->Ln(7);
|
209 |
$pdf->Ln(7);
|
188 |
//création des attributs utilisateurs coordonnées x , y hauteur et largeur , texte
|
210 |
//création des attributs utilisateurs coordonnées x , y hauteur et largeur , texte
|
189 |
$pdf->cell(50);
|
211 |
$pdf->cell(50);
|
190 |
$pdf->SetFont('Arial','',12);
|
212 |
$pdf->SetFont('Arial','',12);
|
191 |
$pdf->Cell(45,10,$l_max_all_session_imp,0,0,'R');
|
213 |
$pdf->Cell(45,10,utf8_decode($l_max_all_session_imp),0,0,'R');
|
192 |
$pdf->SetFont('Arial','B',12);
|
214 |
$pdf->SetFont('Arial','B',12);
|
193 |
$pdf->Cell(45,10,$mas_imp,0,1,'L');
|
215 |
$pdf->Cell(45,10,$mas_imp,0,1,'L');
|
194 |
$pdf->cell(50);
|
216 |
$pdf->cell(50);
|
195 |
$pdf->SetFont('Arial','',12);
|
217 |
$pdf->SetFont('Arial','',12);
|
196 |
$pdf->Cell(45,10,$l_session_timeout_imp,0,0,'R');
|
218 |
$pdf->Cell(45,10,utf8_decode($l_session_timeout_imp),0,0,'R');
|
197 |
$pdf->SetFont('Arial','B',12);
|
219 |
$pdf->SetFont('Arial','B',12);
|
198 |
$pdf->Cell(45,10,$sto_imp,0,1,'L');
|
220 |
$pdf->Cell(45,10,$sto_imp,0,1,'L');
|
199 |
$pdf->cell(50);
|
221 |
$pdf->cell(50);
|
200 |
$pdf->SetFont('Arial','',12);
|
222 |
$pdf->SetFont('Arial','',12);
|
201 |
$pdf->Cell(45,10,$l_max_daily_session_imp,0,0,'R');
|
223 |
$pdf->Cell(45,10,utf8_decode($l_max_daily_session_imp),0,0,'R');
|
202 |
$pdf->SetFont('Arial','B',12);
|
224 |
$pdf->SetFont('Arial','B',12);
|
203 |
$pdf->Cell(45,10,$mds_imp,0,1,'L');
|
225 |
$pdf->Cell(45,10,$mds_imp,0,1,'L');
|
204 |
//$pdf->SetFont('Arial','',12);
|
226 |
//$pdf->SetFont('Arial','',12);
|
205 |
//$pdf->cell(50);
|
227 |
//$pdf->cell(50);
|
206 |
//$pdf->Cell(45,10,$l_max_monthly_session_imp,0,0,'R');
|
228 |
//$pdf->Cell(45,10,$l_max_monthly_session_imp,0,0,'R');
|
207 |
//$pdf->SetFont('Arial','B',12);
|
229 |
//$pdf->SetFont('Arial','B',12);
|
208 |
//$pdf->Cell(45,10,$mms_imp,0,1,'L');
|
230 |
//$pdf->Cell(45,10,$mms_imp,0,1,'L');
|
209 |
$pdf->cell(50);
|
231 |
$pdf->cell(50);
|
210 |
$pdf->SetFont('Arial','',12);
|
232 |
$pdf->SetFont('Arial','',12);
|
211 |
$pdf->Cell(45,10,$l_expiration_imp,0,0,'R');
|
233 |
$pdf->Cell(45,10,utf8_decode($l_expiration_imp),0,0,'R');
|
212 |
$pdf->SetFont('Arial','B',12);
|
234 |
$pdf->SetFont('Arial','B',12);
|
213 |
$pdf->Cell(45,10,$exp_imp,0,1,'L');
|
235 |
$pdf->Cell(45,10,$exp_imp,0,1,'L');
|
- |
|
236 |
$pdf->Ln(7);
|
- |
|
237 |
$pdf->cell(50);
|
- |
|
238 |
$pdf->SetFont('Arial','',8);
|
- |
|
239 |
$pdf->Cell(0,10,utf8_decode($l_explain1_imp),0,1,'L');
|
214 |
|
240 |
|
215 |
//renvoie au navigateur du document
|
241 |
//renvoie au navigateur du document
|
216 |
$ticket_name="ticket_".$log_imp.".pdf";
|
242 |
$ticket_name="ticket_".$log_imp.".pdf";
|
217 |
$pdf->Output($ticket_name,'D');
|
243 |
$pdf->Output($ticket_name,'D');
|
218 |
|
244 |
|