' /></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 title='Nombre de notification envoyé aux parents' align='center'>" . $n['NOTIFICATION'] . "</td>"; echo "<td>" . $n['BULLETIN'] . " - " . $n['NIVEAUHTML'] . "</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_phone_add() . "' onclick=\"notifierNotation(" . $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() . "' />"; } elseif (isAuth(409)) { echo " | <img style='cursor:pointer' src='" . img_delete() . "' onclick=\"supprimerNotation(" . $n['IDNOTATION'] . ")\" />"; } else { echo "<img style='cursor:pointer' src='" . img_delete_disabled() . "' />"; } echo "</td></tr>"; }
<tbody> <?php $i = 1; foreach ($eleves as $el) { $tab = getNbAbsencesResumees($el['IDELEVE'], $absences); echo "<tr><td>" . $i . "</td><td>" . $el['NOM'] . " " . $el['PRENOM'] . "</td>"; # Phone echo "<td title='Nombre de notification deja envoyees pour ces absences' align='center'>" . $tab[4] . "</td>"; # Utile pour calculer array_sum uniquement a partir des absence(j et non just), retard et exclusion $tab[4] = 0; echo "<td class='absent' style='text-align:center'>" . $tab[0] . " hrs</td>"; echo "<td class='justifier' style='text-align:center'>" . $tab[1] . " hrs</td>"; echo "<td class='retard' style='text-align:center'>" . $tab[2] . " hrs</td>"; echo "<td class='exclu' style='text-align:center'>" . $tab[3] . " hrs</td>"; echo "<td style='text-align:center;font-weight:bold'>" . array_sum($tab) . "</td>"; echo "<td align='center'><img style='cursor:pointer' src='" . img_phone_add() . "' " . "onclick=\"notifyAbsence(" . $el['IDELEVE'] . "," . $tab[0] . "," . $tab[1] . "," . $tab[2] . "," . $tab[3] . ");\" /></td></tr>"; $i++; } ?> </tbody> </table> <script> $(document).ready(function () { if (!$.fn.DataTable.isDataTable("#tableAbsences")) { $("#tableAbsences").DataTable({ bInfo: false, paging: false, columns: [ {"width": "3%"}, null,
} elseif ($abs['ETAT'] === "R" && empty($abs['JUSTIFIER'])) { echo "<td class='retard'></td>"; } elseif ($abs['ETAT'] === "E" && empty($abs['JUSTIFIER'])) { echo "<td class='exclu'></td>"; } elseif (!empty($abs['JUSTIFIER'])) { echo "<td class='justifier'></td>"; } else { echo "<td></td>"; # Ne dois jamais arriver ici } if ($abs !== null) { $nbNotification += $abs['NOTIFICATION']; } } # Pour l'envoi de SMS echo "<td align='center' title='Nombre de notification envoyee'>" . "<img style='cursor:pointer' src='" . img_phone_add() . "' " . "onclick=\"notifyDailyAbsence(" . $el['IDELEVE'] . "," . $appel['IDAPPEL'] . "," . $jour . ")\" />(" . $nbNotification . ")</td>"; echo "</tr>"; $i++; } ?> </tbody> </table> <p style="color: #0033cc;margin: 0;padding: 0; text-align: right; margin-top: 5px; margin-right: 10px;"> Appel déjà réalisé par <?php echo $appel['NOMREALISATEUR'] . " " . $appel['PRENOMREALISATEUR']; if (isAuth(320)) { echo " | Editer <a href='" . Router::url("appel", "edit", $appel['IDAPPEL']) . "'>ici</a>"; } if (isAuth(324)) { echo " | Supprimer <a href='" . Router::url("appel", "delete", $appel['IDAPPEL']) . "'>ici</a>";
echo "<td>" . $ens['NOM'] . " " . $ens['PRENOM'] . "</td>"; for ($j = 1; $j <= HEURE_TRAVAIL; $j++) { $abs = enseignantAbsent($ens['IDPERSONNEL'], $absences, $j); if ($abs === null) { echo "<td class='present'></td>"; } elseif ($abs['ETAT'] === "A") { echo "<td class='absent'></td>"; } elseif ($abs['ETAT'] === "R") { echo "<td class='retard' align='center'>" . $abs['RETARD'] . "</td>"; } else { echo "<td></td>"; # Ne dois jamais arriver ici } } # Pour l'envoi de SMS echo "<td align='center' title='Nombre de notification envoyee'>" . "<img style='cursor:pointer' src='" . img_phone_add() . "' </td>"; echo "</tr>"; $i++; } ?> </tbody> </table> <p style="color: #0033cc;margin: 0;padding: 0; text-align: right; margin-top: 5px; margin-right: 10px;"> Appel déjà réalisé par <?php echo $appel['NOMREALISATEUR'] . " " . $appel['PRENOMREALISATEUR']; if (isAuth(320)) { echo " | Editer <a href='" . Router::url("enseignant", "discipline", ["edit", $appel['IDAPPELENSEIGNANT']]) . "'>ici</a>"; } if (isAuth(324)) { echo " | Supprimer <a href='" . Router::url("enseignant", "appel", $appel['IDAPPELENSEIGNANT']) . "'>ici</a>";