예제 #1
0
파일: bilan.php 프로젝트: rhertzog/lcs
            $pdf->SetFont('DejaVu','',9.5);
            $debut = date_frc($data_3['d_date_absence_eleve']);
            $pdf->Cell(55, 5, ($debut), 0, 0, '', '');
            $fin = date_frc($data_3['a_date_absence_eleve']);
            $pdf->Cell(55, 5, ($fin), 0, 0, '', '');
            $pdf->Cell(76, 5, ($data_3['info_justify_absence_eleve']), 0, 1, 'C', '');
      }



$pdf->SetY(250);
if(mb_substr($civilite_cpe[$i],0,1) == "M" OR mb_substr($civilite_cpe[$i],0,1) == "" ) { $nomine = 'Le conseiller Principal d\'Education'; }
if(mb_substr($civilite_cpe[$i],0,2) == "Mm") { $nomine = 'La conseillère Principale d\'Education'; }
if(mb_substr($civilite_cpe[$i],0,2) == "Ml") { $nomine = 'La conseillère Principale d\'Education'; }
$pdf->Cell(0, 5, ($nomine), 0, 1, 'R', '');
$pdf->Cell(0, 5, ($civilite_cpe[$i]." ".mb_substr($prenom_cpe[$i],0,1).". ".$nom_cpe[$i]), 0, 1, 'R', '');
}

// Et on affiche le pdf généré... (ou on le sauvegarde en local)
// $pdf->Output(); pour afficher sur votre browser

$pref_output_mode_pdf=get_output_mode_pdf();

$nom_lettre=date("Ymd_Hi");
$nom_lettre='Bilan_'.$nom_lettre.'.pdf';
$pdf->Output($nom_lettre,$pref_output_mode_pdf);



?>
예제 #2
0
	if ( $nb_page > 1 )
	{

    	$nb_affiche_page = $page + 1;
    	$nb_affiche_sur_page = $nb_page;
    	$info_page = "page : ".$nb_affiche_page."/".$nb_affiche_sur_page;
    	$pdf->Cell(0, 5, $info_page, 0, 1, 'C', '');

	}

	/* FIN - Pied de page */
	/* ******************** */

	$nb_debut = $nb_debut + $nb_par_page;
	$page = $page + 1;

}

// initialise le nom du fichier
$datation_fichier = date("Ymd_Hi");
$nom_fichier = 'Bilan_absence_' . $datation_fichier . '.pdf';

$pref_output_mode_pdf=get_output_mode_pdf();

// générer la sotie PDF
$pdf->Output($nom_fichier,$pref_output_mode_pdf);

/* FIN - Génération du PDF */
/* *********************** */
?>