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); }
#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
<?php $y = PDF_Y; $x = PDF_X; $middle = PDF_MIDDLE; $pdf->AddPage(); $pdf->SetPrintHeader(false); $pdf->SetFont("Times", 'B', 10); # Titre du PDF $titre = '<p style = "text-decoration:underline"><b>LISTE D\'APPEL DE L\'ANNEE SCOLAIRE ' . $anneescolaire . '</b></p>'; $pdf->WriteHTMLCell(0, 50, $middle - 40, $y - 10, $titre); $titre = '<span style = "text-decoration:underline"><b>CLASSE</b></span><b> : ' . $classe['NIVEAUHTML'] . '</b>'; $pdf->WriteHTMLCell(0, 50, $middle - 10, $y, $titre); $d1 = new DateFR($datedebut); $d2 = new DateFR($datefin); $semaine = '<span>Semaine du <b style="text-decoration:underline">' . $d1->getDate() . " " . $d1->getMois(3) . " " . $d1->getYear() . '</b> au <b style="text-decoration:underline">' . $d2->getDate() . " " . $d2->getMois(3) . " " . $d2->getYear() . '</b></span>'; $pdf->WriteHTMLCell(100, 50, 135, 10 + $y, $semaine); $tab = getEffectifs($eleves); $pdf->WriteHTMLCell(0, 5, $x, $y + 10, '<span style="text-decoration:underline">Filles</span> : <b>' . $tab[0] . '</b>'); $pdf->WriteHTMLCell(0, 5, $x + 40, $y + 10, '<span style="text-decoration:underline">Garçons</span> : <b>' . $tab[1] . '</b>'); $pdf->WriteHTMLCell(0, 5, $x, $y + 15, '<span style="text-decoration:underline">Effectif Total</span> : <b>' . $tab[2] . '</b>'); $pdf->SetFont("Times", '', 8); # Nombre de colonnes, pour les 1eres et Tle, 9 colonnes $l = getNbHoraire($classe['GROUPE']); $absent = "<b>A</b>"; $retard = "<b>R</b>"; $exclu = "<b>E</b>"; $justifier = "<b>J</b>"; $pdf->SetFont("Times", '', 8); $corps = '<table cellpadding="2"> <thead><tr border ="0.5" style = "font-weight:bold"><th border ="0.5" width ="3%">N°</th>
<table class="dataTable" id="tableEleves"> <thead><tr><th>Matricule</th><th>Noms et Prénoms</th> <th>Sexe</th><th>Date Naiss.</th><th>Redoublant</th></tr></thead> <tbody> <?php if (!is_array($array_of_redoublants)) { $array_of_redoublants = array(); } foreach ($eleves as $el) { $d = new DateFR($el['DATENAISS']); echo "<tr><td>" . $el['MATRICULE'] . "</td><td>" . $el['CNOM'] . "</td>"; echo "<td align ='center'>" . $el['SEXE'] . "</td><td>" . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . "</td>"; if (in_array($el['IDELEVE'], $array_of_redoublants)) { echo "<td align = 'center'><input type = 'checkbox' disabled checked /></td></tr>"; } else { echo "<td align = 'center'><input type = 'checkbox' disabled /></td></tr>"; } } ?> </tbody> </table> <script> $(document).ready(function () { if (!$.fn.DataTable.isDataTable("#tableEleves")) { $("#tableEleves").DataTable({ bInfo: false, paging: false, "columns": [ {"width": "7%"}, null, {"width": "5%"},
<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);
<?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();
$pdf->SetPrintHeader(false); $y = PDF_Y; $x = PDF_X; $middle = PDF_MIDDLE; $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>'; }
if (in_array($rang['IDELEVE'], $array_of_redoublants)) { $redoublant = "OUI"; } else { $redoublant = "NON"; } $pdf->SetFont("Times", "", 9); $d = new DateFR($rang['DATENAISSEL']); $matricule = 'Matricule : <b>' . $rang['MATRICULEEL'] . '</b>'; $pdf->WriteHTMLCell(0, 5, 37, $y, $matricule); $nom = 'Nom : <b>' . $rang['NOMEL'] . " " . $rang['PRENOMEL'] . ' ' . $rang['AUTRENOMEL'] . '</b>'; $pdf->WriteHTMLCell(0, 5, 37, $y + 4, $nom); $naiss = "Né "; if ($rang['SEXEEL'] === "F") { $naiss = "Née "; } $naiss .= "le : <b>" . $d->getDate() . " " . $d->getMois(3) . "-" . $d->getYear(); if (!empty($rang['LIEUNAISSEL'])) { $naiss .= " à " . $rang['LIEUNAISSEL']; } $naiss .= '</b>'; $pdf->WriteHTMLCell(0, 5, 37, $y + 8, $naiss); #Adresse #classe $classelib = 'Classe : <b>' . $classe['NIVEAUHTML'] . '</b>'; $pdf->WriteHTMLCell(50, 5, 165, $y, $classelib); $effectiflib = 'Effectif : <b>' . $effectif . '</b>'; $pdf->WriteHTMLCell(50, 5, 165, $y + 4, $effectiflib); $redo = "Redoublant : <b>" . $redoublant . '</b>'; $pdf->WriteHTMLCell(50, 5, 165, $y + 8, $redo); $pdf->setFontSize(10); if ($codeperiode === "S") {
$pdf->SetPrintHeader(false); //$pdf->SetPrintFooter(false); //Titre du PDF $titre = '<p>LISTE DES ELEVES DE ' . $classe['NIVEAUHTML'] . ' ' . $classe['LIBELLE'] . '</p>'; $pdf->WriteHTMLCell(0, 50, 65, $y, $titre); //Corps du PDF $corps = <<<EOD <table border = "0" cellpadding = "5"><thead><tr style = "font-weight:bold"> <th width="5%">N°</th><th width ="10%">Mle</th><th width ="55%">Noms & Prénoms</th> <th width ="15%">Date Naiss.</th><th align="center" width ="15%">Redoublant</th></tr></thead><tbody> EOD; if (!is_array($array_of_redoublants)) { $array_of_redoublants = array(); } $i = 1; foreach ($eleves as $el) { if (in_array($el['IDELEVE'], $array_of_redoublants)) { $redoublant = "OUI"; } else { $redoublant = "NON"; } $d = new DateFR($el['DATENAISS']); $corps .= '<tr><td width ="5%" border="1">' . $i . '</td>' . '<td width ="10%" border="1">' . $el['MATRICULE'] . '</td>' . '<td width ="55%" border="1">' . $el['NOM'] . ' ' . $el['PRENOM'] . '</td>' . '<td width ="15%" border="1">' . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . '</td>' . '<td width ="20%" border="1">' . $redoublant . '</td></tr>'; $i++; } $corps .= "</tbody></table>"; $pdf->SetFont("Times", '', 10); //Impression du tableau //$pdf->writeHTML($corps, true, false, false, false, ''); $pdf->WriteHTMLCell(0, 5, 10, $y + 10, $corps); $pdf->Output();
<?php $pdf->AddPage(); $pdf->SetPrintHeader(false); $y = Y_PDF; $x = X_PDF; $titre = '<h5>' . strtoupper($compte['NOM'] . ' ' . $compte['PRENOM']) . ' </h5>'; $pdf->WriteHTMLCell(0, 0, $x, $y + 10, $titre); $pdf->WriteHTMLCell(0, 0, PDF_MIDDLE - 30, $y, "<b>RAPPORT DE COMPTE CAISSE</b>"); $d = new DateFR(); $pdf->SetFontSize(9); $pdf->WriteHTMLCell(50, 0, 155, $y - 10, "<p>N° compte : " . $compte['CODE'] . "<br/>Date génération état : " . $d->getDate() . "-" . $d->getMois(3) . "-" . $d->getYear(2) . "<br/>" . "Période : " . $anneeacademique . "</p>"); $pdf->SetFont("Courier", '', 7); $col[0] = 12; $col[1] = 15; $col[2] = 15; $col[3] = 30; $col[4] = 10; $col[5] = 10; $col[6] = 12; $corps = '<table cellpadding="2"><thead> <tr style="font-weight:bold; border-top: 1px solid #000;border-bottom: 1px solid #000;"> <th align="center" style="border-top: 1px solid #000;border-bottom: 1px solid #000;" width ="' . $col[0] . '%" >Date<br/> transaction</th> <th align="center" valign="bottom" style="border-top: 1px solid #000;border-bottom: 1px solid #000" width ="' . $col[1] . '%">Réf.Caisse</th> <th align="center" style="border-top: 1px solid #000;border-bottom: 1px solid #000;vertical-align:bottom" width ="' . $col[2] . '%">Réf. transaction</th> <th align="center" style="border-top: 1px solid #000;border-bottom: 1px solid #000" width ="' . $col[3] . '%">Libellé</th> <th align="center" style="border-top: 1px solid #000;border-bottom: 1px solid #000" width ="' . $col[4] . '%">Débit</th> <th align="center" style="border-top: 1px solid #000;border-bottom: 1px solid #000" width ="' . $col[5] . '%">Crédit</th> <th align="center" style="border-top: 1px solid #000;border-bottom: 1px solid #000" width ="' . $col[6] . '%">Balance</th></tr></thead><tbody>'; $balance = 0;
$pdf->SetPrintHeader(false); $y = PDF_Y; $x = PDF_X; $middle = PDF_MIDDLE; $pdf->setFont("Times", '', 9); $titre = '<b>LISTE DES NOTES DE L\'ELEVE : <br/>' . $eleve['NOM'] . ' ' . $eleve['PRENOM'] . '</b>'; $pdf->WriteHTMLCell(0, 5, $middle - 25, $y, $titre); $pdf->WriteHTMLCell(100, 100, 150, $y, '<b>Année Acad. ' . $_SESSION['anneeacademique'] . '</b>'); $cols[0] = 10; $cols[1] = 20; $cols[2] = 20; $cols[3] = 10; $cols[4] = 7; $cols[5] = 20; $pdf->setFont("Times", '', 7); $corps = '<table cellpadding="2" border="1"><thead> <tr border ="1" style="font-weight:bold" > <td border="1" width ="' . $cols[0] . '%">Séquences</td> <td border="1" width ="' . $cols[1] . '%">Matières</td> <td border="1" width ="' . $cols[2] . '%" >Description</td> <td border="1" width ="' . $cols[3] . '%" >Date</td> <td border="1" width ="' . $cols[4] . '%" >Note</td> <td border="1" width ="' . $cols[5] . '%" >Appréciation</td> </tr></thead><tbdoy>'; foreach ($notes as $n) { $d = new DateFR($n['DATEDEVOIR']); $corps .= '<tr><td border="1" width ="' . $cols[0] . '%">' . $n['LIBELLEHTML'] . "</td>" . '<td border="1" width ="' . $cols[1] . '%">' . $n['BULLETIN'] . "</td>" . '<td border="1" width ="' . $cols[2] . '%">' . $n['DESCRIPTION'] . '</td>' . '<td border="1" width ="' . $cols[3] . '%">' . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear(2) . "</td>" . '<td align="right" border="1" width ="' . $cols[4] . '%">' . $n['NOTE'] . "</td>" . '<td border="1" width ="' . $cols[5] . '%">' . getAppreciations($n['NOTE']) . '</td></tr>'; } $corps .= '</tbody></table>'; $pdf->WriteHTMLCell(0, 5, $x + 10, $y + 10, $corps); $pdf->Output();
$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); $corps .= '</tr>';
</div> <?php } ?> <table class="dataTable" id="tableNotes"> <thead><th>Date</th><th>Période</th><th><img src="<?php echo img_lock(); ?> " /></th> <th>Matière - classe</th><th>Coeff.</th><th>Libellé du devoir</th><th></th></thead> <tbody> <?php foreach ($notations as $n) { $d = new DateFR($n['DATEDEVOIR']); echo "<tr><td>" . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . "</td><td>" . $n['SEQUENCELIBELLE'] . "</td>"; if ($n['NOTATIONVERROUILLER'] == 1) { echo "<td align='center'><input type='checkbox' checked disabled='disabled' /></td>"; } else { echo "<td align='center'><input disabled='disabled' type='checkbox' /></td>"; } echo "<td>" . $n['MATIERELIBELLE'] . " - " . $n['CLASSELIBELLE'] . "</td><td align='right'>" . $n['COEFF'] . "</td>"; echo "<td>" . $n['DESCRIPTION'] . "</td><td align='center'><img style='cursor:pointer' src='" . img_info() . "'\n onclick = \"tooltip_on(event,'" . $n['IDNOTATION'] . "')\" /> "; echo "<img style='cursor:pointer' src='" . img_print() . "' onclick=\"impression(" . $n['IDNOTATION'] . ")\" /> "; if (isAuth(407) && $n['NOTATIONVERROUILLER'] != 1) { echo "<img style='cursor:pointer' src='" . img_edit() . "' onclick=\"editNotation(" . $n['IDNOTATION'] . ")\" /> "; } else { echo "<img style='cursor:pointer' src='" . img_edit_disabled() . "' /> "; } if ($n['NOTATIONVERROUILLER'] == 1) { echo "<img style='cursor:pointer' src='" . img_delete_disabled() . "' />";
<table class="dataTable" id="punitionTable"> <thead><th>Date</th><th>Elèves</th><th>Puni par</th><th>Type</th><th>Motif</th><th>Durée</th><th></th></thead> <tbody> <?php foreach ($punitions as $p) { $d = new DateFR($p['DATEPUNITION']); echo "<tr><td>" . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . "</td><td>" . $p['NOM'] . " " . $p['PRENOM'] . "</td>"; echo "<td>" . $p['PUNISSEUR'] . "</td><td>" . $p['LIBELLE'] . "</td><td>" . $p['MOTIF'] . "</td><td>" . $p['DUREE'] . " jrs</td>"; //echo "<td><img style ='cursor:pointer' src = '" . img_edit() . "' /> "; echo "<td><img style ='cursor:pointer' src = '" . img_delete() . "' onclick=\"supprimerPunition('" . $p['IDPUNITION'] . "')\" /> "; echo "<img style ='cursor:pointer' src = '" . img_print() . "' onclick = \"printPunition('" . $p['IDPUNITION'] . "')\" /></td></tr>"; } ?> </tbody> </table>
} ?> <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'] . ")\">"; } } echo "</td><td align='center'>";
</script> <form action="<?php echo Router::url("eleve", "saisie"); ?> " method="post"> <div class="page"> <table class="dataTable" id="tableEleves"> <thead><tr><th>Matricule</th><th>Noms et Prénoms</th><th>Sexe</th><th>DateNaiss</th><th></th></tr></thead> <tbody> <?php $d = new DateFR(); foreach ($eleves as $el) { echo "<tr><td>" . $el['MATRICULE'] . "</td>" . "<td style='cursor:pointer' onclick=\"ouvrirFiche(" . $el['IDELEVE'] . ")\">" . $el['NOM'] . " " . $el['PRENOM'] . "</td>" . "<td>" . $el['SEXE'] . "</td>"; $d->setSource($el['DATENAISS']); echo "<td>" . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . "</td>"; echo "<td align='center'>"; if (isAuth(520)) { echo "<img style='cursor:pointer' src='" . img_edit() . "' " . "onclick=\"document.location='" . Router::url("eleve", "edit", $el['IDELEVE']) . "'\" />"; } else { echo "<img style='cursor:pointer' src='" . img_edit_disabled() . "' />"; } if (isAuth(521)) { echo " <img style='cursor:pointer' src='" . img_delete() . "' " . "onclick=\"document.location='" . Router::url("eleve", "delete", $el['IDELEVE']) . "'\" />"; } else { echo " <img style='cursor:pointer' src='" . img_delete_disabled() . "' />"; } echo "</td></tr>"; } ?> </tbody>
$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>
<td style="font-weight: bold">Grade : </td><td><?php echo $personnel['GRADE']; ?> </td></tr> <tr><td style="font-weight: bold">Sexe : </td><td><?php if ($personnel['SEXE'] == "M") { echo "Masculin"; } else { echo "Féminin"; } ?> </td> <td style="font-weight: bold">Date de Naiss. : </td><td><?php $d = new DateFR($personnel['DATENAISS']); if ($d->getYear() != 1970) { echo $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear(); } ?> </td> </tr> <tr><td style="font-weight: bold">Portable : </td><td><?php echo $personnel['PORTABLE']; ?> </td> <td style="font-weight: bold">Téléphone : </td><td><?php echo $personnel['TELEPHONE']; ?> </td> </tr> <tr><td style="font-weight: bold">E-Mail : </td><td><?php echo $personnel['EMAIL'];
$y = FIRST_TITLE; $pdf->AddPage(); $pdf->SetPrintHeader(false); //Titre du PDF $titre = '<p style = "text-decoration:underline"><b>SUIVI D\'ABSENCE DE L\'ANNEE SCOLAIRE ' . $anneescolaire . '</b></p>'; $pdf->WriteHTMLCell(0, 50, 60, $y, $titre); $pdf->SetFont("helvetica", "", 9); $titre = '<span style = "text-decoration:underline"><b>ELEVE</b></span><b> : ' . $eleve['NOM'] . ' ' . $eleve['PRENOM'] . ' ' . $eleve['AUTRENOM'] . '</b>'; $pdf->WriteHTMLCell(0, 50, 10, 10 + $y, $titre); $pdf->SetFont("helveticaI", "B", 9); $pdf->WriteHTMLCell(0, 5, 10, 15 + $y, $libelle); $pdf->SetFont("helvetica", "I", 9); $d = new DateFR($datedebut); $d2 = new DateFR($datefin); $semaine = '<span>Période du <b style="text-decoration:underline">' . $d->getDate() . " " . $d->getMois() . " " . $d->getYear() . '</b> au <b style="text-decoration:underline">' . $d2->getDate() . " " . $d2->getMois() . " " . $d2->getYear() . '</b></span>'; $pdf->WriteHTMLCell(0, 50, 70, 20 + $y, $semaine); $pdf->SetFont("Times", '', 11); $corps = '<table cellpadding="2" border = "0.5"> <thead><tr border ="0.5" style = "font-weight:bold"><th border ="0.5" width="20%">Jour/Date</th>'; for ($i = 1; $i <= MAX_HORAIRE + 1; $i++) { if ($i === 1) { $corps .= '<th border ="0.5" align="center" width="7%">1<sup>ère</sup>H</th>'; } else { $corps .= '<th border ="0.5" align="center" width="7%">' . $i . '<sup>ème</sup>H</th>'; } } $corps .= '<th border="0.2" width="10%">Total</th></tr></thead><tbody>'; $date = $datedebut; $totaux = 0; $t1 = $t2 = $t3 = $t4 = $t5 = $t6 = $t7 = $t8 = 0;
<?php $y = FIRST_TITLE; #$pdf->bCertify = true; $pdf->AddPage(); $pdf->SetPrintHeader(false); //$pdf->SetPrintFooter(false); //Titre du PDF $titre = '<p style = "text-decoration:underline">LISTE DES ELEVES DE L\'ETABLISSEMENT</p>'; $pdf->WriteHTMLCell(0, 50, 65, $y, $titre); //Corps du PDF $corps = <<<EOD <table border = "0" cellpadding = "5"><thead><tr style = "font-weight:bold"> <th width ="10%">M<sup>le</sup></th><th width ="55%">Noms & Prénoms</th> <th width ="15%">Date Naiss.</th><th width ="20%">Classe</th></tr></thead><tbody> EOD; foreach ($eleves as $el) { $d = new DateFR($el['DATENAISS']); $corps .= '<tr><td width ="10%" style = "border-bottom:1px solid #000">' . $el['MATRICULE'] . '</td>' . '<td width ="55%" style = "border-bottom:1px solid #000">' . $el['NOM'] . ' ' . $el['PRENOM'] . '</td>' . '<td width ="15%" style = "border-bottom:1px solid #000">' . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear() . '</td>' . '<td width ="20%" style = "border-bottom:1px solid #000">' . $el['NIVEAUHTML'] . ' ' . $el['CLASSECOURANTE'] . '</td></tr>'; } $corps .= "</tbody></table>"; $pdf->SetFont("Times", '', 13); //Impression du tableau //$pdf->writeHTML($corps, true, false, false, false, ''); $pdf->WriteHTMLCell(0, 5, 10, $y + 10, $corps); //$pdf->signature(); $pdf->Output();
} ?> <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++;
<?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({ bInfo: false,
<table class='dataTable' id='tableNotes'> <thead><tr><th>Séquences</th><th>Matières</th><th>Description</th> <th>Date</th><th>Notes</th><th></th></tr> </thead><tbody> <?php foreach ($notes as $n) { $d = new DateFR($n['DATEDEVOIR']); echo "<tr><td>" . $n['LIBELLEHTML'] . "</td><td>" . $n['BULLETIN'] . "</td><td>" . $n['DESCRIPTION'] . "</td>" . "<td>" . $d->getDate() . " " . $d->getMois(3) . " " . $d->getYear(2) . "</td>" . "<td align='right'>" . ($n['ABSENT'] ? "" : $n['NOTE']) . "</td>" . "<td align='center'><img style='cursor:pointer' src='" . img_info() . "' " . "onclick = \"tooltip_on(event,'" . $n['IDNOTATION'] . "')\" /> "; if (isAuth(407) && $n['VERROUILLER'] != 1) { echo "<img src='" . img_edit() . "' onclick ='showEditerNote(" . $n['IDNOTE'] . ", this)' style='cursor:pointer' /> "; } else { echo "<img src='" . img_edit_disabled() . "' style='cursor:pointer' /> "; } if (isAuth(409) && $n['VERROUILLER'] != 1) { echo "<img src='" . img_delete() . "' " . "onclick =\"deleteNote(" . $n['IDNOTE'] . ",'" . $n['BULLETIN'] . "')\" style='cursor:pointer' />"; } else { echo "<img src='" . img_delete_disabled() . "' style='cursor:poiner' />"; } echo "</td></tr>"; } ?> </tbody></table> <script> $(document).ready(function () { $("#tableNotes").dataTable({ scrollY: $(".page").height() - 170, bInfo: false, columns: [ {width: "10%"}, null, {width: "30%"},
<option></option> <?php foreach ($caisses as $caisse) { $d = new DateFR($caisse['DATETRANSACTION']); echo "<option value = '" . $caisse['IDCAISSE'] . "'>" . $caisse['REFTRANSACTION'] . "-" . $caisse['REFCAISSE'] . "-" . $d->getDate() . "/" . $d->getMois(3) . "/" . $d->getYear() . "</option>"; }
/** * 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'); } }
Tél : (+237) 697 86 84 99<br/> ***************</p>'; $pdf->WriteHTMLCell(0, 0, $x + 5, $y - 3, $corps); $pdf->setFont("Times", "", 10); # Reference $reference = '<h2 style="text-align: center; font-size: 15px;"> <font style="text-decoration: underline">REF:</font>' . $operation['REFCAISSE'] . '</h2>'; $pdf->WriteHTMLCell(100, 0, $x + 40, $y + 15, $reference); # date de recu $pdf->SetFillColor(211, 211, 211); # $this->SetTextColor(255); $pdf->SetDrawColor(128, 0, 0); $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; */
if (in_array($eleve['IDELEVE'], $array_of_redoublants)) { $redoublant = "OUI"; } else { $redoublant = "NON"; } $pdf->SetFont("Times", "", 9); $d = new DateFR($eleve['DATENAISS']); $matricule = 'Matricule : <b>' . $eleve['MATRICULE'] . '</b>'; $pdf->WriteHTMLCell(0, 5, 37, $y + 13, $matricule); $nom = 'Nom : <b>' . $eleve['NOM'] . " " . $eleve['PRENOM'] . ' ' . $eleve['AUTRENOM'] . '</b>'; $pdf->WriteHTMLCell(0, 5, 37, $y + 17, $nom); $naiss = "Né "; if ($eleve['SEXE'] === "F") { $naiss = "Née "; } $naiss .= "le : <b>" . $d->getDate() . " " . $d->getMois(3) . "-" . $d->getYear() . " à " . $eleve['LIEUNAISS'] . '</b>'; $pdf->WriteHTMLCell(0, 5, 37, $y + 21, $naiss); #Adresse #classe $classelib = 'Classe : <b>' . $classe['NIVEAUHTML'] . '</b>'; $pdf->WriteHTMLCell(50, 5, 165, $y + 13, $classelib); $effectiflib = 'Effectif : <b>' . $effectif . '</b>'; $pdf->WriteHTMLCell(50, 5, 165, $y + 17, $effectiflib); $redo = "Redoublant : <b>" . $redoublant . '</b>'; $pdf->WriteHTMLCell(50, 5, 165, $y + 21, $redo); $pdf->setFontSize(13); $pdf->WriteHTMLCell(0, 5, 95, $y + 33, '<div style="text-transform:uppercase">' . $sequence['LIBELLEHTML'] . "</div>"); $pdf->setFontSize(8); # Table header $nbMatieres = count($groupe1) + count($groupe2) + count($groupe3); $line_height = "11px";
$pdf->WriteHTMLCell(0, 5, 95, $y + 5, $libelle); # Le cadre pour la photo if (!empty($eleve['PHOTO'])) { $photo = SITE_ROOT . "public/photos/eleves/" . $eleve['PHOTO']; $pdf->Image($photo, 21, $y + 7, 25, '', '', '', 'T', false, 300, '', false, false, 1, false, false, false); } else { $pdf->WriteHTMLCell(25, 25, 21, $y + 7, '<br/><br/>PHOTO', 1, 2, false, true, 'C'); } if (in_array($eleve['IDELEVE'], $array_of_redoublants)) { $redoublant = "OUI"; } else { $redoublant = "NON"; } $pdf->SetFont("Times", "", 10); $d = new DateFR($eleve['DATENAISS']); $naiss = "Née le " . $d->getDate() . " " . $d->getMois(3) . "-" . $d->getYear() . " à " . $eleve['LIEUNAISS']; $pdf->WriteHTMLCell(0, 5, 47, $y + 20, $eleve['MATRICULE'] . " - " . $eleve['NOM'] . " " . $eleve['PRENOM']); $pdf->WriteHTMLCell(0, 5, 47, $y + 25, $naiss); $redo = "Redoublant : " . $redoublant; $pdf->WriteHTMLCell(0, 5, 155, $y + 20, $redo); $pdf->WriteHTMLCell(0, 5, 155, $y + 25, $classe['NIVEAUHTML'] . " Effectif : " . $effectif); $pdf->setFontSize(8); # Table header $corps = '<table border="0.5" cellpadding="0.5" style="line-height: 11px"><thead>' . '<tr style="text-align:center;font-weight:bold; line-height: 14px;background-color:#CCC">' . '<th border="0.5" width="' . $col1 . '%" style="text-align:left">Matières</th><th border="0.5" width="' . $col2 . '%">DP</th>' . '<th border="0.5" width="' . $col3 . '%">DH</th><th border="0.5" width="' . $col4 . '%">Moy.</th>' . '<th border="0.5" width="' . $col5 . '%">Coeff.</th><th border="0.5" width="' . $col6 . '%">Total</th>' . '<th border="0.5" width="' . $col7 . '%">Rang</th>' . '<th border="0.5" width="' . $col8 . '%">Moy.Cl</th>' . '<th border="0.5" width="' . $col9 . '%">Min/Max</th>' . '<th border="0.5" width="' . $col10 . '%">Appréciation</th></tr></thead><tbody>'; foreach ($groupe as $gp) { if (empty($gp)) { continue; } # Impression des lignes du bulletin par groupe $sumdp = 0; $sumdh = 0;
</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