<option value=""></option> <?php $niveaux = Niveau::getAll(); foreach ($niveaux as $niveau) { echo '<option value="' . $niveau->getIdNiveau() . '">' . $niveau->getLibelleNiveau() . '</option>'; } ?> </select> </div> </td> <td> Matiere <select id="selectMatiere" size="1"> <option value=""></option> <?php $matieres = Matiere::getAll(); foreach ($matieres as $matiere){ echo '<option value="' . $matiere->getIdMatiere() . '">' . $matiere->getLibelleMatiere() . '</option>'; } ?> </select> </td> </tr> <tr> <td> Professeur <select id="selectProf" size="1"> <option value=""></option> <?php $profs = Professeur::getAll(); foreach ($profs as $prof){