示例#1
0
文件: bilan.php 项目: rhertzog/lcs
	{
	  $adresse2 = "Tél : ".$telephone_etab." - Mèl : ".$mel_etab;
	}
	if($telephone_etab!="" and $fax_etab!="" and $mel_etab=="")
	{
	  $adresse2 = "Tél : ".$telephone_etab." - Fax : ".$fax_etab;
	}

	$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();
示例#2
0
	/* FIN - construction du tableau des données */
	/* ***************************************** */

	/* ********************************* */
	/* DEBUT - gestion du nombre de page */

    $nb_par_page = 35;
    $nb_page = ceil( $cpt / $nb_par_page );

    /* 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