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 49 50 51 52 53
| <?php
require'../fpdf/fpdf.php';
include_once'../PHP_include/date-script.php';
include_once'../CLASS/Intermittents.class.php';
include_once'../CLASS/prod.class.php';
include_once'../CLASS/calculjour.class.php';
include_once'../manager/manager.php';
date_default_timezone_set('Europe/Paris');
$pdf = new FPDF();
$pdf->SetAutoPageBreak(TRUE ,2);
$pdf->AddPage();
$date_du_jour = (strftime("%Y-%m-%d"));
list($an,$mois,$jour)=explode("-",$date_du_jour);
$datedujourFR=$jour."-".$mois."-".$an;
$precedent='';
$affich_equipe->bindValue(1, $_GET['n'], PDO::PARAM_INT);
$affich_equipe->execute();
$donnees=$affich_equipe->fetch();
$prod=new prod();
$prod->hydrate($donnees);
$pdf->SetTitle("Fiche de production ", TRUE);
$pdf->SetFont('Arial','B',20);
$pdf->Cell(250,23, "MASTER FILMS",0,1);
$pdf->SetFont('Arial','',15);
$pdf->Cell(80,10, utf8_decode("Date de la prestation"),0,0);
$pdf->Cell(0,10, utf8_decode($prod->datedebutFRlettre()),0,1);
$pdf->Cell(80,10, utf8_decode("Titre"),0,0);
$pdf->Cell(0,10, utf8_decode(mb_strtoupper($prod->titre_presta())),0,1);
$pdf->Cell(80,10, utf8_decode("Lieu"),0,0);
$pdf->Cell(0,10, utf8_decode($prod->lieu()),0,1);
$pdf->Cell(80,10, utf8_decode("Intermittents"),0,1);
$pdf->SetFont('Arial','',10);
while ($donnees=$affich_equipe->fetch()){
$intermittent=new intermittent();
$intermittent->hydrate($donnees);
$pdf->Cell(80,5, utf8_decode(ucfirst (mb_strtolower($intermittent->nom()))." ".ucfirst (mb_strtolower($intermittent->prenom()))),1,0);
$pdf->Cell(0,5, utf8_decode($intermittent->fonction_presta()),1,1);
}
$pdf->Output();
?> |
Partager