1 2 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 39 40 41 42 43 44 45 46 47 48
|
<?
session_start();
if (!isset($_SESSION['util']))
{
header ("location: ../loggin.php");
}
set_time_limit(0);
require_once("../includes/alphapdf.php");
class PDF extends FPDF
{
//En-tête
function Header()
{
global $choixtitre;
global $choixlogo;
$this->SetTextColor(0 , 0 , 0);
if ($choixlogo == 'FMP'){
$this->Image('../images/logo1.jpg',8, 0,39);
}else{
$this->Image('../images/logo2.png',16,0,23);
}
$this->SetFont('BritannicBold','',16);
$this->SetXY(95 , 0);
$this->Cell(20,10,'NOTE DE FRAIS - '.$choixtitre,0,1,'C');
}
}
$pdf = new AlphaPDF();
$pdf->AddFont('BritannicBold','','britanic.php');
$pdf->AliasNbPages();
$pdf->SetAutoPageBreak(0);
while ($db2ligPERS = $db2adm->fetch($db2resPERS)) {
$pdf->AddPage();
...
mon traitement
...
}
$pdf->Output(); |
Partager