<tr> <td colspan="3"> </td> </tr> <tr> <td></td> <td><label for="department_id" class="form-required">Elective Department</label></td> <td> <div id="department_category" style="display: inline">Select an Elective Period above</div> </td> </tr> <tr> <td></td> <td><label for="discipline_id" class="form-required">Elective Discipline</label></td> <td> <?php if (@count($discipline = clerkship_fetch_disciplines()) > 0) { echo "<select id=\"discipline_id\" name=\"discipline_id\" style=\"width: 90%\">\n"; echo "<option value=\"0\"" . (!isset($PROCESSED["discipline_id"]) ? " selected=\"selected\"" : "") . ">-- Discipline --</option>\n"; foreach ($discipline as $value) { echo "<option value=\"" . (int) $value["discipline_id"] . "\"" . (isset($PROCESSED["discipline_id"]) && $PROCESSED["discipline_id"] == $value["discipline_id"] ? " selected=\"selected\"" : "") . ">" . html_encode($value["discipline"]) . "</option>\n"; } echo "</select>\n"; } else { echo "<input type=\"hidden\" id=\"discipline_id\" name=\"discipline_id\" value=\"0\" />\n"; echo "Discipline Information Not Available\n"; } ?> </td> </tr> <tr> <td></td>
<tr> <td colspan="3"> </td> </tr> <tr> <td></td> <td><label for="department_id" class="form-required">Elective Department</label></td> <td> <div id="department_category">Please select an <strong>Elective Period</strong> from above first.</div> </td> </tr> <tr> <td></td> <td><label for="discipline_id" class="form-required">Elective Discipline</label></td> <td> <?php $discipline = clerkship_fetch_disciplines(); if (is_array($discipline) && count($discipline) > 0) { echo "<select id=\"discipline_id\" name=\"discipline_id\" style=\"width: 256px\">\n"; echo "<option value=\"0\"" . (!isset($PROCESSED["discipline_id"]) ? " selected=\"selected\"" : "") . ">-- Select Discipline --</option>\n"; foreach ($discipline as $value) { echo "<option value=\"" . (int) $value["discipline_id"] . "\"" . ($PROCESSED["discipline_id"] == $value["discipline_id"] ? " selected=\"selected\"" : "") . ">" . html_encode($value["discipline"]) . "</option>\n"; } echo "</select>\n"; } else { echo "<input type=\"hidden\" id=\"discipline_id\" name=\"discipline_id\" value=\"0\" />\n"; echo "Discipline Information Not Available\n"; } ?> </td> </tr> <tr>