Example #1
0
 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);
 }
Example #2
0
<table class="dataTable" id="fraisTable">
    <thead><tr><th>Description du frais scolaire</th><th>Montant</th><th>Ech&eacute;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'] . "')\" />&nbsp;&nbsp;";
    }
    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,
Example #3
0
$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>&egrave;re</sup>";
} else {
    $h = $absence['HORAIRE'] . "<sup>&egrave;me</sup>";
}
$pdf->WriteHTMLCell(0, 5, 20, 70 + $y, "Horaire de l'absence : <i>" . $h . " Heure</i>");
$corps = "Appel r&eacute;alis&eacute; par : <i>" . $appel['NOMREALISATEUR'] . ' ' . $appel['PRENOMREALISATEUR'] . "</i>";
if (!empty($appel['MODIFIERPAR'])) {
    $d->setSource($appel['DATEMODIF']);
    $corps .= " et modifi&eacute;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);
Example #4
0
</span>
    </div>
    <?php 
}
?>
<table class="dataTable" id="tableMessage">
    <thead><tr><th>Date d'envoi</th><th>Destinataires</th><th>Exp&eacute;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() . " &agrave " . $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'] . "')\" />&nbsp;&nbsp;";
    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
Example #5
0
 /**
  *  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&eacute; 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');
     }
 }
Example #6
0
}
?>
<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++;
Example #7
0
$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'] . "')\" />&nbsp;&nbsp; ";
        } else {
            echo "<img style='cursor:pointer' title='Vous ne disposez pas du droit de payement' " . "src = '" . img_valider_disabled() . "' />&nbsp;&nbsp;";
        }
        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() . "' />&nbsp;&nbsp;";
        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>
Example #8
0
#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&egrave;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&eacute;riode : ' . $notation['SEQUENCELIBELLE'] . '</p>');
$corps = '<table border="0.5" cellpadding="5"><tr style="text-align:center"><td rowspan="2">Effectif &eacute;valu&eacute;</td>' . '<td rowspan="2">Moyenne g&eacute;n&eacute;rale de la classe</td>' . '<td rowspan="2">Nombre de Moy >= 10</td>' . '<td colspan="2">Taux de r&eacute;ussite</td><td rowspan="2">Taux de r&eacute;ussite g&eacute;n&eacute;ral</td>' . '<td rowspan="2">Observation</td></tr>' . '<tr><td>Gar&ccedil;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
Example #9
0
</style>
<?php 
if (isset($deja)) {
    echo '<p style="color: #ff9999;text-align: center;margin:auto;width:100%;">Appel d&eacute;j&agrave; r&eacute;alis&eacute;<br/>';
    if (isAuth(320)) {
        echo "Proc&eacute;dez &agrave; <a href='" . Router::url("appel", "edit", $appel['IDAPPEL']) . "'>l'&eacute;dition ici</a>";
    } else {
        echo "Vous n'&ecirc;tes pas autoris&eacute;s &agrave effectuer une modification";
    }
    echo "</p>";
}
?>
<table class="tableAbsences">
    <thead><tr><th>N°</th><th>Noms & Pr&eacute;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>&egrave;re</sup>Heure</td>";
    } else {
        echo "<td>" . $h . "<sup>&egrave;me</sup>Heure</td>";
    }
}
# Ferme le tr de la ligne HEURES
echo "<td></td></tr>";
$i = 1;
Example #10
0
<table class="dataTable" id="scolariteTable">
    <thead><th>Date</th><th>Description du frais</th><th>Montant du frais</th><th>Montant pay&eacute;</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>
Example #11
0
$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&eacute;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\'&eacute;l&egrave;ve</b>');
$d = new DateFR($eleve['DATENAISS']);
$corps = '<table cellpadding="2">';
$corps .= '<tr><td width="' . $col[1] . '%">Nom de l\'&eacute;l&egrave;ve </td><td>: ' . $eleve['NOM'] . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Pr&eacute;nom (s) de l\'&eacute;l&egrave;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&eacute;min") . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Etablissement de l\'ann&eacute;e pr&eacute;c&eacute;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&eacute;nom</td><td>: ' . $resp['NOM'] . ' ' . $resp['PRENOM'] . '</td></tr>' . '<tr><td width="' . $col[1] . '%">Parent&eacute; </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&eacute;sidence : </td><td>' . $eleve['RESIDENCE'] . '</td></tr>' . '<tr><td>Fr&egrave;res et s&oelig;urs &agrave; IPW : </td><td>' . $eleve['FRERESOEUR'] . '</td></tr>';
$corps .= '</table>';
$pdf->WriteHTMLCell(0, 5, 11, $y + 155, $corps);
Example #12
0
        echo "<th>" . $i . "<sup>&egrave;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++;
                    }
Example #13
0
<?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>
Example #14
0
 /**
  *  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&eacute; 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');
 }
Example #15
0
$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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . 'Cher parent de l\'&eacute;l&egrave;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&eacute;e ce <b>' . $d->getJour() . ' ' . $d->getDate() . ' ' . $d->getMois() . ' ' . $d->getYear() . '</b>. ' . 'Pass&eacute; ce delai, l\'administration de l\'&eacute;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&egrave;re amiti&eacute;s pour votre bonne compr&eacute;hension.</b>';
        $pdf->WriteHTMLCell(0, 5, $x + 50, $y + 15, $corps);
        $pdf->WriteHTMLCell(0, 5, $x + 120, $y + 20, 'Fait &agrave; 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();