<option value="">pas de sélection</option> <?php $requete_pe = ('SELECT * FROM '.$prefix_base.'edt_creneaux ORDER BY heuredebut_definie_periode, nom_definie_periode ASC'); $resultat_pe = mysqli_query($GLOBALS["mysqli"], $requete_pe) or die('Erreur SQL !'.$requete_pe.'<br />'.mysqli_error($GLOBALS["mysqli"])); while ( $data_pe = mysqli_fetch_array($resultat_pe)) { ?> <option value="<?php echo $data_pe['id_definie_periode']; ?>" <?php if(isset($dp_absence_eleve_erreur[$i]) and $dp_absence_eleve_erreur[$i] == $data_pe['id_definie_periode']) { ?>selected<?php } else { } ?>><?php echo $data_pe['nom_definie_periode']." ".heure_court($data_pe['heuredebut_definie_periode'])."-".heure_court($data_pe['heurefin_definie_periode']); ?></option><?php } ?> </select><br /> a<br /> <select name="ap_absence_eleve[<?php echo $i; ?>]"> <option value="">pas de sélection</option> <?php $requete_pe = ('SELECT * FROM '.$prefix_base.'edt_creneaux ORDER BY heuredebut_definie_periode, nom_definie_periode ASC'); $resultat_pe = mysqli_query($GLOBALS["mysqli"], $requete_pe) or die('Erreur SQL !'.$requete_pe.'<br />'.mysqli_error($GLOBALS["mysqli"])); while ( $data_pe = mysqli_fetch_array($resultat_pe)) { ?> <option value="<?php echo $data_pe['id_definie_periode']; ?>" <?php if(isset($dp_absence_eleve_erreur[$i]) and $dp_absence_eleve_erreur[$i] == $data_pe['id_definie_periode']) { ?>selected<?php } else { } ?>><?php echo $data_pe['nom_definie_periode']." ".heure_court($data_pe['heuredebut_definie_periode'])."-".heure_court($data_pe['heurefin_definie_periode']); ?></option><?php } ?> </select> </td><?php } else { ?> IDEM <?php } ?> <td><?php if(($mode === "classe" and $i === '0') or $mode != "classe") { ?> motif<br /> <select name="motif_absence_eleve[<?php echo $i; ?>]"> <?php $resultat_liste_motif = mysqli_query($GLOBALS["mysqli"], $requete_liste_motif) or die('Erreur SQL !'.$requete_liste_classe.'<br />'.mysqli_error($GLOBALS["mysqli"])); while ( $data_liste_motif = mysqli_fetch_array($resultat_liste_motif)) { ?> <option value="<?php echo $data_liste_motif['init_motif_absence']; ?>" <?php if(isset($motif_absence_eleve[$i]) and $motif_absence_eleve[$i] === $data_liste_motif['init_motif_absence']) { ?>selected="selected"<?php } ?>><?php echo $data_liste_motif['init_motif_absence']." - ".$data_liste_motif['def_motif_absence']; ?></option> <?php } ?> </select><br /> justification<br /> <select name="justify_absence_eleve[<?php echo $i; ?>]">
)AND ( '".$d_heure_absence_eleve."' BETWEEN d_heure_absence_eleve AND a_heure_absence_eleve OR '".$a_heure_absence_eleve."' BETWEEN d_heure_absence_eleve AND a_heure_absence_eleve OR d_heure_absence_eleve BETWEEN '".$d_heure_absence_eleve."' AND '".$a_heure_absence_eleve."' OR a_heure_absence_eleve BETWEEN '".$d_heure_absence_eleve."' AND '".$a_heure_absence_eleve."' )"; $cpt_retards = old_mysql_result(mysqli_query($GLOBALS["mysqli"], $requete_retards),0); if($cpt_retards != '0') { $pass = '******'; } if ($pass === '0') { ?> <label for="active_retard_eleve<?php echo $cpt_eleve; ?>" class="invisible no_print">Retard</label> <input type="checkbox" id="active_retard_eleve<?php echo $cpt_eleve; ?>" name="active_retard_eleve[<?php echo $cpt_eleve; ?>]" value="1" onclick="getHeure(active_retard_eleve<?php echo $cpt_eleve; ?>,heure_retard_eleve<?php echo $cpt_eleve; ?>,'liste_absence_eleve')" /> <label for="heure_retard_eleve<?php echo $cpt_eleve; ?>" class="invisible no_print">heure retard</label> <input type="text" id="heure_retard_eleve<?php echo $cpt_eleve; ?>" name="heure_retard_eleve[<?php echo $cpt_eleve; ?>]" size="3" maxlength="8" value="<?php echo heure_court($heuredebut_definie_periode); ?>" /> <?php } else { ?> En retard<input id="active_retard_eleve<?php echo $cpt_eleve; ?>" name="active_retard_eleve[<?php echo $cpt_eleve; ?>]" value="0" type="hidden" /> <?php } echo"\n</td>\n"; } // if (getSettingValue("renseigner_retard") == "y") //echo"\n</td>\n"; //======================== fin de la saisie des retards ================================================== //======================== début de la saisie des Repas ================================================== // On vérifie que le professeur est autorisé à renseigner Les Repas if (getSettingValue("renseigner_Repas") == "y") { echo '<td class="td_abs_retard">';