} 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>"; if (peutValiderLesOperationsCaisses()) { if ($op['VALIDE'] == 0 && !empty($op['PERCUPAR'])) { echo "<td align='center'><img onclick=\"validerOperation(" . $op['IDCAISSE'] . ")\" " . "style='cursor:pointer' src='" . img_valider() . "' /></td>"; } else { echo "<td align='center'><img style='cursor:pointer' src='" . img_valider_disabled() . "' /></td>"; } } else { echo "<td align='center'><img style='cursor:pointer' src='" . img_valider_disabled() . "' /></td>"; } echo "</tr>"; } ?> </tbody> </table> <script> $(document).ready(function () { if (!$.fn.DataTable.isDataTable("#tableOperation")) { $("#tableOperation").DataTable({
} 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'>"; if (peutValiderLesOperationsCaisses()) { if ($op['VALIDE'] == 0 && !empty($op['PERCUPAR'])) { echo "<img onclick=\"validerOperation(" . $op['IDCAISSE'] . ")\" " . "style='cursor:pointer' src='" . img_valider() . "' /> "; } else { echo "<img style='cursor:pointer' src='" . img_valider_disabled() . "' /> "; } } else { echo "<img style='cursor:pointer' src='" . img_valider_disabled() . "' /> "; } if (peutSupprimerLesOperationsCaisses()) { echo "<img style='cursor:pointer' src='" . img_delete() . "' " . "onclick=\"document.location='" . Router::url("caisse", "delete", $op['IDCAISSE']) . "'\" />"; } else { echo "<img src='" . img_delete_disabled() . "' />"; } echo "</td></tr>"; $montant += intval($op['MONTANT']); } ?>
<table class="dataTable" id="payementTable"> <thead><tr><th>N°</th><th>Elèves</th><th>Date</th> <th>Payé ? </th><th>Réalisé 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'] . "')\" /> "; } 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>"; } }
?> " /></th> <th></th></tr></thead><tbody> <?php $i = 1; foreach ($classes as $cl) { echo "<tr><td>" . $i . "</td><td>" . $cl['NIVEAUHTML'] . ' ' . $cl['LIBELLE'] . "</td>"; if (!is_null($cl['IDVERROUILLAGECLASSE'])) { echo "<td align='center'><input type='checkbox' checked disabled /></td>"; } else { echo "<td align='center'><input type='checkbox' disabled /></td>"; } if (!is_null($cl['IDVERROUILLAGECLASSE'])) { echo "<td align='center'><img style='cursor:pointer' src='" . img_valider_disabled() . "' /> " . "<img src='" . img_delete() . "' style='cursor:pointer' onclick=\"deverrouiller(" . $cl['IDCLASSE'] . ", " . $cl['SEQUENCE'] . ")\" /></td>"; } else { echo "<td align='center'><img src='" . img_valider() . "' style='cursor:pointer' " . "onclick=\"verrouiller(" . $cl['IDCLASSE'] . ")\" /> \n <img style='cursor:pointer' src='" . img_delete_disabled() . "' /></td>"; } echo "</tr>"; $i++; } ?> </tbody> </table> <script> $(document).ready(function () { if (!$.fn.DataTable.isDataTable("#classeTable")) { $("#classeTable").DataTable({ bInfo: false, paging: false, columns: [ {width: "7%"},
<table class="dataTable" id="droitTable"> <thead><tr><th>Date</th><th>Elève</th><th>Ref. Caisse</th><th>Description</th><th>Montant</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>"; echo "<td align='center'>"; if (isAuth(532)) { echo "<img style='cursor:pointer' src='" . img_valider() . "' " . "onclick=\"document.location='" . Router::url("caisse", "restaurer", $op['IDCAISSE']) . "'\" />"; } else { echo "<img src='" . img_valider_disabled() . "' />"; } echo "</td></tr>"; $montant += intval($op['MONTANT']); } ?> <tr><td></td><td style='font-weight: bold'>TOTAL</td><td></td><td></td> <td style="text-align: right"><?php echo moneyString($montant); ?> </td> <td></td></tr> </tbody> </table>
} elseif ($abs['ETAT'] === "E") { $class = "exclu"; } echo "<td class='{$class}'></td>"; if (!empty($abs['JUSTIFIER'])) { echo "<td align='center'><input type='checkbox' checked disabled /></td>"; } else { echo "<td align='center'><input type='checkbox' disabled /></td>"; } echo "<td align='center'>"; if (!empty($abs['JUSTIFIER'])) { echo "<img style='cursor:pointer' src = '" . img_valider_disabled() . "' /> "; echo "<img style='cursor:pointer' src = '" . img_delete() . "' " . "onclick = \"supprimerJustification('" . $abs['JUSTIFIER'] . "', '" . $abs['IDABSENCE'] . "')\" /> "; echo "<img style='cursor:pointer' src='" . img_print() . "' " . "onclick=\"printJustification('" . $abs['JUSTIFIER'] . "', '" . $abs['IDABSENCE'] . "')\" />"; } else { echo "<img style='cursor:pointer' src = '" . img_valider() . "' \n onclick = \"openFormJustification(this, '" . $abs['IDABSENCE'] . "');\" /> "; echo "<img style='cursor:pointer' src = '" . img_delete_disabled() . "' /> "; echo "<img style='cursor:pointer' src='" . img_print() . "' />"; } echo "</td></tr>"; $i++; } } } ?> </tbody> </table> <div id="justification-dialog-form" class="dialog" title="Justification" > <span style="width: 100%"><label>Motif de la justification : </label><input style="width: 100%" type="text" name="motif" /></span> <span style="width: 100%"><label>Description détaillé : </label> <textarea name="description" rows="3" cols="40" ></textarea></span>
" /></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>"; echo "<td>" . $n['MATIERELIBELLE'] . " - " . $n['CLASSELIBELLE'] . "</td><td align='right'>" . $n['COEFF'] . "</td>"; echo "<td>" . $n['DESCRIPTION'] . "</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 align='center'>"; if (isAuth(604) && $n['NOTATIONVERROUILLER'] != 1) { echo "<img style='cursor:pointer' src='" . img_valider() . "' onclick=\"btnVerrouiller(" . $n['IDNOTATION'] . ")\" /> "; } else { echo "<img style='cursor:pointer' src='" . img_valider_disabled() . "' /> "; } if ($n['NOTATIONVERROUILLER'] == 1 && isAuth(604)) { echo "<img style='cursor:pointer' src='" . img_delete() . "' onclick=\"supprimerVerrouillage(" . $n['IDNOTATION'] . ")\" />"; } else { echo "<img style='cursor:pointer' src='" . img_delete_disabled() . "' />"; } echo "</td></tr>"; } ?> </tbody> </table> <script> $(document).ready(function () {