$this->Cell(0, 4.5, ($adresse), 0, 1, 'C', ''); $this->Cell(0, 4.5, ($adresse2), 0, 1, 'C', ''); } } // mode paysage, a4, etc. $pdf=new bilan_PDF('P','mm','A4'); $pdf->Open(); $pdf->SetAutoPageBreak(true); // champs facultatifs $pdf->SetAuthor(''); $pdf->SetCreator('créer avec Fpdf'); $pdf->SetTitle('Titre'); $pdf->SetSubject('Sujet'); $pdf->SetMargins(10,10); for ($i=0; $i<$nb; $i++) { $pdf->AddPage(); $pdf->SetFont('DejaVu','',10); // date $Jour_semaine=date("w"); if ($Jour_semaine==0) {$jour='dimanche';} elseif ($Jour_semaine==1) {$jour='lundi';} elseif ($Jour_semaine==2) {$jour='mardi';} elseif ($Jour_semaine==3) {$jour='mercredi';} elseif ($Jour_semaine==4) {$jour='jeudi';}
/* FIN - gestion du nombre de page */ /* ******************************* */ /* ************************* */ /* DEBUT - Génération du PDF */ $pdf=new bilan_PDF('P','mm','A4'); $pdf->Open(); $pdf->SetAutoPageBreak(true); // champs facultatifs $pdf->SetAuthor(''); $pdf->SetCreator('créer avec Fpdf'); $pdf->SetTitle('Bilan des absences général'); $pdf->SetSubject('Bilan des absences général'); $pdf->SetMargins(10,10); $page = 0; $nb_debut = 0; $nb_fin = 0; // compteur du passage des entree $cpt = 0; while ( $page < $nb_page ) { $pdf->AddPage(); /* *********************************** */