Subversion Repositories ALCASAR

Rev

Rev 922 | Rev 946 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 922 Rev 926
1
<?php
1
<?php
2
// ticket d'impression (thank's to Geoffroy MUSITELLI)
2
// ticket d'impression (thank's to Geoffroy MUSITELLI)
3
//--recupération des variables provenant du formulaire 
3
//--recupération des variables provenant du formulaire 
4
$langue_imp=utf8_decode($_POST["langue_imp"]);
4
$langue_imp=utf8_decode($_POST["langue_imp"]);
5
$log_imp=utf8_decode($_POST["log_imp"]);
5
$log_imp=utf8_decode($_POST["log_imp"]);
6
$passwd_imp=utf8_decode($_POST["passwd_imp"]);
6
$passwd_imp=utf8_decode($_POST["passwd_imp"]);
7
$exp_imp=utf8_decode($_POST["exp_imp"]);
7
$exp_imp=utf8_decode($_POST["exp_imp"]);
8
$sto_imp=utf8_decode($_POST["sto_imp"]);
8
$sto_imp=utf8_decode($_POST["sto_imp"]);
9
$mas_imp=utf8_decode($_POST["mas_imp"]);
9
$mas_imp=utf8_decode($_POST["mas_imp"]);
10
$mds_imp=utf8_decode($_POST["mds_imp"]);
10
$mds_imp=utf8_decode($_POST["mds_imp"]);
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 D'ACCÈS INTERNET";
16
		$l_title_imp = "TICKET D'ACCÈS INTERNET";
17
		$l_footer_imp = "Généré par ALCASAR";
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.).";
18
	       	$l_explain1_imp = "Entrer 'alcasar' dans votre navigateur pour gérer votre compte (déconnexion, mot de passe, etc.).";
19
		$l_login_imp = "Utilisateur :";
19
		$l_login_imp = "Utilisateur :";
20
		$l_password_imp = "Mot de passe :";
20
		$l_password_imp = "Mot de passe :";
21
		$l_max_all_session_imp="Durée totale autorisée :";
21
		$l_max_all_session_imp="Durée totale autorisée :";
22
		$l_session_timeout_imp="Durée d'une session :";
22
		$l_session_timeout_imp="Durée d'une session :";
23
		$l_max_daily_session_imp="Durée journalière :";
23
		$l_max_daily_session_imp="Durée journalière :";
24
		$l_max_monthly_session_imp ="Durée mensuelle :";
24
		$l_max_monthly_session_imp ="Durée mensuelle :";
25
		$l_expiration_imp="Date d'expiration :";
25
		$l_expiration_imp="Date d'expiration :";
26
		$l_unlimited="Illimitée";
26
		$l_unlimited="Illimitée";
27
		$l_without="Aucune";
27
		$l_without="Aucune";
28
	break;
28
	break;
29
	case 'de':
29
	case 'de':
30
		$l_title_imp = "INTERNETZUGANG TICKET";
30
		$l_title_imp = "INTERNETZUGANG TICKET";
31
		$l_footer_imp = "Präsentiert von ALCASAR";
31
		$l_footer_imp = "Präsentiert von ALCASAR";
32
	       	$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, logout, etc.).";
32
	       	$l_explain1_imp = "Geben Sie 'Alcasar' in Ihrem Browser, um Ihr Konto zu verwalten (Passwort, Logout, etc.).";
33
		$l_login_imp = "Login :";
33
		$l_login_imp = "Login :";
34
		$l_password_imp = "Passwort :";
34
		$l_password_imp = "Passwort :";
35
		$l_max_all_session_imp="Maximale erlaubt Dauer :";
35
		$l_max_all_session_imp="Maximale erlaubt Dauer :";
36
		$l_session_timeout_imp="Dauer der Sitzung :";
36
		$l_session_timeout_imp="Dauer der Sitzung :";
37
		$l_max_daily_session_imp="Stunden t&auml;glich :";
37
		$l_max_daily_session_imp="Stunden t&auml;glich :";
38
		$l_max_monthly_session_imp ="monatlich Dauer :";
38
		$l_max_monthly_session_imp ="monatlich Dauer :";
39
		$l_expiration_imp="Verfallsdatum :";
39
		$l_expiration_imp="Verfallsdatum :";
40
		$l_unlimited="Unbegrentz";
40
		$l_unlimited="Unbegrentz";
41
		$l_without="Ohne";
41
		$l_without="Ohne";
42
	break;
42
	break;
43
	case 'nl':
43
	case 'nl':
44
		$l_title_imp = "ONTVANGST INTERNET";
44
		$l_title_imp = "ONTVANGST INTERNET";
45
		$l_footer_imp = "Powered by ALCASAR";
45
		$l_footer_imp = "Powered by ALCASAR";
46
	       	$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, logout, etc.).";
46
	       	$l_explain1_imp = "Voer 'Alcasar' in je browser om uw account te beheren (wachtwoord, uitloggen, etc.).";
47
		$l_login_imp = "Gebruikers :";
47
		$l_login_imp = "Gebruikers :";
48
		$l_password_imp = "Wachtwoord :";
48
		$l_password_imp = "Wachtwoord :";
49
		$l_max_all_session_imp="Totaal toegestane tijd :";
49
		$l_max_all_session_imp="Totaal toegestane tijd :";
50
		$l_session_timeout_imp="Sessieduur :";
50
		$l_session_timeout_imp="Sessieduur :";
51
		$l_max_daily_session_imp="Dagelijkse uren :";
51
		$l_max_daily_session_imp="Dagelijkse uren :";
52
		$l_max_monthly_session_imp ="Maandelijkse duur :";
52
		$l_max_monthly_session_imp ="Maandelijkse duur :";
53
		$l_expiration_imp="Vervaldatum :";
53
		$l_expiration_imp="Vervaldatum :";
54
		$l_unlimited="Onbeperkte";
54
		$l_unlimited="Onbeperkte";
55
		$l_without="Ohne";
55
		$l_without="Ohne";
56
	break;
56
	break;
57
	case 'es':
57
	case 'es':
58
		$l_title_imp = "BONO INTERNET";
58
		$l_title_imp = "BONO INTERNET";
59
		$l_footer_imp = "Desarrollado por ALCASAR";
59
		$l_footer_imp = "Desarrollado por ALCASAR";
60
	       	$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, logout, etc.).";
60
	       	$l_explain1_imp = "Escribe 'Alcasar' en su navegador para administrar su cuenta (contraseña, cerrar sesión, etc.).";
61
		$l_login_imp = "Usuario :";
61
		$l_login_imp = "Usuario :";
62
		$l_password_imp = "Contraseña :";
62
		$l_password_imp = "Contraseña :";
63
		$l_max_all_session_imp="Tiempo total permitido :";
63
		$l_max_all_session_imp="Tiempo total permitido :";
64
		$l_session_timeout_imp="Duraciôn de Sesiôn :";
64
		$l_session_timeout_imp="Duraciôn de Sesiôn :";
65
		$l_max_daily_session_imp="Horas diarias :";
65
		$l_max_daily_session_imp="Horas diarias :";
66
		$l_max_monthly_session_imp ="Duraciôn mensual :";
66
		$l_max_monthly_session_imp ="Duraciôn mensual :";
67
		$l_expiration_imp="Fecha de caducidad :";
67
		$l_expiration_imp="Fecha de caducidad :";
68
		$l_unlimited="Ilimitado";
68
		$l_unlimited="Ilimitado";
69
		$l_without="Sin";
69
		$l_without="Sin";
70
	break;
70
	break;
71
	case 'it':
71
	case 'it':
72
		$l_title_imp = "RICEVIMENTO INTERNET";
72
		$l_title_imp = "RICEVIMENTO INTERNET";
73
		$l_footer_imp = "Powered by ALCASAR";
73
		$l_footer_imp = "Powered by ALCASAR";
74
	       	$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, logout, etc.).";
74
	       	$l_explain1_imp = "Inserisci 'alcasar' nel tuo browser per gestire il tuo account (password, logout, ecc).";
75
		$l_login_imp = "Utenti :";
75
		$l_login_imp = "Utenti :";
76
		$l_password_imp = "Password :";
76
		$l_password_imp = "Password :";
77
		$l_max_all_session_imp="Tempo totale consentito:";
77
		$l_max_all_session_imp="Tempo totale consentito:";
78
		$l_session_timeout_imp="Durata della sessione :";
78
		$l_session_timeout_imp="Durata della sessione :";
79
		$l_max_daily_session_imp="Ore giornaliere :";
79
		$l_max_daily_session_imp="Ore giornaliere :";
80
		$l_max_monthly_session_imp ="Durata mensile :";
80
		$l_max_monthly_session_imp ="Durata mensile :";
81
		$l_expiration_imp="Data di scadenza :";
81
		$l_expiration_imp="Data di scadenza :";
82
		$l_unlimited="Illimitato";
82
		$l_unlimited="Illimitato";
83
		$l_without="Senza";
83
		$l_without="Senza";
84
	break;
84
	break;
85
	case 'pt':
85
	case 'pt':
86
		$l_title_imp = "BILHETE DE ACESSO À INTERNET";
86
		$l_title_imp = "BILHETE DE ACESSO À INTERNET";
87
		$l_footer_imp = "Desenvolvido por ALCASAR";
87
		$l_footer_imp = "Desenvolvido por ALCASAR";
88
	       	$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, logout, etc.).";
88
	       	$l_explain1_imp = "Digite 'Alcasar' no seu navegador para gerenciar sua conta (senha, logout, etc).";
89
		$l_login_imp = "Usuário :";
89
		$l_login_imp = "Usuário :";
90
		$l_password_imp = "Senha :";
90
		$l_password_imp = "Senha :";
91
		$l_max_all_session_imp="Tempo máximo de toda conexão :";
91
		$l_max_all_session_imp="Tempo máximo de toda conexão :";
92
		$l_session_timeout_imp="Fim da conexão :";
92
		$l_session_timeout_imp="Fim da conexão :";
93
		$l_max_daily_session_imp="Conexão máxima diária :";
93
		$l_max_daily_session_imp="Conexão máxima diária :";
94
		$l_max_monthly_session_imp ="MConexão máxima mensal :";
94
		$l_max_monthly_session_imp ="MConexão máxima mensal :";
95
		$l_expiration_imp="Data de vencimento :";
95
		$l_expiration_imp="Data de vencimento :";
96
		$l_unlimited="Ilimitado";
96
		$l_unlimited="Ilimitado";
97
		$l_without="Sem";
97
		$l_without="Sem";
98
	break;
98
	break;
99
	default:
99
	default:
100
		$l_title_imp = "INTERNET ACCESS TICKET";
100
		$l_title_imp = "INTERNET ACCESS TICKET";
101
		$l_footer_imp = "Powered by ALCASAR";
101
		$l_footer_imp = "Powered by ALCASAR";
102
	       	$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, logout, etc.).";
102
	       	$l_explain1_imp = "Enter 'alcasar' in your browser to manage your account (password, logout, etc.).";
103
		$l_login_imp = "Login :";
103
		$l_login_imp = "Login :";
104
		$l_password_imp = "Password :";
104
		$l_password_imp = "Password :";
105
		$l_max_all_session_imp="Total time allowed :";
105
		$l_max_all_session_imp="Total time allowed :";
106
		$l_session_timeout_imp="Session timeout :";
106
		$l_session_timeout_imp="Session timeout :";
107
		$l_max_daily_session_imp="Max daily session :";
107
		$l_max_daily_session_imp="Max daily session :";
108
		$l_max_monthly_session_imp ="Max monthly session :";
108
		$l_max_monthly_session_imp ="Max monthly session :";
109
		$l_expiration_imp="Expiration date :";
109
		$l_expiration_imp="Expiration date :";
110
		$l_unlimited="Unlimited";
110
		$l_unlimited="Unlimited";
111
		$l_without="Without";
111
		$l_without="Without";
112
	break;
112
	break;
113
	}
113
	}
114
//création de la classe PDF pour faire l'entête et pieds de page
114
//création de la classe PDF pour faire l'entête et pieds de page
115
require('../lib/fpdf/fpdf.php');
115
require('../lib/fpdf/fpdf.php');
116
class PDF extends FPDF
116
class PDF extends FPDF
117
{
117
{
118
	//Entête
118
	//Entête
119
	function Header()
119
	function Header()
120
	{
120
	{
121
		global $l_title_imp;
121
		global $l_title_imp;
122
		//Logo coordonnées x , y, largeur de l'image 
122
		//Logo coordonnées x , y, largeur de l'image 
123
		$this->Image('../../../images/logo-alcasar.png',25,5,25);
123
		$this->Image('../../../images/logo-alcasar.png',30,15,30);
124
		$this->Image('../../../images/organisme.png',250,5,25);
124
		$this->Image('../../../images/organisme.png',150,15,25);
125
		//Police Arial gras 15
125
		//Police Arial gras 15
126
		$this->SetFont('Arial','B',18);
126
		$this->SetFont('Arial','B',18);
127
		//couleur de l'écriture en rouge
127
		//couleur de l'écriture en rouge
128
		$this->SetTextColor(250,1,10);
128
		$this->SetTextColor(250,1,10);
129
		//Titre largeur cellule x , hauteur y, texte, bordure 0 , Indique où déplace la prochaine position courante 0 droite, centré C
129
		//Titre largeur cellule x , hauteur y, texte, bordure 0 , Indique où déplace la prochaine position courante 0 droite, centré C
130
		$this->Cell(190,10,utf8_decode($l_title_imp),0,0,'C');
130
		$this->Cell(190,10,utf8_decode($l_title_imp),0,0,'C');
131
		//Saut de ligne
131
		//Saut de ligne
132
		$this->Ln(25);
132
		$this->Ln(25);
133
	}
133
	}
134
	//Pied de page
134
	//Pied de page
135
	function Footer()
135
	function Footer()
136
	{
136
	{
137
		global $l_footer_imp;
137
		global $l_footer_imp;
138
		//Positionnement à 1,5 cm du bas
138
		//Positionnement à 1,5 cm du bas
139
		$this->SetY(-15);
139
		$this->SetY(-15);
140
		//Police Arial italique 8
140
		//Police Arial italique 8
141
		$this->SetFont('Arial','I',8);
141
		$this->SetFont('Arial','I',8);
142
		//Produit par est volontairement resté en français
-
 
143
		$this->Cell(200,20,utf8_decode($l_footer_imp),0,0,'C');
142
		$this->Cell(200,20,utf8_decode($l_footer_imp),0,0,'C');
144
	}
143
	}
145
	//fonction rectangle
144
	//fonction rectangle
146
	//Rectangle : x, y : coin supérieur gauche du rectangle.w, h : largeur et hauteur. r : rayon des coins arrondis.
145
	//Rectangle : x, y : coin supérieur gauche du rectangle.w, h : largeur et hauteur. r : rayon des coins arrondis.
147
	//style : comme celui de Rect() : F, D (défaut), FD ou DF. 
146
	//style : comme celui de Rect() : F, D (défaut), FD ou DF. 
148
	function RoundedRect($x, $y, $w, $h, $r, $style = '')
147
	function RoundedRect($x, $y, $w, $h, $r, $style = '')
149
	{
148
	{
150
		$k = $this->k;
149
		$k = $this->k;
151
		$hp = $this->h;
150
		$hp = $this->h;
152
		if($style=='F')
151
		if($style=='F')
153
			$op='f';
152
			$op='f';
154
		elseif($style=='FD' or $style=='DF')
153
		elseif($style=='FD' or $style=='DF')
155
			$op='B';
154
			$op='B';
156
		else
155
		else
157
			$op='S';
156
			$op='S';
158
		$MyArc = 4/3 * (sqrt(2) - 1);
157
		$MyArc = 4/3 * (sqrt(2) - 1);
159
		$this->_out(sprintf('%.2F %.2F m',($x+$r)*$k,($hp-$y)*$k ));
158
		$this->_out(sprintf('%.2F %.2F m',($x+$r)*$k,($hp-$y)*$k ));
160
		$xc = $x+$w-$r ;
159
		$xc = $x+$w-$r ;
161
		$yc = $y+$r;
160
		$yc = $y+$r;
162
		$this->_out(sprintf('%.2F %.2F l', $xc*$k,($hp-$y)*$k ));
161
		$this->_out(sprintf('%.2F %.2F l', $xc*$k,($hp-$y)*$k ));
163
 
162
 
164
		$this->_Arc($xc + $r*$MyArc, $yc - $r, $xc + $r, $yc - $r*$MyArc, $xc + $r, $yc);
163
		$this->_Arc($xc + $r*$MyArc, $yc - $r, $xc + $r, $yc - $r*$MyArc, $xc + $r, $yc);
165
		$xc = $x+$w-$r ;
164
		$xc = $x+$w-$r ;
166
		$yc = $y+$h-$r;
165
		$yc = $y+$h-$r;
167
		$this->_out(sprintf('%.2F %.2F l',($x+$w)*$k,($hp-$yc)*$k));
166
		$this->_out(sprintf('%.2F %.2F l',($x+$w)*$k,($hp-$yc)*$k));
168
		$this->_Arc($xc + $r, $yc + $r*$MyArc, $xc + $r*$MyArc, $yc + $r, $xc, $yc + $r);
167
		$this->_Arc($xc + $r, $yc + $r*$MyArc, $xc + $r*$MyArc, $yc + $r, $xc, $yc + $r);
169
		$xc = $x+$r ;
168
		$xc = $x+$r ;
170
		$yc = $y+$h-$r;
169
		$yc = $y+$h-$r;
171
		$this->_out(sprintf('%.2F %.2F l',$xc*$k,($hp-($y+$h))*$k));
170
		$this->_out(sprintf('%.2F %.2F l',$xc*$k,($hp-($y+$h))*$k));
172
		$this->_Arc($xc - $r*$MyArc, $yc + $r, $xc - $r, $yc + $r*$MyArc, $xc - $r, $yc);
171
		$this->_Arc($xc - $r*$MyArc, $yc + $r, $xc - $r, $yc + $r*$MyArc, $xc - $r, $yc);
173
		$xc = $x+$r ;
172
		$xc = $x+$r ;
174
		$yc = $y+$r;
173
		$yc = $y+$r;
175
		$this->_out(sprintf('%.2F %.2F l',($x)*$k,($hp-$yc)*$k ));
174
		$this->_out(sprintf('%.2F %.2F l',($x)*$k,($hp-$yc)*$k ));
176
		$this->_Arc($xc - $r, $yc - $r*$MyArc, $xc - $r*$MyArc, $yc - $r, $xc, $yc - $r);
175
		$this->_Arc($xc - $r, $yc - $r*$MyArc, $xc - $r*$MyArc, $yc - $r, $xc, $yc - $r);
177
		$this->_out($op);
176
		$this->_out($op);
178
	}
177
	}
179
    //fonction arc de cercle
178
    //fonction arc de cercle
180
	function _Arc($x1, $y1, $x2, $y2, $x3, $y3)
179
	function _Arc($x1, $y1, $x2, $y2, $x3, $y3)
181
	{
180
	{
182
		$h = $this->h;
181
		$h = $this->h;
183
		$this->_out(sprintf('%.2F %.2F %.2F %.2F %.2F %.2F c ', $x1*$this->k, ($h-$y1)*$this->k,
182
		$this->_out(sprintf('%.2F %.2F %.2F %.2F %.2F %.2F c ', $x1*$this->k, ($h-$y1)*$this->k,
184
			$x2*$this->k, ($h-$y2)*$this->k, $x3*$this->k, ($h-$y3)*$this->k));
183
			$x2*$this->k, ($h-$y2)*$this->k, $x3*$this->k, ($h-$y3)*$this->k));
185
	}
184
	}
186
}
185
}
187
 
186
 
188
//création du constructeur pdf avec fpdf : portrait P sinon paysage L, unite  mm, page A4
187
//création du constructeur pdf avec fpdf : portrait P sinon paysage L, unite  mm, page A4
189
$pdf = new PDF('L','mm','A5'); 
188
$pdf = new PDF('L','mm','A5'); 
190
$pdf->AliasNbPages();
189
$pdf->AliasNbPages();
191
//creation de la page
190
//creation de la page
192
$pdf->Addpage();
191
$pdf->Addpage();
193
//Couleur du texte en noir
192
//Couleur du texte en noir
194
$pdf->SetTextColor(0);
193
$pdf->SetTextColor(0);
195
 
194
 
196
//création du cadre arrondi qui entoure le ticket d'impression
195
//création du cadre arrondi qui entoure le ticket d'impression
197
//x, y : coin supérieur gauche du rectangle.w, h : largeur et hauteur. r : rayon des coins arrondis.
196
//x, y : coin supérieur gauche du rectangle.w, h : largeur et hauteur. r : rayon des coins arrondis.
198
//style : comme celui de Rect() : F, D (défaut), FD ou DF. 
197
//style : comme celui de Rect() : F, D (défaut), FD ou DF. 
199
$pdf->RoundedRect(40, 32, 130, 80, 3.5, 'D');
198
$pdf->RoundedRect(40, 32, 130, 80, 3.5, 'D');
200
//création utilisateur et mot de passe coordonnées x , y hauteur et largeur , texte
199
//création utilisateur et mot de passe coordonnées x , y hauteur et largeur , texte
201
$pdf->Ln(5); 
200
$pdf->Ln(5); 
202
$pdf->SetFont('Arial','',12);
201
$pdf->SetFont('Arial','',12);
203
$pdf->cell(50);
202
$pdf->cell(50);
204
$pdf->Cell(45,10,utf8_decode($l_login_imp),0,0,'R');
203
$pdf->Cell(45,10,utf8_decode($l_login_imp),0,0,'R');
205
$pdf->SetFont('Arial','B',12);
204
$pdf->SetFont('Arial','B',12);
206
$pdf->Cell(45,10,$log_imp,0,1,'L');
205
$pdf->Cell(45,10,$log_imp,0,1,'L');
207
$pdf->cell(50);
206
$pdf->cell(50);
208
$pdf->SetFont('Arial','',12);
207
$pdf->SetFont('Arial','',12);
209
$pdf->Cell(45,10,utf8_decode($l_password_imp),0,0,'R');
208
$pdf->Cell(45,10,utf8_decode($l_password_imp),0,0,'R');
210
$pdf->SetFont('Arial','B',12);
209
$pdf->SetFont('Arial','B',12);
211
$pdf->Cell(45,10,$passwd_imp,0,1,'L');
210
$pdf->Cell(45,10,$passwd_imp,0,1,'L');
212
//saut de ligne 
211
//saut de ligne 
213
$pdf->Ln(7); 
212
$pdf->Ln(7); 
214
//création des attributs utilisateurs coordonnées x , y hauteur et largeur , texte
213
//création des attributs utilisateurs coordonnées x , y hauteur et largeur , texte
215
$pdf->cell(50);
214
$pdf->cell(50);
216
$pdf->SetFont('Arial','',12);
215
$pdf->SetFont('Arial','',12);
217
$pdf->Cell(45,10,utf8_decode($l_max_all_session_imp),0,0,'R');
216
$pdf->Cell(45,10,utf8_decode($l_max_all_session_imp),0,0,'R');
218
$pdf->SetFont('Arial','B',12);
217
$pdf->SetFont('Arial','B',12);
219
if ($mas_imp == "Unlimited") $mas_imp=utf8_decode($l_unlimited);
218
if ($mas_imp == "Unlimited") $mas_imp=utf8_decode($l_unlimited);
220
$pdf->Cell(45,10,$mas_imp,0,1,'L');
219
$pdf->Cell(45,10,$mas_imp,0,1,'L');
221
$pdf->cell(50);
220
$pdf->cell(50);
222
$pdf->SetFont('Arial','',12);
221
$pdf->SetFont('Arial','',12);
223
$pdf->Cell(45,10,utf8_decode($l_session_timeout_imp),0,0,'R');
222
$pdf->Cell(45,10,utf8_decode($l_session_timeout_imp),0,0,'R');
224
$pdf->SetFont('Arial','B',12);
223
$pdf->SetFont('Arial','B',12);
225
if ($sto_imp == "Unlimited") $sto_imp=utf8_decode($l_unlimited);
224
if ($sto_imp == "Unlimited") $sto_imp=utf8_decode($l_unlimited);
226
$pdf->Cell(45,10,$sto_imp,0,1,'L');
225
$pdf->Cell(45,10,$sto_imp,0,1,'L');
227
$pdf->cell(50);
226
$pdf->cell(50);
228
$pdf->SetFont('Arial','',12);
227
$pdf->SetFont('Arial','',12);
229
$pdf->Cell(45,10,utf8_decode($l_max_daily_session_imp),0,0,'R');
228
$pdf->Cell(45,10,utf8_decode($l_max_daily_session_imp),0,0,'R');
230
$pdf->SetFont('Arial','B',12);
229
$pdf->SetFont('Arial','B',12);
231
if ($mds_imp == "Unlimited") $mds_imp=utf8_decode($l_unlimited);
230
if ($mds_imp == "Unlimited") $mds_imp=utf8_decode($l_unlimited);
232
$pdf->Cell(45,10,$mds_imp,0,1,'L');
231
$pdf->Cell(45,10,$mds_imp,0,1,'L');
233
//$pdf->SetFont('Arial','',12);
232
//$pdf->SetFont('Arial','',12);
234
//$pdf->cell(50);
233
//$pdf->cell(50);
235
//$pdf->Cell(45,10,$l_max_monthly_session_imp,0,0,'R');
234
//$pdf->Cell(45,10,$l_max_monthly_session_imp,0,0,'R');
236
//$pdf->SetFont('Arial','B',12);
235
//$pdf->SetFont('Arial','B',12);
237
//$pdf->Cell(45,10,$mms_imp,0,1,'L');
236
//$pdf->Cell(45,10,$mms_imp,0,1,'L');
238
$pdf->cell(50);
237
$pdf->cell(50);
239
$pdf->SetFont('Arial','',12);
238
$pdf->SetFont('Arial','',12);
240
$pdf->Cell(45,10,utf8_decode($l_expiration_imp),0,0,'R');
239
$pdf->Cell(45,10,utf8_decode($l_expiration_imp),0,0,'R');
241
$pdf->SetFont('Arial','B',12);
240
$pdf->SetFont('Arial','B',12);
242
if ($exp_imp == "Without") $exp_imp=utf8_decode($l_without);
241
if ($exp_imp == "Without") $exp_imp=utf8_decode($l_without);
243
$pdf->Cell(45,10,$exp_imp,0,1,'L');
242
$pdf->Cell(45,10,$exp_imp,0,1,'L');
244
$pdf->Ln(7); 
243
$pdf->Ln(7); 
245
$pdf->cell(50);
244
$pdf->cell(30);
246
$pdf->SetFont('Arial','',8);
245
$pdf->SetFont('Arial','',8);
247
$pdf->Cell(0,10,utf8_decode($l_explain1_imp),0,1,'L');
246
$pdf->Cell(0,10,utf8_decode($l_explain1_imp),0,1,'L');
248
 
247
 
249
//renvoie au navigateur du document 
248
//renvoie au navigateur du document 
250
$ticket_name="ticket_".$log_imp.".pdf";
249
$ticket_name="ticket_".$log_imp.".pdf";
251
$pdf->Output($ticket_name,'D');
250
$pdf->Output($ticket_name,'D');
252
 
251
 
253
?>
252
?>
254
 
253