<td> <select name="type_saisie" id="type_saisie"> <option value='NON_PRECISE' <?php if ($type != null && $type->getModeInterface() == 'NON_PRECISE') {echo "selected='selected'";} ?>>Type de saisie non précisé</option> <!--<option value='DEBUT_ABS' <?php if ($type != null && $type->getModeInterface() == 'DEBUT_ABS') {echo "selected='selected'";} ?>>Saisir le moment de debut de l'absence</option> <option value='FIN_ABS' <?php if ($type != null && $type->getModeInterface() == 'FIN_ABS') {echo "selected='selected'";} ?>>Saisir le moment de fin de l'absence</option> <option value='DEBUT_ET_FIN_ABS' <?php if ($type != null && $type->getModeInterface() == 'DEBUT_ET_FIN_ABS') {echo "selected='selected'";} ?>>Saisir le moment de debut et de fin</option> <option value='COMMENTAIRE_EXIGE' <?php if ($type != null && $type->getModeInterface() == 'COMMENTAIRE_EXIGE') {echo "selected='selected'";} ?>>Saisir un commentaire</option> --><option value='DISCIPLINE' <?php if ($type != null && $type->getModeInterface() == 'DISCIPLINE') {echo "selected='selected'";} ?>>Saisir un incident disciplinaire</option> <option value='CHECKBOX' <?php if ($type != null && $type->getModeInterface() == 'CHECKBOX') {echo "selected='selected'";} ?>><?php echo AbsenceEleveType::$LISTE_LABEL_TYPE_SAISIE[AbsenceEleveType::MODE_INTERFACE_CHECKBOX]?></option> <option value='CHECKBOX_HIDDEN' <?php if ($type != null && $type->getModeInterface() == 'CHECKBOX_HIDDEN') {echo "selected='selected'";} ?>><?php echo AbsenceEleveType::$LISTE_LABEL_TYPE_SAISIE[AbsenceEleveType::MODE_INTERFACE_CHECKBOX_HIDDEN]?></option> <option value='CHECKBOX_HIDDEN_REGIME' <?php if ($type != null && $type->getModeInterface() == 'CHECKBOX_HIDDEN_REGIME') {echo "selected='selected'";} ?>><?php echo AbsenceEleveType::$LISTE_LABEL_TYPE_SAISIE[AbsenceEleveType::MODE_INTERFACE_CHECKBOX_HIDDEN_REGIME]?></option> </select> </td> <td> <select name="id_lieu" id="id_lieu"> <option value='-1' <?php if ($type != null && $type->getIdLieu()== null) {echo "selected='selected'";} ?>> </option> <?php $lieux=AbsenceEleveLieuQuery::create()->find(); foreach ($lieux as $lieu) :?> <option value='<?php echo $lieu->getId();?>' <?php if ($type != null && $type->getIdLieu() == $lieu->getId()) {echo "selected='selected'";} ?>><?php echo $lieu->getNom();?></option> <?php endforeach; ?> </select> </td> <td> <table class="menu"><?php if ($type != null) { foreach ($type->getAbsenceEleveTypeStatutAutorises() as $statut_saisie) { echo "<tr><td>"; echo $statut_saisie->getStatut(); echo "</td>"; echo '<td><a href="admin_types_absences.php?action=supprimer_statut&id='. $type->getId(). '&statut_id='. $statut_saisie->getId() .add_token_in_url().'"><img src="../../images/icons/delete.png" width="22" height="22" title="Supprimer" border="0" alt="" /></a></td>';
/** * Filter the query by a related AbsenceEleveType object * * @param AbsenceEleveType $absenceEleveType the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return AbsenceEleveLieuQuery The current query, for fluid interface */ public function filterByAbsenceEleveType($absenceEleveType, $comparison = null) { if ($absenceEleveType instanceof AbsenceEleveType) { return $this ->addUsingAlias(AbsenceEleveLieuPeer::ID, $absenceEleveType->getIdLieu(), $comparison); } elseif ($absenceEleveType instanceof PropelCollection) { return $this ->useAbsenceEleveTypeQuery() ->filterByPrimaryKeys($absenceEleveType->getPrimaryKeys()) ->endUse(); } else { throw new PropelException('filterByAbsenceEleveType() only accepts arguments of type AbsenceEleveType or PropelCollection'); } }