public function ajaxpayement() { $action = $this->request->action; $view = new View(); $json = array(); switch ($action) { case "chargerFrais": $frais = $this->Frais->findBy(["CLASSE" => $this->request->idclasse]); $view->Assign("frais", $frais); $json[0] = $view->Render("scolarite" . DS . "ajax" . DS . "comboFrais", false); break; case "payer": $personnel = $this->Personnel->getBy(["USER" => $this->session->iduser]); $params = ["eleve" => $this->request->ideleve, "frais" => $this->request->idfrais, "datepayement" => date("Y-m-d", time()), "realiserpar" => $personnel['IDPERSONNEL']]; $this->Scolarite->insert($params); break; case "depayer": $this->Scolarite->delete($this->request->idscolarite); break; } if ($action != "chargerFrais") { $frais = $this->Frais->get($this->request->idfrais); $eleves = $this->Scolarite->getScolariteEleveByFrais($this->request->idfrais); $view->Assign("eleves", $eleves); $json[0] = $view->Render("scolarite" . DS . "ajax" . DS . "payement", false); # Montant frais pour les info d'entete $json[1] = "## " . $frais['MONTANT'] . " ##"; # Date echeances $d = new DateFR($frais['ECHEANCES']); $json[2] = $d->getJour(3) . " " . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear(); } echo json_encode($json); }
<table class="dataTable" id="fraisTable"> <thead><tr><th>Description du frais scolaire</th><th>Montant</th><th>Echéances</th><th></th></tr></thead> <tbody> <?php $montanttotal = 0; foreach ($frais as $f) { $montanttotal += $f['MONTANT']; $d = new DateFR($f['ECHEANCES']); $echeance = $d->getJour(3) . " " . $d->getDate() . "-" . $d->getMois() . "-" . $d->getYear(); echo "<tr><td>" . $f['DESCRIPTION'] . "</td><td align='right'>" . moneyString($f['MONTANT']) . "</td><td>" . $echeance . "</td>" . "<td align = 'center'>"; if (isAuth(510)) { echo "<img style = 'cursor:pointer' src = \"" . SITE_ROOT . "public/img/delete.png\" " . "onclick = \"supprimerFrais('" . $f['IDFRAIS'] . "')\" /> "; } if (isAuth(511)) { echo "<img id = 'img-edit' style = 'cursor:pointer' src = '" . img_edit() . "' " . "onclick = \"openEditForm('" . $f['IDFRAIS'] . "')\" />"; # Ajout des input hidden pour la modification echo "<input type='hidden' name='description" . $f['IDFRAIS'] . "' value='" . $f['DESCRIPTION'] . "' />"; echo "<input type='hidden' name='montant" . $f['IDFRAIS'] . "' value ='" . $f['MONTANT'] . "' />"; echo "<input type='hidden' name='echeances" . $f['IDFRAIS'] . "' value='" . $f['ECHEANCES'] . "' />"; } echo "</td></tr>"; } echo "<tr><td>TOTAL</td><td align='right'>" . moneyString($montanttotal) . "</td><td><td></tr>"; ?> </tbody> </table> <script> if (!$.fn.DataTable.isDataTable("#fraisTable")) { $("#fraisTable").DataTable({ "bInfo": false,
$y = $pdf->GetY(); $pdf->SetPrintHeader(false); # Titre du PDF $pdf->SetFont("helvetica", "B", 9); $titre = '<p style = "text-decoration:underline"><b>JUSTIFICATION D\'ABSENCE DE L\'ANNEE SCOLAIRE ' . $anneescolaire . '</b></p>'; $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);
</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({ bInfo: false
/** * Page footer */ public function Footer() { // Position at 15 mm from bottom $this->SetY(-20); $line_width = 0.85 / $this->k; $this->SetLineStyle(array('width' => $line_width, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => $this->footer_line_color)); # $this->Cell(0, 0, "HUm", 'T', 0, 'R'); // Position at 15 mm from bottom // Set font if ($this->bCertify) { $this->SetFont('helvetica', 'B', 7); $d = new DateFR(); $signature = '<p style="text-align:right">Imprimé par : ' . $_SESSION['user'] . " / " . $d->getJour(3) . " " . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . '</p>'; $this->writeHTML($signature); } global $url; //$url est une variable globale defini dans Router.php global $bas_bulletin; $urlArray = explode("/", $url); if ($urlArray[0] === "bulletin") { $this->setY(-10); $this->setX(10); $this->setFont("Times", 'B', 10); $this->Cell(100, 0, 'INSTITUT POLYVALENT WAGUE ' . $_SESSION['anneeacademique'] . ".", 'T', 0, 'L'); $this->Cell(70, 0, $bas_bulletin[0], 'T', 0, 'L'); if ($bas_bulletin[1] === 1) { $this->Cell(0, 0, 'C', 'T', 0, 'R'); } else { $this->Cell(0, 0, 'O', 'T', 0, 'R'); } } else { // Page number $this->SetFont('helvetica', 'B', 8); $this->Cell(0, 10, 'Page ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M'); } }
} ?> <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) { $t3++;
$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> <script>
#Fiche de report de note # accessible grace a note/index # code d'impression 0004 $y = FIRST_TITLE; $pdf->SetPrintHeader(false); //Titre du PDF $titre = '<p style = "text-decoration:underline">FICHE DE REPORT DE NOTES ' . $anneescolaire . '</p>'; $pdf->WriteHTMLCell(0, 50, 60, $y, $titre); $pdf->SetFont("Times", "", 13); $titre = '<i>' . $enseignement['NIVEAUHTML'] . ' ' . $enseignement['CLASSELIBELLE'] . "</i>"; $pdf->WriteHTMLCell(0, 5, 10, $y + 15, $titre); $pdf->WriteHTMLCell(0, 5, 90, $y + 15, '<p>Note sur : <i>' . $notation['NOTESUR'] . '</i></p>'); $enseignant = '<p>Enseignant : <i>' . $enseignement['NOM'] . ' ' . $enseignement['PRENOM'] . "</i></p>"; $pdf->WriteHTMLCell(0, 5, 140, $y + 15, $enseignant); $d = new DateFR($notation['DATEDEVOIR']); $pdf->WriteHTMLCell(0, 5, 10, $y + 20, '<i>' . $d->getJour(3) . ' ' . $d->getDate() . ' ' . $d->getMois(3) . ' ' . $d->getYear() . '</i>'); $matiere = '<p>Matière : <i>' . $enseignement['MATIERELIBELLE'] . '</i></p>'; $pdf->WriteHTMLCell(0, 5, 140, $y + 20, $matiere); $pdf->WriteHTMLCell(0, 5, 90, $y + 20, '<p>Note maxi : <i>' . $notation['NOTEMAX'] . '</i></p>'); $libelle = '<i>' . $notation['DESCRIPTION'] . '</i>'; $pdf->WriteHTMLCell(0, 5, 10, $y + 25, $libelle); $pdf->WriteHTMLCell(0, 5, 10, $y + 30, '<i>Effectif : ' . count($notes) . '</i>'); $pdf->WriteHTMLCell(0, 5, 90, $y + 25, '<p>Note mini : <i>' . $notation['NOTEMIN'] . '</i></p>'); $pdf->WriteHTMLCell(0, 5, 140, $y + 25, '<p>Coefficient : <i>' . $enseignement['COEFF'] . '</i></p>'); $pdf->WriteHTMLCell(0, 5, 90, $y + 30, '<p>Note moy. : <i>' . sprintf("%.2f", $notation['NOTEMOYENNE']) . '</i></p>'); $pdf->WriteHTMLCell(0, 5, 140, $y + 30, '<p>Période : ' . $notation['SEQUENCELIBELLE'] . '</p>'); $corps = '<table border="0.5" cellpadding="5"><tr style="text-align:center"><td rowspan="2">Effectif évalué</td>' . '<td rowspan="2">Moyenne générale de la classe</td>' . '<td rowspan="2">Nombre de Moy >= 10</td>' . '<td colspan="2">Taux de réussite</td><td rowspan="2">Taux de réussite général</td>' . '<td rowspan="2">Observation</td></tr>' . '<tr><td>Garçons</td><td>Filles</td></tr>'; $nbre = effectifEvalues($notes); # taux[0] = taux des garcons # taux[1] = taux des filles # taux[2] = taux generale de reussite
</style> <?php if (isset($deja)) { echo '<p style="color: #ff9999;text-align: center;margin:auto;width:100%;">Appel déjà réalisé<br/>'; if (isAuth(320)) { echo "Procédez à <a href='" . Router::url("appel", "edit", $appel['IDAPPEL']) . "'>l'édition ici</a>"; } else { echo "Vous n'êtes pas autorisés à effectuer une modification"; } echo "</p>"; } ?> <table class="tableAbsences"> <thead><tr><th>N°</th><th>Noms & Prénoms</th><th colspan="8"><?php $d = new DateFR($appel['DATEJOUR']); echo $d->getJour(3) . " " . $d->getDate() . "-" . $d->getMois(3) . "-" . $d->getYear(); ?> </th><th>Total</th></tr></thead> <tbody> <tr><td colspan="2" style="text-align: center;">HEURES</td><?php $horaires = getHoraires($appel['HEUREDEBUT'], $appel['HEUREFIN']); foreach ($horaires as $h) { if ($h === 1) { echo "<td>1<sup>ère</sup>Heure</td>"; } else { echo "<td>" . $h . "<sup>ème</sup>Heure</td>"; } } # Ferme le tr de la ligne HEURES echo "<td></td></tr>"; $i = 1;
<table class="dataTable" id="scolariteTable"> <thead><th>Date</th><th>Description du frais</th><th>Montant du frais</th><th>Montant payé</th><th>Reste</th><th></th></thead> <tbody> <?php foreach ($scolarites as $scol) { $d = new DateFR($scol['DATEPAYEMENT']); echo "<tr><td>" . $d->getJour(3) . " " . $d->getDate() . "-" . $d->getMois(3) . "-" . $d->getYear() . "</td>" . "<td>" . $scol['DESCRIPTION'] . "</td><td>" . $scol['MONTANTFRAIS'] . "</td><td>" . $scol['MONTANTPAYE'] . "</td>" . "<td>" . ($scol['MONTANTFRAIS'] - $scol['MONTANTPAYE']) . "</td><td>" . "<img style = 'cursor:pointer' src = '" . img_delete() . "' onclick = \"supprimerScolarite('" . $scol['IDSCOLARITE'] . "')\" /></td></tr>"; } ?> </tbody> </table> <script> $(document).ready(function () { if (!$.fn.DataTable.isDataTable("scolariteTable")) { $("#scolariteTable").DataTable({ "bInfo": false, "columns": [ {"width": "15%"}, null, {"width": "15%"}, {"width": "13%"}, {"width": "8%"}, {"width": "5%"} ] }); } }); </script>
$pdf->bCertify = false; $pdf->SetPrintFooter(false); $y = FIRST_TITLE; $pdf->AddPage(); $col = array(); $col[0] = 0; $col[1] = 40; $col[2] = 60; $pdf->setFont("Times", '', 13); $titre = '<p style="text-align:center"><b>FICHE DE DEMANDE D\'INSCRIPTION<br/>Année scolaire ' . $anneescolaire . "</b></p>"; $pdf->WriteHTMLCell(0, 5, 30, $y, $titre); $pdf->WriteHTMLCell(0, 5, 11, $y + 20, '<b style="text-decoration:underline">Informations de l\'élève</b>'); $d = new DateFR($eleve['DATENAISS']); $corps = '<table cellpadding="2">'; $corps .= '<tr><td width="' . $col[1] . '%">Nom de l\'élève </td><td>: ' . $eleve['NOM'] . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Prénom (s) de l\'élève </td><td>: ' . $eleve['PRENOM'] . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Date et lieu de naissance </td>' . '<td>: ' . $d->getJour(3) . ' ' . $d->getDate() . " " . $d->getMois() . " " . $d->getYear() . ' ' . $eleve['LIEUNAISS'] . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Sexe </td><td>: ' . ($eleve['SEXE'] == "M" ? "Masculin" : "Fémin") . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Etablissement de l\'année précédente </td>' . '<td>: ' . $eleve['FK_PROVENANCE'] . '</td></tr>'; $corps .= "</table>"; $pdf->WriteHTMLCell(0, 5, 10, $y + 25, $corps); # Parents; $pdf->WriteHTMLCell(0, 5, 11, $y + 65, '<b style="text-decoration:underline">Informations des parents</b>'); $corps = '<table cellpadding="2">'; foreach ($responsables as $resp) { $corps .= '<tr><td width="' . $col[1] . '%">Nom(s) et prénom</td><td>: ' . $resp['NOM'] . ' ' . $resp['PRENOM'] . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Parenté </td><td>: ' . $resp['PARENTE'] . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Profession </td><td>: ' . $resp['PROFESSION'] . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Adresse </td><td>: ' . $resp['ADRESSE'] . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Email </td><td>: ' . $resp['EMAIL'] . '</td></tr>' . '<tr><td colspan="2"></td></tr>'; } $corps .= "</table>"; $pdf->WriteHTMLCell(0, 5, 10, $y + 70, $corps); # Autres informations $pdf->WriteHTMLCell(0, 5, 11, $y + 150, '<b style="text-decoration:underline">Autres Informations</b>'); $corps = '<table cellpadding="2">' . '<tr><td>Lieu de résidence : </td><td>' . $eleve['RESIDENCE'] . '</td></tr>' . '<tr><td>Frères et sœurs à IPW : </td><td>' . $eleve['FRERESOEUR'] . '</td></tr>'; $corps .= '</table>'; $pdf->WriteHTMLCell(0, 5, 11, $y + 155, $corps);
echo "<th>" . $i . "<sup>ème</sup>H</th>"; } } ?> <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) { if (array_key_exists($date, $calendrier) && $calendrier[$date] != "V" || !array_key_exists($date, $calendrier)) { $total = 0; echo "<tr><td>" . $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 (array_key_exists($date, $calendrier)) { echo "<td class='freedays'></td>"; } elseif (is_null($abs)) { echo "<td class ='present'></td>"; } else { if (!empty($abs['JUSTIFIER'])) { echo "<td class ='justifier'></td>"; } elseif ($abs['ETAT'] === "A") { echo "<td class='absent'></td>"; $total++; if ($i == 1) { $t1++; }
<?php /* classification par ordre horaire */ $pdf->AddPage(); $pdf->SetPrintHeader(false); $y = FIRST_TITLE; $x = 5; $d = new DateFR($datejour); $titre = '<h4 style = "text-align:center"> ENSEIGNANTS ABSENT<br>JOUR</h4>'; $pdf->WriteHTMLCell(0, 0, $x, $y, $titre); $pdf->SetFont("Times", '', 13); $titre = '<p><b>JOURNEE DU : </b>' . $d->getJour(3) . ' ' . $d->getDate() . ' ' . $d->getMois(3) . ' ' . $d->getYear(); $pdf->WriteHTMLCell(0, 0, $x + 5, $y + 13, $titre); $pdf->SetFont("Times", '', 7); $titre = '<br/>SEQUENCE N° :<b>' . $sequence['SEQUENCEORDRE'] . '</b></p>'; $pdf->WriteHTMLCell(0, 0, $x + 5, $y + 20, $titre); $col[0] = 8; $col[1] = 12; $col[2] = 12; $col[3] = 12; $col[4] = 12; $col[5] = 12; $col[6] = 12; $col[7] = 12; $col[8] = 12; $corps = '<table style="text-align:center" cellpadding="2"> <tr style="font-weight:bold"> <th border="0.5" width ="' . $col[0] . '%">CLASSES</th> <th border="0.5" width ="' . $col[1] . '%">1<sup>ere</sup>Heure</th> <th border="0.5" width ="' . $col[2] . '%">2<sup>eme</sup>Heure</th> <th border="0.5" width ="' . $col[3] . '%">3<sup>eme</sup>Heure</th>
/** * Page footer */ public function Footer() { // Position at 15 mm from bottom $this->SetY(-20); // Set font if ($this->bCertify) { $this->SetFont('helvetica', 'B', 7); $d = new DateFR(); $signature = '<p style="text-align:right">Imprimé par : ' . $_SESSION['user'] . " / " . $d->getJour(3) . " " . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . '</p>'; $this->writeHTML($signature); } // Page number $this->SetFont('helvetica', 'B', 8); $this->Cell(0, 10, 'Page ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M'); }
$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->setFont("Times", '', 12); $pdf->WriteHTMLCell(0, 5, $x + 120, $y + 25, '<b style="text-decoration:underline">LA DIRECTRICE</b>'); if ($i === 3) { $pdf->AddPage();