Line 1... |
Line 1... |
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 |
// Etiquettes
|
4 |
// Etiquettes
|
5 |
$l_login_imp=$_POST["l_login_imp"];
|
5 |
$l_login_imp=utf8_decode($_POST["l_login_imp"]);
|
6 |
$l_password_imp=$_POST["l_password_imp"];
|
6 |
$l_password_imp=utf8_decode($_POST["l_password_imp"]);
|
7 |
$l_session_timeout_imp=$_POST["l_session_timeout_imp"];
|
7 |
$l_session_timeout_imp=utf8_decode($_POST["l_session_timeout_imp"]);
|
8 |
$l_max_daily_session_imp=$_POST["l_max_daily_session_imp"];
|
8 |
$l_max_daily_session_imp=utf8_decode($_POST["l_max_daily_session_imp"]);
|
9 |
$l_max_monthly_session_imp=$_POST["l_max_monthly_session_imp"];
|
9 |
$l_max_monthly_session_imp=utf8_decode($_POST["l_max_monthly_session_imp"]);
|
10 |
$l_expiration_imp=$_POST["l_expiration_imp"];
|
10 |
$l_expiration_imp=utf8_decode($_POST["l_expiration_imp"]);
|
11 |
// Valeurs
|
11 |
// Valeurs
|
12 |
$log_imp=$_POST["log_imp"];
|
12 |
$log_imp=utf8_decode($_POST["log_imp"]);
|
13 |
$passwd_imp=$_POST["passwd_imp"];
|
13 |
$passwd_imp=utf8_decode($_POST["passwd_imp"]);
|
14 |
$exp_imp = $_POST["exp_imp"];
|
14 |
$exp_imp=utf8_decode($_POST["exp_imp"]);
|
15 |
$sto_imp = $_POST["sto_imp"];
|
15 |
$sto_imp=utf8_decode($_POST["sto_imp"]);
|
16 |
$mds_imp = $_POST["mds_imp"];
|
16 |
$mds_imp=utf8_decode($_POST["mds_imp"]);
|
17 |
$mms_imp = $_POST["mms_imp"];
|
17 |
$mms_imp=utf8_decode($_POST["mms_imp"]);
|
18 |
|
18 |
|
19 |
//--initialisation des classes FPDF
|
19 |
//--initialisation des classes FPDF
|
20 |
require('../../lib/fpdf16/fpdf.php');
|
20 |
require('../../lib/fpdf16/fpdf.php');
|
21 |
|
21 |
|
22 |
//création de la classe PDF pour faire l'entête et pieds de page
|
22 |
//création de la classe PDF pour faire l'entête et pieds de page
|
23 |
class PDF extends FPDF
|
23 |
class PDF extends FPDF
|
24 |
{
|
24 |
{
|
25 |
//Entête
|
25 |
//Entête
|
26 |
function Header()
|
26 |
function Header()
|
27 |
{
|
27 |
{
|
28 |
$l_title_imp=$_POST["l_title_imp"];
|
28 |
$l_title_imp=utf8_decode($_POST["l_title_imp"]);
|
29 |
//Logo coordonnées x , y, largeur de l'image ---Attention fpdf ne supporte pas le png avec fond transparent----
|
29 |
//Logo coordonnées x , y, largeur de l'image ---Attention fpdf ne supporte pas le png avec fond transparent----
|
30 |
// $this->Image('../../../images/organisme.jpg',25,5,25);
|
30 |
// $this->Image('../../../images/organisme.jpg',25,5,25);
|
31 |
//Police Arial gras 15
|
31 |
//Police Arial gras 15
|
32 |
$this->SetFont('Arial','B',18);
|
32 |
$this->SetFont('Arial','B',18);
|
33 |
//couleur de l'écriture en rouge
|
33 |
//couleur de l'écriture en rouge
|