} echo 'border-width:1px;" alt="" name="order" value="asc_date_modification" onclick="this.form.order.value = this.value"/>'; echo '<input type="image" src="../images/down.png" title="descendre" style="vertical-align: middle;width:15px; height:15px; '; if ($order == "des_date_modification") { echo "border-style: solid; border-color: red;"; } else { echo "border-style: solid; border-color: silver;"; } echo 'border-width:1px;" alt="" name="order" value="des_date_modification" onclick="this.form.order.value = this.value"/>'; echo '</span>'; //echo '</nobr> '; echo '<span style="white-space: nowrap;"> '; //echo '<nobr>'; echo '<input type="hidden" value="y" name="filter_checkbox_posted"/>'; echo '<input type="checkbox" value="y" name="filter_date_modification" onchange="submit()"'; if (isFiltreRechercheParam('filter_date_modification') != null && getFiltreRechercheParam('filter_date_modification') == 'y') { echo "checked"; } echo '/> Modifié'; echo '</span>'; //echo '</nobr>'; echo '</th>'; //en tete commentaire echo "\n\t<th>Com.</th>\n</tr>\n</thead>\n<tbody>"; $ligne_traitement = array(); $cpt_traitement = 0; foreach ($results as $traitement) { $ligne_traitement[$cpt_traitement] = ""; //$traitement = new AbsenceEleveTraitement(); if ($results->getPosition() % 2 == '1') { $background_couleur = "rgb(220, 220, 220);";
foreach ($results as $saisie) { if ($results->getPosition() %2 == '1') { $background_couleur="rgb(220, 220, 220);"; } else { $background_couleur="rgb(210, 220, 230);"; } echo "<tr style='background-color :$background_couleur'>\n"; echo '<td>'; echo "<a href='visu_saisie.php?id_saisie=".$saisie->getPrimaryKey()."' style='display: block; height: 100%; color: #330033'> "; echo $saisie->getId(); echo "</a>"; echo '</td>'; if (getFiltreRechercheParam('filter_saisies_supprimees') == 'y') { echo '</td>'; echo '<td>'; echo "<a href='visu_saisie.php?id_saisie=".$saisie->getPrimaryKey()."' style='display: block; height: 100%; color: #330033'>\n"; echo (strftime("%a %d/%m/%Y %H:%M", $saisie->getDeletedAt('U'))); $suppr_utilisateur = UtilisateurProfessionnelQuery::create()->findPK($saisie->getDeletedBy()); if ($suppr_utilisateur != null) { echo ' par '. $suppr_utilisateur->getCivilite().' '.$suppr_utilisateur->getNom().' '.mb_substr($suppr_utilisateur->getPrenom(), 0, 1).'.';; } echo "</a>"; echo '</td>'; } echo '<td>'; if ($saisie->getEleve() != null) { echo "<table style='border-spacing:0px; border-style : none; margin : 0px; padding : 0px; font-size:100%; width:100%'>";
echo "border-style: solid; border-color: silver;"; } echo 'border-width:1px;" alt="" name="order" value="asc_date_modification" onclick="this.form.order.value = this.value"/>'; echo '<input type="image" src="../images/down.png" title="descendre" style="vertical-align: middle;width:15px; height:15px; '; if ($order == "des_date_modification") { echo "border-style: solid; border-color: red;"; } else { echo "border-style: solid; border-color: silver;"; } echo 'border-width:1px;" alt="" name="order" value="des_date_modification" onclick="this.form.order.value = this.value"/>'; echo '</span><br/>'; //echo '</nobr> '; echo '<span style="white-space: nowrap;"> '; //echo '<nobr>'; echo '<input type="checkbox" value="y" name="filter_date_modification" onchange="submit()"'; if (getFiltreRechercheParam('filter_date_modification') == 'y') { echo "checked"; } echo '/> modifié'; echo '</span>'; //echo '</nobr>'; echo '</th>'; //en tete commentaire echo '<th>'; echo 'com.'; echo '</th>'; echo '</tr>'; echo '</thead>'; //echo '<tbody>'; $results = $notifications_col->getResults(); if (count($results)) {
if (isFiltreRechercheParam('filter_date_debut_saisie_debut_plage')) { $tmp_tab=explode(" ",getFiltreRechercheParam('filter_date_debut_saisie_debut_plage')); echo "&date_absence_eleve_debut=".$tmp_tab[0]; } elseif (isFiltreRechercheParam('filter_date_debut_saisie_fin_plage')) { $tmp_tab=explode(" ",getFiltreRechercheParam('filter_date_debut_saisie_fin_plage')); echo "&date_absence_eleve_debut=".$tmp_tab[0]; } if (isFiltreRechercheParam('filter_date_fin_saisie_fin_plage')) { $tmp_tab=explode(" ",getFiltreRechercheParam('filter_date_fin_saisie_fin_plage')); echo "&date_absence_eleve_fin=".$tmp_tab[0]; } if (isFiltreRechercheParam('filter_date_fin_saisie_debut_plage')) { $tmp_tab=explode(" ",getFiltreRechercheParam('filter_date_fin_saisie_debut_plage')); echo "&date_absence_eleve_fin=".$tmp_tab[0]; } echo "'>"; echo $eleve_saisie_hydrated->getAbsenceEleveSaisies()->count(); echo " saisie"; if ($eleve_saisie_hydrated->getAbsenceEleveSaisies()->count() > 1) { echo "s"; } echo "</a>"; } echo '</td>'; $type_col = new PropelObjectCollection(); $justif_col = new PropelObjectCollection(); $motif_col = new PropelObjectCollection();
} else { if ($type_selection == 'nom_eleve') { $query->filterByNomOrPrenomLike($nom_eleve); } elseif ($current_groupe != null) { $query->useJEleveGroupeQuery()->filterByIdGroupe($current_groupe->getId())->enduse(); } elseif ($current_aid != null) { $query->useJAidElevesQuery()->filterByIdAid($current_aid->getId())->enduse(); } elseif ($current_classe != null) { $query->useJEleveClasseQuery()->filterByIdClasse($current_classe->getId())->enduse(); } else { //rien à faire } } if ($type_selection != 'id_eleve' && $type_selection != 'nom_eleve') { //on filtre if (isFiltreRechercheParam('filter_regime') != null && getFiltreRechercheParam('filter_regime') != -1) { $query->filterByRegime($filter_regime); } } $eleve_col = $query->where('Eleve.DateSortie<?', '0')->orWhere('Eleve.DateSortie is NULL')->orWhere('Eleve.DateSortie>?', $dt_date_absence_eleve->format('U'))->distinct()->paginate($page_number, $item_per_page); ?> <div style="text-align: center"> <!-- <p class="expli_page choix_fin"> --> <form dojoType="dijit.form.Form" action="./absences_du_jour.php" name="absences_du_jour" id="absences_du_jour" method="post" style="width: 100%;"> <p class="expli_page choix_fin"> <input type="hidden" name="type_selection" value="<?php echo $type_selection; ?> "/> <input type="hidden" name="nom_eleve" value="<?php