Пример #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);
 }
Пример #2
0
<table class="dataTable" id="punitionTable">
    <thead><th>Date</th><th>El&egrave;ves</th><th>Puni par</th><th>Type</th><th>Motif</th><th>Dur&eacute;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() . "' />&nbsp;&nbsp;";
    echo "<td><img style ='cursor:pointer' src = '" . img_delete() . "' onclick=\"supprimerPunition('" . $p['IDPUNITION'] . "')\" />&nbsp;&nbsp;";
    echo "<img style ='cursor:pointer' src = '" . img_print() . "' onclick = \"printPunition('" . $p['IDPUNITION'] . "')\" /></td></tr>";
}
?>
</tbody>
</table>
Пример #3
0
<?php

$y = PDF_Y;
$pdf->AddPage();
$pdf->SetPrintHeader(false);
$x = PDF_X;
$middle = PDF_MIDDLE;
$pdf->WriteHTMLCell(0, 0, $middle - 35, $y, '<b>FICHE DE SUIVI PERIODIQUE DES ELEVES</b>');
$pdf->SetFont("Times", "", 8);
$pdf->WriteHTMLCell(0, 5, $middle - 10, $y + 6, '<i>' . $sequence['LIBELLEHTML'] . '</i>');
$pdf->WriteHTMLCell(0, 5, $x, $y + 10, '<b>Enseignant titulaire : </b>');
$pdf->WriteHTMLCell(0, 5, $x + 150, $y + 5, 'Classe : ' . $classe['NIVEAUHTML']);
$pdf->WriteHTMLCell(0, 5, $x + 150, $y + 10, 'Effectif : ' . count($eleves));
$col = [3, 24, 8, 4, 4, 4, 4];
$i = 1;
$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&eacute;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']);
Пример #4
0
 $pdf->setFont("Times", "", 10);
 $corps = '<p style="text-align:center;margin:0; padding:0">INSTITUT POLYVALENT WAGUE<br/>
         BP : 5062, Yaound&eacute; / CAMEROUN<br/>
         T&eacute;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&ccedil;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&eacute;l : ' . $operation['PORTABLEREP'];
 $pdf->WriteHTMLCell(0, 0, $x, $y + 50, $infosresp);
Пример #5
0
<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>";
}
Пример #6
0
<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() . " &agrave; " . $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() . "' />" . "&nbsp;&nbsp;&nbsp;<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({
Пример #7
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&eacute;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();
Пример #8
0
?>
</td>
                <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&eacute;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&eacute;l&eacute;phone : </td><td><?php 
echo $personnel['TELEPHONE'];
?>
</td>
            </tr>
Пример #9
0
<table class="dataTable" id="payementTable">
    <thead><tr><th>N°</th><th>El&egrave;ves</th><th>Date</th>
            <th>Pay&eacute; ? </th><th>R&eacute;alis&eacute; par</th>
            <th></th></tr>
    </thead>
    <tbody>
        <?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'] . "')\" />&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>";
        }
Пример #10
0
 # Le cadre pour la photo
 $photo = SITE_ROOT . "public/photos/eleves/" . $rang['PHOTOEL'];
 if (!empty($rang['PHOTOEL']) && file_exists(ROOT . DS . "public" . DS . "photos" . DS . "eleves" . DS . $rang['PHOTOEL'])) {
     //ROOT . DS . "public" . DS . "photos" . DS . "eleves" . DS .
     $pdf->Image($photo, 15, $y, 20, 18, '', '', 'T', false, 300, '', false, false, 1, false, false, false);
 } else {
     $pdf->WriteHTMLCell(20, 18, 15, $y, '<br/><br/>PHOTO', 1, 2, false, true, 'C');
 }
 $pdf->Rect(37, $y, 160, 13, 'DF');
 if (in_array($rang['IDELEVE'], $array_of_redoublants)) {
     $redoublant = "OUI";
 } else {
     $redoublant = "NON";
 }
 $pdf->SetFont("Times", "", 9);
 $d = new DateFR($rang['DATENAISSEL']);
 $matricule = 'Matricule&nbsp;: <b>' . $rang['MATRICULEEL'] . '</b>';
 $pdf->WriteHTMLCell(0, 5, 37, $y, $matricule);
 $nom = 'Nom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <b>' . $rang['NOMEL'] . " " . $rang['PRENOMEL'] . ' ' . $rang['AUTRENOMEL'] . '</b>';
 $pdf->WriteHTMLCell(0, 5, 37, $y + 4, $nom);
 $naiss = "N&eacute; ";
 if ($rang['SEXEEL'] === "F") {
     $naiss = "N&eacute;e ";
 }
 $naiss .= "le &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <b>" . $d->getDate() . " " . $d->getMois(3) . "-" . $d->getYear();
 if (!empty($rang['LIEUNAISSEL'])) {
     $naiss .= " &agrave; " . $rang['LIEUNAISSEL'];
 }
 $naiss .= '</b>';
 $pdf->WriteHTMLCell(0, 5, 37, $y + 8, $naiss);
 #Adresse
Пример #11
0
$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&eacute;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();
Пример #12
0
<?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&eacute;n&eacute;ration &eacute;tat : " . $d->getDate() . "-" . $d->getMois(3) . "-" . $d->getYear(2) . "<br/>" . "P&eacute;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&eacute;f.Caisse</th>
				<th align="center" style="border-top: 1px solid #000;border-bottom: 1px solid #000;vertical-align:bottom" width ="' . $col[2] . '%">R&eacute;f. transaction</th>
				<th align="center" style="border-top: 1px solid #000;border-bottom: 1px solid #000" width ="' . $col[3] . '%">Libell&eacute;</th>
				<th align="center" style="border-top: 1px solid #000;border-bottom: 1px solid #000" width ="' . $col[4] . '%">D&eacute;bit</th>
                                <th align="center" style="border-top: 1px solid #000;border-bottom: 1px solid #000" width ="' . $col[5] . '%">Cr&eacute;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;
Пример #13
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&eacute;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&eacute;quences</td>
        <td border="1"  width ="' . $cols[1] . '%">Mati&egrave;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&eacute;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();
Пример #14
0
$col[3] = 16;
$col[4] = 16;
$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);
    }
Пример #15
0
</div>
<?php 
}
?>

<table class="dataTable" id="tableNotes">
    <thead><th>Date</th><th>P&eacute;riode</th><th><img src="<?php 
echo img_lock();
?>
" /></th>
    <th>Mati&egrave;re - classe</th><th>Coeff.</th><th>Libell&eacute; 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'] . "')\" />&nbsp;&nbsp;";
    echo "<img style='cursor:pointer' src='" . img_print() . "' onclick=\"impression(" . $n['IDNOTATION'] . ")\" />&nbsp;&nbsp;";
    if (isAuth(407) && $n['NOTATIONVERROUILLER'] != 1) {
        echo "<img style='cursor:pointer' src='" . img_edit() . "' onclick=\"editNotation(" . $n['IDNOTATION'] . ")\" />&nbsp;&nbsp;";
    } else {
        echo "<img style='cursor:pointer' src='" . img_edit_disabled() . "' />&nbsp;&nbsp;";
    }
    if ($n['NOTATIONVERROUILLER'] == 1) {
Пример #16
0
                {data: "ACTION", width: "7%"}
            ]
        });
    });

</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&eacute;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 "&nbsp;&nbsp;<img style='cursor:pointer' src='" . img_delete() . "' " . "onclick=\"document.location='" . Router::url("eleve", "delete", $el['IDELEVE']) . "'\" />";
    } else {
        echo "&nbsp;&nbsp;<img style='cursor:pointer' src='" . img_delete_disabled() . "' />";
    }
Пример #17
0
$pdf->AddPage();
$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&acirc;t &agrave; l\'&eacute;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&eacute;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&eacute;nom</th>' . '<th width="' . $w[2] . '%" border="0.5">Mati&egrave;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>';
Пример #18
0
<?php

$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&eacute;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>&egrave;re</sup>H</th>';
    } else {
        $corps .= '<th border ="0.5" align="center" width="7%">' . $i . '<sup>&egrave;me</sup>H</th>';
    }
}
$corps .= '<th border="0.2" width="10%">Total</th></tr></thead><tbody>';
$date = $datedebut;
$totaux = 0;
Пример #19
0
<?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&eacute;<b>  Mme WACGUE Gis&egrave;le, ' . 'Directrice de l\'Institut Polyvalent WAGU&Eacute;</b><br/>' . 'Certifie par la pr&eacute;sente que :<br/> ' . '<b>' . ($eleve['SEXE'] == "M" ? "M. " : "Mlle") . ' ' . $eleve['NOM'] . ' ' . $eleve['PRENOM'] . ' ' . $eleve['AUTRENOM'] . '</b><br/>' . 'N&eacute;(e) le  ' . $d->getDate() . ' ' . $d->getMois() . ' ' . $d->getYear() . ' ' . '&agrave;  ' . $eleve['LIEUNAISS'] . ' ' . 'est inscrit(e) dans les r&eacute;gistres de mon &eacute;tablissement pour le compte de l\'ann&eacute;e scolaire ' . $anneescolaire . ' en classe de  <b>' . $classe['NIVEAUHTML'] . '</b><br/>' . 'Sous le num&eacute;ro matricule : ' . $eleve['MATRICULE'] . '<br/><br/>' . 'En fois de quoi la pr&eacute;sente attestation est &eacute;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&eacute; de ce document,
        merci d\'appeler l\'IPW AU 699 58 40 78</b>');
$pdf->Output();
Пример #20
0
<table class="dataTable" id="tableSuivi">
    <thead><tr><th>Jour/Date</th>
            <?php 
for ($i = 1; $i <= MAX_HORAIRE + 1; $i++) {
    if ($i === 1) {
        echo "<th>1<sup>&egrave;re</sup>H</th>";
    } else {
        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) {
    $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>';
Пример #21
0
<?php

$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>';
Пример #22
0
<table class='dataTable' id='tableNotes'>
    <thead><tr><th>S&eacute;quences</th><th>Mati&egrave;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'] . "')\" />&nbsp;&nbsp;";
    if (isAuth(407) && $n['VERROUILLER'] != 1) {
        echo "<img src='" . img_edit() . "' onclick ='showEditerNote(" . $n['IDNOTE'] . ", this)' style='cursor:pointer' />&nbsp;&nbsp;";
    } else {
        echo "<img src='" . img_edit_disabled() . "' style='cursor:pointer' />&nbsp;&nbsp;";
    }
    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%"},
Пример #23
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,
Пример #24
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');
     }
 }
Пример #25
0
<table class="dataTable" id="tableEleves">
    <thead><tr><th>Matricule</th><th>Noms et Pr&eacute;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%"},
Пример #26
0
# Le cadre pour la photo
$photo = SITE_ROOT . "public/photos/eleves/" . $eleve['PHOTO'];
if (!empty($eleve['PHOTO']) && file_exists(ROOT . DS . "public" . DS . "photos" . DS . "eleves" . DS . $eleve['PHOTO'])) {
    //ROOT . DS . "public" . DS . "photos" . DS . "eleves" . DS .
    $pdf->Image($photo, 15, $y + 12, 20, 20, '', '', 'T', false, 300, '', false, false, 1, false, false, false);
} else {
    $pdf->WriteHTMLCell(20, 20, 15, $y + 12, '<br/><br/>PHOTO', 1, 2, false, true, 'C');
}
$pdf->Rect(37, $y + 12, 160, 20, 'DF');
if (in_array($eleve['IDELEVE'], $array_of_redoublants)) {
    $redoublant = "OUI";
} else {
    $redoublant = "NON";
}
$pdf->SetFont("Times", "", 9);
$d = new DateFR($eleve['DATENAISS']);
$matricule = 'Matricule&nbsp;: <b>' . $eleve['MATRICULE'] . '</b>';
$pdf->WriteHTMLCell(0, 5, 37, $y + 13, $matricule);
$nom = 'Nom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <b>' . $eleve['NOM'] . " " . $eleve['PRENOM'] . ' ' . $eleve['AUTRENOM'] . '</b>';
$pdf->WriteHTMLCell(0, 5, 37, $y + 17, $nom);
$naiss = "N&eacute; ";
if ($eleve['SEXE'] === "F") {
    $naiss = "N&eacute;e ";
}
$naiss .= "le &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <b>" . $d->getDate() . " " . $d->getMois(3) . "-" . $d->getYear() . " &agrave; " . $eleve['LIEUNAISS'] . '</b>';
$pdf->WriteHTMLCell(0, 5, 37, $y + 21, $naiss);
#Adresse
#classe
$classelib = 'Classe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp; <b>' . $classe['NIVEAUHTML'] . '</b>';
$pdf->WriteHTMLCell(50, 5, 165, $y + 13, $classelib);
$effectiflib = 'Effectif&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp; <b>' . $effectif . '</b>';
Пример #27
0
<?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&ccedil;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>
Пример #28
0
        <span style="display:inline-block; width: 100px"><?php 
    echo $m['MESSAGE'];
    ?>
</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 () {
Пример #29
0
$pdf->WriteHTMLCell(0, 5, 85, $y, $annee);
$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&eacute;e le " . $d->getDate() . " " . $d->getMois(3) . "-" . $d->getYear() . " &agrave; " . $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&egrave;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&eacute;ciation</th></tr></thead><tbody>';
foreach ($groupe as $gp) {
    if (empty($gp)) {
        continue;
    }
    # Impression des lignes du bulletin par groupe
    $sumdp = 0;
Пример #30
0
    }
    ?>
</span>

</div>
<?php 
}
?>

<table class="dataTable" id="tableOperation">
    <thead><tr><th>Date</th><th>El&egrave;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&eacute;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'])) {