</td> </tr> <tr> <td width="20%"><label for="addMatiere"> Matiere : </label></td> <td width="30%"> <select id="addMatiere" name="addMatiere"> <option value=""></option> </select> </td> </tr> <tr> <td><label for="typeEval">Type d'évaluation : </label></td> <td><select id="typeEval" name="addType"> <option value=""></option> <?php $typeEval = TypeEvaluation::getAll(); foreach ($typeEval as $te) { echo '<option value="' . $te->getIdTypeEvaluation() . '">' . $te->getLibelleTypeEvaluation() . '</option>'; } ?> </select></td> </tr> <tr> <td><label for="contenu">Détail (Autre) : </label></td> <td> <input id="contenu" type="text" name="autreEval"> </td> </tr> <tr> <td><label for="addMax"> Note Max de l'évaluation : </label></td> <td colspan="3"><input type="text" id="addMax" name="addMax" value="20"></td>
public function getLibelleEvaluation () { $return = ''; $typeEval = TypeEvaluation::getById($this->getIdTypeEvaluation()); if (strtoupper($typeEval->getLibelleTypeEvaluation()) == 'AUTRE') $return .= $this->getAutreEvaluation(); else $return .= $typeEval->getLibelleTypeEvaluation(); $return .= ($this->getTitreEvaluation()?' '.$this->getTitreEvaluation().' ':''); $return .= ' du : ' . $this->afficheDateEvaluation(); return $return; }