Esempio n. 1
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++;
                }
                if ($i == 4) {
Esempio n. 2
0
 $corps .= '<tr>';
 if ($i < 10) {
     $corps .= '<td border ="0.5"  width ="3%">0' . $i . '</td>';
 } else {
     $corps .= '<td border ="0.5"  width ="3%">' . $i . '</td>';
 }
 $appelation = $el['NOM'] . ' ' . $el['PRENOM'];
 if (strlen($appelation) > 15) {
     $corps .= '<td border ="0.5"  width ="23%" style="font-size:6px">' . $el['NOM'] . ' ' . $el['PRENOM'] . '.</td>';
 } else {
     $corps .= '<td border ="0.5"  width ="23%">' . $el['NOM'] . ' ' . $el['PRENOM'] . '.</td>';
 }
 $corps .= '<td border ="0.5"  width ="5%" align="center" >' . $el['SEXE'] . '</td>';
 $total = 0;
 for ($j = 1; $j <= $l * 5; $j++) {
     $abs = estAbsent($el['IDELEVE'], $absences, $j);
     $etat = "";
     $fond = "";
     if (!empty($abs['JUSTIFIER'])) {
         $etat = $justifier;
         $fond = "background-color:#ffff66";
     } elseif (!is_null($abs) && $abs['ETAT'] === "A") {
         $etat = $absent;
         $total++;
         $fond = "background-color:#ff9999";
     } elseif (!is_null($abs) && $abs['ETAT'] === "R") {
         $etat = $retard;
         $fond = "background-color:#99ffff";
     } elseif (!is_null($abs) && $abs['ETAT'] === "E") {
         $etat = $exclu;
         $fond = "background-color:#ccccff";
Esempio n. 3
0
    } 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;
$t1 = $t2 = $t3 = $t4 = $t5 = $t6 = $t7 = $t8 = 0;
while ($date <= $datefin) {
    $abs = estAbsent($eleve['IDELEVE'], $absences, 0, $date);
    if (!is_null($abs)) {
        $total = 0;
        $d->setSource($date);
        $corps .= '<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($eleve['IDELEVE'], $absences, $i, $date);
            if (!empty($abs['JUSTIFIER'])) {
                $corps .= '<td style="background-color:#ffff66;text-align:center" width="7%">J</td>';
            } elseif ($abs['ETAT'] === "A") {
                $corps .= '<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++;
                }
                if ($i == 4) {