</td> <td><b>Echelon : </b></td><td><?php echo $personnel['ECHELON']; ?> </td></tr> <tr><td><b>Statut : </b></td><td><?php echo $personnel['FK_STATUT']; ?> </td> <td><b>DMR/AMR : </b></td><td><?php echo $personnel['DMR']; ?> </td></tr> <tr><td colspan="2"><b>Date dernier avancement : </b></td><td> <?php $d->setSource($personnel['AVANCEMENT']); if ($d->getYear() != 1970) { echo $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear(); } ?> </td> <td></td> </tr> <tr><td colspan="4"> <b>Région : </b> <?php echo $personnel['FK_REGION']; ?> / <b>Département : </b> <?php echo $personnel['FK_DEPARTEMENT']; ?>
<?php $pdf->bCertify = false; $pdf->SetPrintFooter(false); $pdf->AddPage(); $y = FIRST_TITLE; $middle = PDF_MIDDLE; $pdf->SetFont("Times", '', 20); $titre = '<h1>CERTIFICAT DE SCOLARITE</h1>'; $pdf->WriteHTMLCell(0, 5, $middle - 70, $y + 20, $titre); $pdf->SetFont("Times", '', 15); $d = new DateFR($eleve['DATENAISS']); $corps = '<p style="line-height:30px;text-align:justify;">Je soussigné<b> Mme WACGUE Gisèle, ' . 'Directrice de l\'Institut Polyvalent WAGUÉ</b><br/>' . 'Certifie par la présente que :<br/> ' . '<b>' . ($eleve['SEXE'] == "M" ? "M. " : "Mlle") . ' ' . $eleve['NOM'] . ' ' . $eleve['PRENOM'] . ' ' . $eleve['AUTRENOM'] . '</b><br/>' . 'Né(e) le ' . $d->getDate() . ' ' . $d->getMois() . ' ' . $d->getYear() . ' ' . 'à ' . $eleve['LIEUNAISS'] . ' ' . 'est inscrit(e) dans les régistres de mon établissement pour le compte de l\'année scolaire ' . $anneescolaire . ' en classe de <b>' . $classe['NIVEAUHTML'] . '</b><br/>' . 'Sous le numéro matricule : ' . $eleve['MATRICULE'] . '<br/><br/>' . 'En fois de quoi la présente attestation est établie pour servir et valoir ce que de droit.</p>'; $pdf->WriteHTMLCell(0, 0, 20, $y + 40, $corps); $d->setSource(date("Y-m-d", time())); $pdf->WriteHTMLCell(0, 0, 110, $y + 170, '<b>Nkolfoulou , le ' . $d->getDate() . ' ' . $d->getMois() . ' ' . $d->getYear() . '</b>'); $pdf->WriteHTMLCell(0, 0, 130, $y + 190, '<b>Le Chef d’Etablissement</b>'); $pdf->setFont("Times", '', 7); $pdf->WriteHTMLCell(0, 5, 50, $y + 220, '<b>En cas de doute sur l\'authenticité de ce document, merci d\'appeler l\'IPW AU 699 58 40 78</b>'); $pdf->Output();
</div> <?php } ?> <table class="dataTable" id="tableOperation"> <thead><tr><th>Date</th><th>Elève</th><th>Ref. Caisse</th><th>Description</th><th>Montant</th> <th>Statut</th><th></th><th></th></tr></thead> <tbody> <?php //var_dump($operations); $d = new DateFR(); $montant = 0; foreach ($operations as $op) { $d->setSource($op['DATETRANSACTION']); # $type = ($op['TYPE'] == "C" ? "CREDIT" : "DEBIT"); $type = $op['TYPE']; echo "<tr><td>" . $d->getDate() . '-' . $d->getMois(3) . "-" . $d->getYear(2) . "</td>" . "<td>" . $op['NOMEL'] . ' ' . $op['PRENOMEL'] . ".</td><td>" . $op['REFCAISSE'] . "</td>" . '<td>' . $op['DESCRIPTION'] . '</td><td align="right">' . moneyString($op['MONTANT']) . "</td>"; if ($op['VALIDE'] == 0) { echo "<td style='background-color:#ff9999' align='center'>En cours</td>"; } else { echo "<td style='background-color:#99ff99' align='center'>Validée</td>"; } echo "<td align='center'><img onclick = \"tooltip_on(event,'" . $op['IDCAISSE'] . "')\"" . " style='cursor:pointer' src='" . img_info() . "' />"; # Droit d'impression des recu if (isAuth(522)) { if (!empty($op['PERCUPAR'])) { echo " <img style='cursor:pointer' title='Imprimer le recu de cette operation caisse' " . "src='" . img_print() . "' onclick=\"document.location='" . Router::url("caisse", "recu", $op['IDCAISSE']) . "'\">"; } else { echo " <img style='cursor:pointer' title='Certifier que vous avez recu ce montant' " . "src='" . img_accept() . "' onclick=\"percuRecu(" . $op['IDCAISSE'] . ")\">";
$pdf->WriteHTMLCell(0, 5, $middle + 10, $y - 5, '<h3 style="text-decoration:underline">Conseillât à l\'éducation</h3>'); $pdf->WriteHTMLCell(0, 5, $middle - 30, $y + 5, '<h4 style="text-decoration:underline">FICHE DE SUIVI DISCIPLINAIRE DU PERSONNEL ENSEIGNANT</h4>'); $pdf->setFont("Times", "", 12); $pdf->WriteHTMLCell(0, 5, $x, $y + 12, 'Secteur de discipline N° : ....................'); $pdf->WriteHTMLCell(0, 5, $x + 120, $y + 12, 'Trimestre N° : ' . $sequence['TRIMESTREORDRE']); $pdf->WriteHTMLCell(0, 5, $x + 200, $y + 12, 'Séquence N° : ' . $sequence['SEQUENCEORDRE']); if (empty($datefin)) { $datefin = date("Y-m-d", strtotime("+7 day", strtotime($datedebut))); } $d = new DateFR($datedebut); $d2 = new DateFR($datefin); $pdf->WriteHTMLCell(0, 5, $middle, $y + 20, 'Semaine du <b>' . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . '</b> au <b>' . $d2->getDate() . " " . $d2->getMois(3) . " " . $d2->getYear() . '</b>'); $w = [10, 35, 8, 8, 8, 8, 25]; $corps = '<table cellpadding="3"><thead><tr align="center" style="font-weight:bold"><th width="' . $w[0] . '%" border="0.5">Dates</th>' . '<th width="' . $w[1] . '%" border="0.5">Nom et Prénom</th>' . '<th width="' . $w[2] . '%" border="0.5">Matière</th>' . '<th width="' . $w[3] . '%" border="0.5">Classe</th>' . '<th width="' . $w[4] . '%" border="0.5">Retard</th>' . '<th width="' . $w[5] . '%" border="0.5">Absence</th>' . '<th width="' . $w[6] . '%" border="0.5">Autres</th></tr></thead>' . '<tbody>'; foreach ($absences as $abs) { $d->setSource($abs['DATEJOUR']); $corps .= '<tr><td width="' . $w[0] . '%" border="0.5">' . $d->getDate() . ' ' . $d->getMois(3) . ' ' . $d->getYear() . '</td>' . '<td width="' . $w[1] . '%" border="0.5">' . $abs['NOM'] . ' ' . $abs['PRENOM'] . '</td>' . '<td width="' . $w[2] . '%" border="0.5">' . $abs['CODE'] . '</td>' . '<td width="' . $w[3] . '%" border="0.5">' . $abs['NIVEAUHTML'] . '</td>'; if ($abs['ETAT'] == "R") { $corps .= '<td width="' . $w[4] . '%" border="0.5">' . substr($abs['RETARD'], 0, 5) . '</td>'; } else { $corps .= '<td width="' . $w[4] . '%" border="0.5"></td>'; } if ($abs['ETAT'] == "A") { $corps .= '<td width="' . $w[5] . '%" border="0.5">' . $abs['NBHEURE'] . '</td>'; } else { $corps .= '<td width="' . $w[5] . '%" border="0.5"></td>'; } $corps .= '<td width="' . $w[6] . '%" border="0.5">' . $abs['OBSERVATION'] . '</td></tr>'; } $corps .= '</tbody></table>'; $pdf->WriteHTMLCell(0, 5, $x, $y + 30, $corps);
<div style="text-align: center; margin: 10px;"> <input style="width: 350px; border: 2px outset buttonface; margin:0" type="button" value="Envoyer un message de rappel aux parents d'élèves" onclick="envoyerRappel()"/> </div> <table class="dataTable" id="tableOperation"> <thead> <tr><th>N°</th><th>Date</th><th>Parents à notifier</th><th>Messages envoyés</th><th>Effectuée par</th></tr> </thead> <tbody> <?php $i = 1; $d = new DateFR(); foreach ($notifications as $notif) { $d->setSource($notif['DATERAPPEL']); echo "<tr><td align='right'>" . $i . "</td><td>" . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . "</td>" . "<td align='right'>" . $notif['NBPARENT'] . "</td><td align='right'>" . $notif['MESSAGEENVOYE'] . "</td>" . "<td>" . $notif['NOM'] . " " . $notif['PRENOM'] . "</td></tr>"; $i++; } ?> </tbody> </table> <script> $(document).ready(function () { if (!$.fn.DataTable.isDataTable("#tableOperation")) { $("#tableOperation").DataTable({ bInfo: false, searching: false, paging: false, scrollY: $(".page").height() - 200, columns: [ {"width": "7%"},
?> </span> </div> <?php } ?> <table class="dataTable" id="tableMessage"> <thead><tr><th>Date d'envoi</th><th>Destinataires</th><th>Expéditeurs</th> <th></th> </tr></thead> <tbody> <?php # 325 : Droit pour suppression des messages envoyes $d = new DateFR(); foreach ($messages as $m) { $d->setSource($m['DATEENVOIE']); echo "<tr><td>" . $d->getJour(3) . " " . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . " à " . $d->getTime() . "</td><td>" . $m['DESTINATAIRE'] . "</td><td>" . $m['NOM'] . " " . $m['PRENOM'] . "</td>" . "<td align='center'><img style='cursor:pointer' src='" . img_info() . "' " . " onclick = \"tooltip_on(event,'" . $m['IDMESSAGEENVOYE'] . "')\" /> "; if (isAuth(325)) { echo "<img style='cursor:pointer' src='" . img_delete() . "' " . "onclick=\"supprimerMessageEnvoye(" . $m['IDMESSAGEENVOYE'] . ")\" />"; } else { echo "<img style='cursor:pointer' src='" . img_delete_disabled() . "' />"; } echo "</td></tr>"; } ?> </tbody> </table> <script> $(document).ready(function () { if (!$.fn.DataTable.isDataTable("#tableMessage")) { $("#tableMessage").DataTable({
} $corps .= '</td><td align="right" style="border-top: 1px solid #000;border-bottom: 1px solid #000;" width ="' . $col[5] . '%">'; if ($totalperiode >= 0) { $corps .= moneyString($totalperiode); } $corps .= '</td>' . '<td width ="' . $col[6] . '%"></td></tr>'; $totalperiode = 0; } if ($op['TYPE'] == "C") { $balance += $op['CREDIT']; $totalperiode += $op['CREDIT']; } else { $balance -= $op['DEBIT']; $totalperiode -= $op['DEBIT']; } $d->setSource($op['DATETR']); $corps .= '<tr> <td width ="' . $col[0] . '%" >' . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . '</td> <td width ="' . $col[1] . '%" >' . $op['REFCAISSE'] . '</td> <td width ="' . $col[2] . '%" >' . $op['REFTRANSACTION'] . '/' . $op['NIVEAUHTML'] . '</td> <td width ="' . $col[3] . '%" >' . $op['LIBELLE'] . '</td> <td align="right" width ="' . $col[4] . '%" >' . moneyString($op['DEBIT']) . '</td> <td align="right" width ="' . $col[5] . '%" >' . moneyString($op['CREDIT']) . '</td> <td align="right" width ="' . $col[6] . '%" >' . moneyString(abs($balance)); if ($balance > 0) { $corps .= " cr"; } $corps .= '</td></tr>'; $month = date("n", strtotime($op['DATETR'])); } $corps .= '<tr style="font-weight:bold">
$d = new DateFR($operation['DATETRANSACTION']); # Classe de l'eleve $pdf->WriteHTMLCell(0, 0, $x + 135, $y + 3, "<b>Classe : " . $classe['NIVEAUHTML'] . "</b>"); $daterecu = '<b>' . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . " " . $d->getTime() . '</b>'; $pdf->WriteHTMLCell(0, 0, $x + 135, $y + 10, "<b>Montant : # " . moneyString($operation['MONTANT']) . "#</b>", 1, 1, true); $pdf->WriteHTMLCell(0, 0, $x + 135, $y + 15, $daterecu); $contenu = '<span style="width: 20%; text-align: left">Reçu de </span> : ' . $operation['NOMEL'] . " " . $operation['PRENOMEL'] . '<br/> <span style="width: 20%; text-align: left">Pour </span> : <span class="recu_libelle" >' . $operation['DESCRIPTION'] . '</span><br/> <span style="width: 20%;text-align: left">MONTANT</span> : ' . moneyString($operation['MONTANT']) . ' <em>fcfa</em> <span style="font-size: 12px"><i>(' . enLettre($operation['MONTANT']) . ' franc cfa)</i></span><br/> <span style="width: 20%;text-align: left">RESTE</span> : ' . moneyString($restant) . ' <em>fcfa</em> <span style="font-size: 12px"><i>(' . enLettre($restant) . ' franc cfa)</i></span><br/>'; $pdf->WriteHTMLCell(0, 0, $x, $y + 22, $contenu); $infosresp = 'S/C ' . $operation['CIVILITEREP'] . " " . $operation['NOMREP'] . " " . $operation['PRENOMREP'] . '<br/>Tél : ' . $operation['PORTABLEREP']; $pdf->WriteHTMLCell(0, 0, $x, $y + 50, $infosresp); /* $barrecode = SITE_ROOT . "public/tmp/barcode_upca.png"; $pdf->Image($barcode, 80, 50, 30, '', '', '', 'T', false, 300, '', false, false, 0, false, false, false); //echo $barcode; */ $pdf->write1DBarcode($operation['REFCAISSE'], 'C128A', $x + 60, $y + 60, '', 8, 0.4); $pdf->setFont("Times", "", 8); $pdf->WriteHTMLCell(0, 0, $x + 130, $y + 40, "Enreg. par : " . $enregistreur['CIVILITE'] . ' ' . $enregistreur['NOM']); $pdf->WriteHTMLCell(0, 0, $x + 130, $y + 55, "Perçu. par : " . $percepteur['CIVILITE'] . ' ' . $percepteur['NOM']); $d->setSource($operation['DATEPERCEPTION']); $pdf->WriteHTMLCell(0, 0, $x + 150, $y + 60, $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . " " . $d->getTime()); $pdf->setFont("Times", "", 7); $d->setSource(date("Y-m-d H:i:s", time())); $infopersonnel = 'Imprimé par ' . $personnel['CIVILITE'] . " " . $personnel['NOM'] . ' le ' . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . " " . $d->getTime(); $pdf->WriteHTMLCell(0, 0, $x, $y + 70, $infopersonnel); } $pdf->OutPut();
?> </td></tr> </table> </fieldset> <fieldset style="width: 80%;float: none; margin: auto;margin-top: 20px"><legend>Scolarité actuelle</legend> <table cellpadding = "5"> <tr><td width = "20%" style="font-weight: bold">Classe : </td><td><?php echo $niveau . " " . $classe; ?> </td></tr> <tr><td style="font-weight: bold">Redoublant : </td><td><?php echo $redoublant === true ? "Oui" : "Non"; ?> </td></tr> <?php $d->setSource($dateentree); ?> <tr><td style="font-weight: bold">Date d'entrée : </td><td><?php echo $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear(); ?> </td></tr> <tr><td style="font-weight: bold">Provenance : </td><td><?php echo $provenance; ?> </td></tr> <?php $d->setSource($datesortie); ?> <tr><td style="font-weight: bold">Date de sortie : </td><td><?php echo $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear(); ?>
$col[5] = 16; $col[6] = 16; $corps = '<table style="text-align:center" cellpadding="2"> <tr style="font-weight:bold"> <th border="0.5" width ="' . $col[0] . '%">DATES</th> <th border="0.5" width ="' . $col[1] . '%">LUNDI</th> <th border="0.5" width ="' . $col[2] . '%">MARDI</th> <th border="0.5" width ="' . $col[3] . '%">MERCREDI</th> <th border="0.5" width ="' . $col[4] . '%">JEUDI</th> <th border="0.5" width ="' . $col[5] . '%">VENDREDI</th> <th border="0.5" width ="' . $col[6] . '%">SAMEDI</th> </tr>'; $date = $datedebut; $d = new DateFR(); while ($date <= $datefin) { $d->setSource($date); $corps .= '<tr><td border="0.5">' . $d->getDate() . ' ' . $d->getMois(3) . ' ' . $d->getYear() . '</td>'; $semaine = jourSemaine(); for ($i = 1; $i < 7; $i++) { $absents = enseignantAbsentByPeriode($date, $absences); $corps .= '<td border="0.5">'; foreach ($absents as $abs) { $corps .= substr($abs['NOM'], 0, 10) . "<br/>"; } $corps .= "</td>"; # Passer au jour suivant $date = date("Y-m-d", strtotime("+1 day", strtotime($date))); $d->setSource($date); } $date = date("Y-m-d", strtotime("+1 day", strtotime($date))); $d->setSource($date + 1);
<table class="dataTable" id="tableBulletin"> <thead> <tr><th>Classe</th><th>Séquence</th><th>Date</th><th>Parents à notifier</th> <th>Messages envoyés</th><th>Effectuée par</th></tr> </thead> <tbody> <?php if (!$notifications) { $notifications = array(); } $d = new DateFR(); foreach ($notifications as $not) { $d->setSource($not['DATENOTIFICATION']); echo "<tr><td>" . $not['NIVEAUHTML'] . "</td><td>" . $not['LIBELLESEQUENCE'] . "</td>" . "<td align='right'>" . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . "</td>" . "<td>" . $not['NBREPARENT'] . '</td><td>' . $not['NBREMESSAGE'] . "</td>" . "<td>" . $not['NOM'] . ' ' . $not['PRENOM'] . '</td></tr>'; } ?> </tbody> </table> <script> $(document).ready(function () { if (!$.fn.DataTable.isDataTable("#tableBulletin")) { $("#tableBulletin").DataTable({ bInfo: false, searching: false, paging: false, scrollY: $(".page").height() - 100, columns: [ {"width": "10%"}, {"width": "15%"}, {"width": "15%"}, {"width": "20%"},
$pdf->WriteHTMLCell(0, 5, 20, $y + 20, $corps); //Matricule $pdf->WriteHTMLCell(50, 10, 159, $y + 15, '<b>Matricule : ' . $eleve['MATRICULE'] . '</b>', 0, 2); if (!empty($eleve['PHOTO'])) { $photo = SITE_ROOT . "public/photos/eleves/" . $eleve['PHOTO']; $pdf->Image($photo, 160, $y + 30, 40, '', '', '', 'T', false, 300, '', false, false, 0, false, false, false); } else { $pdf->WriteHTMLCell(30, 25, 160, $y + 30, '<br/><br/><br/>PHOTO', 1, 2, false, true, 'C'); } $pdf->SetFont("helvetica", "B", 10); $pdf->SetFillColor(225, 196, 196); $pdf->SetXY(10, $y + 80); $pdf->Cell(60, 4, "II-SCOLARITE ACTUELLE", 0, 2, 'L', 1); $pdf->Ln(2); $pdf->SetFont("Times", '', 12); $d->setSource($eleve['DATEENTREE']); $classecourante = isset($classe['NIVEAUHTML']) ? $classe['NIVEAUHTML'] : ""; $classecourante .= " " . (isset($classe['LIBELLE']) ? $classe['LIBELLE'] : ""); $redo = isset($redoublant) && $redoublant === true ? "Oui" : "Non"; $corps = '<table border = "0" cellpadding = "2">'; $corps .= '<tr><td style = "border-bottom:1px solid #000000">Classe </td>' . '<td style = "border-bottom:1px solid #000000">' . $classecourante; if ($classecourante != " ") { $corps .= ' inscrit par ' . $inscripteur['CIVILITE'] . ' ' . $inscripteur['NOM']; } $corps .= '</td></tr>'; $corps .= '<tr><td style = "border-bottom:1px solid #000000">Redoublant</td>' . '<td style = "border-bottom:1px solid #000000">' . $redo . '</td></tr>'; $corps .= '<tr><td style = "border-bottom:1px solid #000000">Provenance </td>' . '<td style = "border-bottom:1px solid #000000">' . $eleve['FK_PROVENANCE'] . '</td></tr>'; $corps .= '<tr><td style = "border-bottom:1px solid #000000">Date d\' entrée</td>' . '<td style = "border-bottom:1px solid #000000">' . $d->getDate() . " " . $d->getMois(0) . " " . $d->getYear() . "</td></tr>"; $d->setSource($eleve['DATESORTIE']); $corps .= '<tr><td style = "border-bottom:1px solid #000000">Date de sortie</td>' . '<td style = "border-bottom:1px solid #000000">' . (!empty($eleve['DATESORTIE']) ? $d->getDate() . " " . $d->getMois(0) . " " . $d->getYear() : "") . "</td></tr>"; $corps .= '<tr><td style = "border-bottom:1px solid #000000">Motif de sortie</td><td style = "border-bottom:1px solid #000000">' . $eleve['FK_MOTIF'] . "</td></tr>";
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); $pdf->AddPage(); $y = PDF_Y; $x = PDF_X; $middle = PDF_MIDDLE; $d = new DateFR(); $dd = new DateFR(); $i = 0; foreach ($eleves as $el) { if ($el['MONTANTPAYE'] < $montantfraisapplicable['MONTANTAPPLICABLE']) { $i++; $pdf->SetFontSize(8); $pdf->writeHTMLCell(70, 50, LEFT_UP_CORNER, $y - 47 + 5, $header_gauche); $pdf->Image($pdf->getLogo(), 95, $y - 47 + 5, 35, '', '', '', 'T', false, 300, '', false, false, 0, false, false, false); $pdf->writeHTMLCell(50, 5, 156, $y - 47 + 5, $header_droit); $d->setSource($frais['ECHEANCES']); # Cmt creer une tabulation $pdf->setFont("Times", '', 12); $pdf->WriteHTMLCell(0, 5, $middle - 13, $y - 10, '<b style="text-decoration:underline">Lettre de rappel</b>'); $corps = '<p style="text-align:justify"> ' . ' ' . 'Cher parent de l\'élève <b>' . $el['NOM'] . ' ' . $el['PRENOM'] . '</b> de la classe de ' . $el['NIVEAUHTML'] . '; <b> Bien vouloir </b> s\'acquitter du frais <b>' . $frais['DESCRIPTION'] . ' (' . moneyString($montantfraisapplicable['MONTANTAPPLICABLE'] - $el['MONTANTPAYE']) . ')</b> ' . 'dont la date est fixée ce <b>' . $d->getJour() . ' ' . $d->getDate() . ' ' . $d->getMois() . ' ' . $d->getYear() . '</b>. ' . 'Passé ce delai, l\'administration de l\'établissement sera dans l\'obligation de <b>'; if ($el['SEXE'] === "M") { $corps .= 'le '; } else { $corps .= 'la '; } $corps .= 'mettre hors des cours.<b>'; $pdf->setFont("Times", '', 10); $pdf->WriteHTMLCell(0, 5, $x, $y, $corps); $corps = '<b>Sincère amitiés pour votre bonne compréhension.</b>'; $pdf->WriteHTMLCell(0, 5, $x + 50, $y + 15, $corps); $pdf->WriteHTMLCell(0, 5, $x + 120, $y + 20, 'Fait à Nkolfoulou1 le , ' . $dd->getDate() . ' ' . $dd->getMois(3) . ' ' . $dd->getYear());
$pdf->WriteHTMLCell(0, 50, 60, 35 + $y, $titre); $titre = '<span style = "text-decoration:underline"><b>ELEVE</b></span><b> : ' . $absence['NOM'] . " " . $absence['PRENOM'] . '</b>'; $pdf->WriteHTMLCell(0, 50, 10, 50 + $y, $titre); $titre = '<span style = "text-decoration:underline"><b>CLASSE</b></span><b> : ' . $appel['NIVEAUHTML'] . " " . $appel['LIBELLE'] . '</b>'; $pdf->WriteHTMLCell(0, 50, 100, 50 + $y, $titre); $pdf->SetFont("helvetica", "", 10); $d = new DateFR($appel['DATEJOUR']); $corps = '<p style="font-weight:bold; text-decoration:underline;">ABSENCE</p>'; $pdf->WriteHTMLCell(0, 5, 10, 60 + $y, $corps); $pdf->WriteHTMLCell(0, 5, 20, 65 + $y, "Date de l'absence : <i>" . $d->getJour() . " " . $d->getDate() . " " . $d->getMois() . " " . $d->getYear() . "</i>"); $h = ""; if ($absence['HORAIRE'] == 1) { $h = "1<sup>ère</sup>"; } else { $h = $absence['HORAIRE'] . "<sup>ème</sup>"; } $pdf->WriteHTMLCell(0, 5, 20, 70 + $y, "Horaire de l'absence : <i>" . $h . " Heure</i>"); $corps = "Appel réalisé par : <i>" . $appel['NOMREALISATEUR'] . ' ' . $appel['PRENOMREALISATEUR'] . "</i>"; if (!empty($appel['MODIFIERPAR'])) { $d->setSource($appel['DATEMODIF']); $corps .= " et modifiée par : <i>" . $appel['NOMMODIFICATEUR'] . " " . $appel['PRENOMMODIFICATEUR'] . "</i> le " . $d->getJour(3) . " " . $d->getDate() . " " . $d->getMois() . " " . $d->getYear(); } $pdf->WriteHTMLCell(0, 5, 20, 75 + $y, $corps); $corps = '<p style="font-weight:bold; text-decoration:underline;">JUSTIFICATION</p>'; $pdf->WriteHTMLCell(0, 5, 10, 85 + $y, $corps); $d->setSource($justification['DATEJOUR']); $pdf->WriteHTMLCell(0, 5, 20, 90 + $y, "Date de la justification : <i>" . $d->getJour() . " " . $d->getDate() . " " . $d->getMois() . " " . $d->getYear() . "</i>"); $pdf->WriteHTMLCell(0, 5, 20, 95 + $y, "Justification réalisée par : <i>" . $justification['NOM'] . " " . $justification['PRENOM'] . "</i>"); $pdf->WriteHTMLCell(0, 5, 20, 100 + $y, "Motif de la justification : <i>" . $justification['MOTIF'] . "</i>"); $pdf->WriteHTMLCell(0, 5, 20, 110 + $y, "Description de la justification : <i>" . $justification['DESCRIPTION'] . "</i>"); $pdf->output();
<?php $i = 1; $d = new DateFR(); foreach ($eleves as $el) { echo "<tr><td>" . $i . "</td><td>" . $el['NOM'] . " " . $el['PRENOM'] . "</td>"; if (empty($el['IDSCOLARITE'])) { echo "<td></td><td align='center'><input type='checkbox' disabled /></td>"; echo "<td></td><td align='center'>"; if (isAuth(508)) { echo "<img style='cursor:pointer' title='Effectuer le payement' " . "src='" . img_valider() . "' onclick=\"payer('" . $el['IDELEVE'] . "')\" /> "; } else { echo "<img style='cursor:pointer' title='Vous ne disposez pas du droit de payement' " . "src = '" . img_valider_disabled() . "' /> "; } echo "<img style='cursor:pointer' title='Supprimer le payement' " . "src='" . img_delete_disabled() . "' /></td>"; } else { $d->setSource($el['DATEPAYEMENT']); echo "<td>" . $d->getJour(3) . " " . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . "</td><td align='center'><input type='checkbox' checked disabled /></td>"; echo "<td>" . $el['NOMREALISATEUR'] . ' ' . $el['PRENOMREALISATEUR'] . "</td>"; echo "<td align='center'><img style='cursor:pointer' title='Effectuer le payement' " . "src='" . img_valider_disabled() . "' /> "; if (isAuth(519)) { echo "<img style='cursor:pointer' title='Supprimer le payement' " . "onclick=\"depayer('" . $el['IDSCOLARITE'] . "')\" src='" . img_delete() . "' /></td>"; } else { echo "<img style='cursor:pointer' title=\"Vous ne disposez pas du droit de suppression\" \n src='" . img_delete_disabled() . "' /></td>"; } } echo "</tr>"; $i++; } ?> </tbody> </table>
<div style="text-align: center; color: #ff6666"><blink> <?php if (!empty($info)) { echo $info; } ?> </blink></div> <table class="dataTable" id="sauvegardeTable"> <thead><tr><th>N°</th><th>Description</th><th>Taille</th><th></th><th></th></tr></thead> <tbody> <?php $i = 1; $d = new DateFR(); if (!empty($sauvegardes)) { foreach ($sauvegardes as $save) { $d->setSource($save['DATESAUVEGARDE']); echo "<tr><td style='text-align:center'>" . $i . "</td><td>Sauvegarde des données " . $save['DESCRIPTION'] . " : " . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . " à " . $d->getTime() . "</td>" . "<td style='text-align:right'>" . substr(moneyString($save['TAILLE']), 0, -3) . "KB</td>" . "<td style='text-align:center'>" . "<img title='Telecharger cette sauvegarde' style='cursor:pointer' " . "onclick='telechargerSauvegarde(" . $save['IDSAUVEGARDE'] . ")' src='" . img_download() . "' />" . " <img title='Restaurer cette sauvegarde' src='" . img_restaure() . "' style='cursor:pointer' " . "onclick='restaurerSauvegarde(" . $save['IDSAUVEGARDE'] . ")' /></td>" . "<td style='text-align:center'><img style='cursor:pointer' onclick='supprimerSauvegarde(" . $save['IDSAUVEGARDE'] . ")' src='" . img_delete() . "'>" . "</td></tr>"; $i++; } } ?> </tbody> </table> <div style="margin: 10px;text-align: center"> <input style="width: 350px; border: 2px outset buttonface; margin:0" type="button" value="Effectuer une nouvelle sauvegarde" onclick="nouvelleSauvegarde()"/> </div> <script> $(document).ready(function () { if (!$.fn.DataTable.isDataTable("#sauvegardeTable")) { $("#sauvegardeTable").DataTable({
} } ?> <th>Total</th></tr></thead> <tbody> <?php $d = new DateFR($datedebut); $date = $datedebut; $totaux = 0; $t1 = $t2 = $t3 = $t4 = $t5 = $t6 = $t7 = $t8 = 0; while ($date <= $datefin) { $abs = estAbsent($ideleve, $absences, 0, $date); if (!is_null($abs)) { $total = 0; $d->setSource($date); echo '<tr><td width="20%">' . $d->getJour(3) . " " . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . "</td>"; for ($i = 1; $i <= MAX_HORAIRE + 1; $i++) { $abs = estAbsent($ideleve, $absences, $i, $date); if (!empty($abs['JUSTIFIER'])) { echo '<td style="background-color:#ffff66;text-align:center" width="7%">J</td>'; } elseif ($abs['ETAT'] === "A") { echo '<td style="background-color:#ff9999;text-align:center" width="7%">A</td>'; $total++; if ($i == 1) { $t1++; } if ($i == 2) { $t2++; } if ($i == 3) {
$d = new DateFR(); $pdf->SetFont("Times", "", 8); foreach ($eleves as $el) { if ($i == 1 || $i % 40 == 0) { if ($i % 40 == 0) { $corps .= "</tbody></table>"; if ($i > 77) { $pdf->WriteHTMLCell(190, 5, $x + 95, $y + 20, $corps); $pdf->AddPage(); } else { $pdf->WriteHTMLCell(190, 5, 5, $y + 20, $corps); } } $corps = '<table cellpadding = "2"><thead><tr style="font-weight:bold;font-size:6px;text-align:center">' . '<th border="0.5" width ="' . $col[0] . '%">N°</th>' . '<th border="0.5" width ="' . $col[1] . '%">Nom et Prénoms</th>' . '<th border="0.5" width ="' . $col[2] . '%">D.Naiss</th>' . '<th border="0.5" width ="' . $col[3] . '%">T.Ab</th>' . '<th border="0.5" width ="' . $col[4] . '%">Ab.J</th>' . '<th border="0.5" width ="' . $col[5] . '%">Cons</th>' . '<th border="0.5" width ="' . $col[6] . '%">Decis°</th></tr></thead>' . '<tbody>'; } $d->setSource($el['DATENAISS']); if (!empty($el['DATENAISS']) && $el['DATENAISS'] !== "0000-00-00") { $datenaiss = $d->getDate() . "/" . $d->getMonth() . "/" . $d->getYear(); } else { $datenaiss = ""; } $corps .= '<tr>' . '<td width ="' . $col[0] . '%" border="0.5">' . $i . '</td>' . '<td width ="' . $col[1] . '%" border="0.5">' . $el['NOM'] . ' ' . $el['PRENOM'] . '</td>' . '<td width ="' . $col[2] . '%" border="0.5">' . $datenaiss . '</td>' . '<td width ="' . $col[3] . '%" border="0.5"></td>' . '<td width ="' . $col[4] . '%" border="0.5"></td>' . '<td width ="' . $col[5] . '%" border="0.5"></td>' . '<td width ="' . $col[6] . '%" border="0.5"></td></tr>'; $i++; } if ($i > 78) { $corps .= "</tbody></table>"; $pdf->WriteHTMLCell(190, 5, 5, $y - 20, $corps); } elseif ($i < 40) { $corps .= "</tbody></table>"; $pdf->WriteHTMLCell(190, 5, 5, $y + 20, $corps); } else {
$pdf->WriteHTMLCell(0, 5, 20, $y + 20, $corps); //Matricule $pdf->WriteHTMLCell(50, 10, 159, $y + 15, '<b>Matricule : ' . $eleve['MATRICULE'] . '</b>', 0, 2); if (!empty($eleve['PHOTO'])) { $photo = SITE_ROOT . "public/photos/eleves/" . $eleve['PHOTO']; $pdf->Image($photo, 160, $y + 30, 40, '', '', '', 'T', false, 300, '', false, false, 0, false, false, false); } else { $pdf->WriteHTMLCell(30, 25, 160, $y + 30, '<br/><br/><br/>PHOTO', 1, 2, false, true, 'C'); } $pdf->SetFont("helvetica", "B", 10); $pdf->SetFillColor(225, 196, 196); $pdf->SetXY(10, $y + 80); $pdf->Cell(60, 4, "II-SCOLARITE ACTUELLE", 0, 2, 'L', 1); $pdf->Ln(2); $pdf->SetFont("Times", '', 12); $d->setSource($eleve['DATEENTREE']); $classecourante = isset($classe['NIVEAUHTML']) ? $classe['NIVEAUHTML'] : ""; $classecourante .= " " . (isset($classe['LIBELLE']) ? $classe['LIBELLE'] : ""); $redo = isset($redoublant) && $redoublant === true ? "Oui" : "Non"; $corps = '<table border = "0" cellpadding = "5">'; $corps .= '<tr><td style = "border-bottom:1px solid #000000">Classe </td><td style = "border-bottom:1px solid #000000">' . $classecourante . '</td></tr>'; $corps .= '<tr><td style = "border-bottom:1px solid #000000">Redoublant</td><td style = "border-bottom:1px solid #000000">' . $redo . '</td></tr>'; $corps .= '<tr><td style = "border-bottom:1px solid #000000">Provenance </td><td style = "border-bottom:1px solid #000000">' . $eleve['FK_PROVENANCE'] . '</td></tr>'; $corps .= '<tr><td style = "border-bottom:1px solid #000000">Date d\' entrée</td><td style = "border-bottom:1px solid #000000">' . $d->getDate() . " " . $d->getMois(0) . " " . $d->getYear() . "</td></tr>"; $d->setSource($eleve['DATESORTIE']); $corps .= '<tr><td style = "border-bottom:1px solid #000000">Date de sortie</td><td style = "border-bottom:1px solid #000000">' . $d->getDate() . " " . $d->getMois(0) . " " . $d->getYear() . "</td></tr>"; $corps .= '<tr><td style = "border-bottom:1px solid #000000">Motif de sortie</td><td style = "border-bottom:1px solid #000000">' . $eleve['FK_MOTIF'] . "</td></tr>"; $corps .= '</table>'; //Impression du tableau $pdf->WriteHTMLCell(0, 5, 20, $y + 85, $corps); $pdf->SetFont("helvetica", "B", 10);