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 54 55 56 57 58 59 60
| $contact_envoi = utf8_decode($besoin['Appel']['contact_envoi']);
$adr_envoi = utf8_decode($besoin['Appel']['adr1_envoi']);
$adr2_envoi=utf8_decode($besoin['Appel']['adr2envoi']);
$cpville_envoi=utf8_decode($besoin['Appel']['code_postal_envoi'] . ' ' . $besoin['Appel']['ville_envoi']);
App::import('Vendor', 'fpdf');
class PDF extends FPDF
{
//En-tête
function Header()
{
$this->Image('../webroot/img/logo.jpg',10,10,0,0,'JPG');
/*$this->SetY(10);
$str= utf8_decode("Institut");
$this->MultiCell(190,5,$str,0,'C',0);
$str = utf8_decode('Tél:');
$this->SetFont('Arial','',8);
$this->MultiCell(190,5,$str,0,'C',0);
$this->Line(95,22,115,22);
$this->SetFont('Arial','B',12);
$str = utf8_decode('Appel Ã* Candidature');
$this->SetY(27);
$this->MultiCell(190,5,$str,0,'C',0);*/
}
//Pied de page
function Footer()
{
global $contact_envoi;
global $adr_envoi;
global $adr2_envoi;
global $cpville_envoi;
$this->SetY(255);
$this->Rect(10,255,95,35);
$this->SetFont('Arial','B',9);
$str = utf8_decode('Conditions de dépôt des candidatures :');
$this->MultiCell(90,7,$str,0,'C',0);
$this->SetFont('Arial','B',9);
$str = utf8_decode('Lettre de motivation et CV seront adressés Ã*:');
$this->MultiCell(90,7,$str,0,'C',0);
$this->SetFont('Arial','',9);
$this->SetXY(100,255);
$this->Rect(105,255,95,35);
//$this->SetXY(0,270);
$this->SetFont('Arial','B',10);
$this->Cell(30,5,'a' .$contact_envoi.'b' ,0,0,'C');
$this->MultiCell(90,5,$adr_envoi,0,'C',0);
$this->MultiCell(90,5,$adr2_envoi,0,'C',0);
$this->MultiCell(90,5,$cpville_envoi,0,'C',0);
}
} |
Partager