function showClassListAll() { $list = fetchAllClass(); echo "<select name='class_list_all' id='class_list_all' style='width: 300px'>"; echo "<option value=\"" . "\">" . "</option>"; foreach ($list as $row) { if (empty(fetchPlanCadreClass($row["CodeCours"]))) { echo "<option value=\"" . $row["CodeCours"] . "\">" . $row["CodeCours"] . " " . $row["NomCours"] . "</option>"; } } if (empty($list)) { echo "<option>" . "Aucun cours" . "</option>"; } echo "</select>"; }
function showClassListAll() { $list = fetchAllClass(); echo "<select name='class_list_all' id='class_list_all'>"; echo "<option value=\"" . "\">" . "</option>"; if (sizeof($list) > 0) { foreach ($list as $row) { if (empty(fetchPlanCadreClass($row["CodeCours"]))) { echo "<option value=\"" . $row["CodeCours"] . "\">" . $row["CodeCours"] . " " . $row["NomCours"] . "</option>"; } } } else { echo "<option>" . "Aucun cours" . "</option>"; } echo "</select>"; }