Exemple #1
0
    } 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'])) {
            echo "&nbsp;&nbsp;<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 "&nbsp;&nbsp;<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({
Exemple #2
0
    } 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'])) {
            echo "&nbsp;&nbsp;<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 "&nbsp;&nbsp;<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() . "' />&nbsp;&nbsp;";
        } else {
            echo "<img style='cursor:pointer' src='" . img_valider_disabled() . "' />&nbsp;&nbsp;";
        }
    } else {
        echo "<img style='cursor:pointer' src='" . img_valider_disabled() . "' />&nbsp;&nbsp;";
    }
    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']);
}
?>
Exemple #3
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>";
        }
    }
Exemple #4
0
?>
" /></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() . "' />&nbsp;&nbsp;" . "<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'] . ")\" />&nbsp;&nbsp;\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%"},
Exemple #5
0
<table class="dataTable" id="droitTable">
    <thead><tr><th>Date</th><th>El&egrave;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>
Exemple #6
0
            } 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() . "' />&nbsp;&nbsp;&nbsp;";
                echo "<img style='cursor:pointer' src = '" . img_delete() . "' " . "onclick = \"supprimerJustification('" . $abs['JUSTIFIER'] . "', '" . $abs['IDABSENCE'] . "')\" />&nbsp;&nbsp;";
                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'] . "');\"  />&nbsp;&nbsp;&nbsp;";
                echo "<img style='cursor:pointer' src = '" . img_delete_disabled() . "' />&nbsp;&nbsp;";
                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&eacute;taill&eacute; : </label>
        <textarea name="description" rows="3" cols="40" ></textarea></span>
Exemple #7
0
" /></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'] . ")\" />&nbsp;&nbsp;";
    } else {
        echo "<img style='cursor:pointer' src='" . img_valider_disabled() . "' />&nbsp;&nbsp;";
    }
    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 () {