| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 
 |  
//page tableau recap
<form name="GotoPdf" action=./pdf.php target=_BLANK method=post>
<input type=submit name=Pdf value=Creer le pdf/>
<input type=hidden name=Var value=$Var />
</form>
 
 
//pdf.php
<?php
 
require('./lib/fpdf.php');
//on etend la class PDF
class PDF extends FPDF
{
 
 
 
function EnTete($Var)
{	
		$this->SetFont('Arial','I',8);
		$this->Cell(20,5,"Nom",0,1,'L');
		$this->Cell(20,5,"Tel : .........../ Fax : ......",0,1,'L');
		$this->Cell(20,5,$Var,0,1,'L');
}
 
 
}
$Var=$_POST['VAR'];
$pdf=new PDF();
 
$pdf->AddPage();
$pdf->SetFont('Times','',12);
//$pdf->Title("Mon titre");
$pdf->EnTete($Var);
$pdf->Output();
 
?> | 
Partager