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
| <?php
require('../fpdf.php');
$niveau = $_POST['textfield1'] ;
$entreprise = $_POST['textfield2'] ;
$tel = $_POST['textfield3'] ;
$fax = $_POST['textfield4'] ;
$nombre = $_POST['textfield5'] ;
$sujet = $_POST['textfield6'] ;
$condition = $_POST['textfield7'] ;
$contact = $_POST['textfield8'] ;
$email = $_POST['textfield9'] ;
$adresse = $_POST['textfield10'] ;
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',9);
$pdf->image('../entreprises/logo.jpg',80,2);
$pdf -> SetXY(5,85);
$pdf -> Multicell(0,4,"I.U.P.-P.V.I.A\nProfesseur B.S. SANGWAN \n33 Rue St-Leu \n80039 AMIENS Cedex 1 \nTél. : 03.22.82.76.48 ou 49 \nFax : 03.22.82.76.12 \nE-mail : brigitte.sangwan@sc.u-picardie.fr");
$pdf -> SetFont('Arial','B',10);
$pdf -> SetXY(5,118);
$pdf -> Multicell(0,1,"_______________________________________________________________________________________________",'c');
$pdf -> SetXY(5,125);
$pdf -> Multicell(0,4,"Niveau requis : " .$niveau);
$pdf -> SetXY(5,132);
$pdf -> Multicell(0,4,"Nom de l'entrepise : " .$entreprise);
$pdf -> SetXY(5,137);
$pdf -> Multicell(0,4,"Adresse : " .$adresse);
$pdf -> SetXY(5,142);
$pdf -> Multicell(0,4,"Tel : " .$tel);
$pdf -> SetXY(5,147);
$pdf -> Multicell(0,4,"fax : " .$fax);
$pdf -> SetXY(5,154);
$pdf -> Multicell(0,4,"Propose d'accueillir : " .$nombre );
$pdf -> SetXY(5,161);
$pdf -> Multicell(0,4,"Sujet du stage : " .$sujet);
$pdf -> SetXY(5,180);
$pdf -> Multicell(0,4,"Conditions du stage : " .$condition);
$pdf -> SetXY(5,200);
$pdf -> Multicell(0,4,"Personne à contacter : " .$contact);
$pdf -> SetXY(5,205);
$pdf -> Multicell(0,4,"email : " .$email);
$pdf->Output();
?> |
Partager