<?php include("phpToPDF.php"); $billet=utf8_decode($_GET['billet']); $nom=utf8_decode($_GET['nom']); $prenom=utf8_decode($_GET['prenom']); $semestre=utf8_decode($_GET['semestre']); $groupe=utf8_decode($_GET['groupe']); $sexe=utf8_decode($_GET['sexe']); $motif=utf8_decode($_GET['motif']); $debut=utf8_decode($_GET['debut']); $fin=utf8_decode($_GET['fin']); $finsemestre=date("d-m-Y",strtotime(($_GET['finsemestre']))); $debutsemestre=date("d-m-Y",strtotime(($_GET['debutsemestre']))); $trait="_____________________________________________________________________________"; $etudiant = "Etudiant : ".$sexe." ".$prenom." ".$nom; $numbillet="Billet d'absence: ".$billet; $dates="Absence du : ".$debut." au ".$fin; $texte3=""; $largeur=200; $esp=5; $deb= 25; $PDF = new phpToPDF(); $PDF->AddPage(); $PDF->SetFont('Arial','B',16); $fill = 1; $PDF->SetFillColor(224,228,200); $PDF->SetTextColor(0,0,0); $PDF->Text(20,15,"$semestre"); $PDF->SetXY(20,20); $PDF->MultiCell(180,5,"(du $debutsemestre au $finsemestre)",0,'C',0); $PDF->SetXY(20,30); $PDF->SetFont('Arial','',10); $PDF->MultiCell(180,5,"Formulaire � compl�ter par l'�tudiant. \n A faire signer par les enseignants et � d�poser au secr�tariat sans attendre avec les justificatifs s'il y a lieu.",0,'C',0); $PDF->SetFont('Arial','B',12); $PDF->Text(15,40,"$trait"); $PDF->Text(20,50,"$etudiant"); $PDF->Text(100,55,"Groupe (TD/TP): $groupe"); $PDF->Text(20,55,"$numbillet",0,0,'L'); $PDF->Text(15,60,"$trait"); $PDF->SetFont('Arial','',11); $PDF->Text(20,70,"$dates"); $PDF->Text(20,75,"Justificatif apport�: Oui Non"); $PDF->SetFont('Arial','B',11); $PDF->Text(20,80,"Motif: "); $PDF->SetFont('Arial','',10); $PDF->SetXY(20,82); $PDF->MultiCell(180,5,"$motif",1,'L',0); $PDF->SetXY(20,122); // D�finition des propri�t�s du tableau. $larccel=38; $larccel2=55; //$R=151;$G=190;$B=13; $R=224;$G=228;$B=216; $proprietesTableau = array( 'TB_ALIGN' => 'L', 'L_MARGIN' => 1, 'BRD_COLOR' => array(0,0,0), 'BRD_SIZE' => '0.5', ); // Definition des proprietes du header du tableau. $proprieteHeader = array( 'T_COLOR' => array(0,0,0), 'T_SIZE' => 10, 'T_FONT' => 'Arial', 'T_ALIGN' => 'C', 'V_ALIGN' => 'T', 'T_TYPE' => 'B', 'LN_SIZE' => 7, 'BG_COLOR_COL0' => array($R, $G, $B), 'BG_COLOR' => array($R, $G, $B), 'BRD_COLOR' => array(0,0,0), 'BRD_SIZE' => 0.2, 'BRD_TYPE' => '1', 'BRD_TYPE_NEW_PAGE' => '', ); // Contenu du header du tableau. $contenuHeader = array( $larccel, $larccel, $larccel2, $larccel2, "Matiere","Enseignant","Emargement Enseignant","Observations" ); // Contenu du tableau. $contenuTableau = array( "", "", "","", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "","", "", "", "", "", 0, 0, 0, "", ); // Definition des propri�t�s du reste du contenu du tableau. $proprieteContenu = array( 'T_COLOR' => array(0,0,0), 'T_SIZE' => 10, 'T_FONT' => 'Arial', 'T_ALIGN_COL0' => 'L', 'T_ALIGN' => 'R', 'V_ALIGN' => 'M', 'T_TYPE' => '', 'LN_SIZE' => 6, 'BG_COLOR_COL0' => array($R, $G, $B), 'BG_COLOR' => array(255,255,255), 'BRD_COLOR' => array(0,0,0), 'BRD_SIZE' => 0.2, 'BRD_TYPE' => '1', 'BRD_TYPE_NEW_PAGE' => '', ); $PDF->drawTableau($PDF, $proprietesTableau, $proprieteHeader, $contenuHeader, $proprieteContenu, $contenuTableau); $PDF->Text(15,180,"Indiquez ci-dessous les Devoirs surveill�s, contr�les TP, interrogations �crites concern�s:"); $PDF->SetXY(20,182); $PDF->drawTableau($PDF, $proprietesTableau, $proprieteHeader, $contenuHeader, $proprieteContenu, $contenuTableau); $PDF->SetXY(20,235); $PDF->SetFont('Arial','I',10); $PDF->MultiCell(180,3,'Je d�clare avoir fait, ou faire express�ment, le n�cessaire pour rattraper tous les cours cit�s ci-dessus, tant au niveau des documents distribu�s, du d�roulement des s�ances de travail et d��ventuelles �valuations. La recevabilit� de l�absence sera appr�ci�e par l��quipe de direction.',0,'L',0); $PDF->SetFont('Arial','B',11); $PDF->SetFillColor(224,228,216); $PDF->SetXY(20,260); $PDF->MultiCell(180,5,"Partie r�serv�e � l'administration: Absence justifi�e : Oui Non Autoris� � rattraper les contr�les: Oui Non",1,'C',1); $PDF->Text(15,250,"Signature du Directeur des �tudes:"); $PDF->Text(125,250,"Signature de l'�tudiant:"); $PDF->Text(80,290,"Imprim� le ".date("d/n/Y � H:i")); $PDF->Ln(); $PDF->Output(); $PDF->Output($nom.".pdf", "D"); ?> <p> </p>