exit('No direct script access allowed'); } /** * Additional course information view. * * @license GPLv3 * * @since 3.0.0 * @package eduTrac SIS * @author Joshua Parker <*****@*****.**> */ $app = \Liten\Liten::getInstance(); $app->view->extend('_layouts/dashboard'); $app->view->block('dashboard'); $flash = new \app\src\Core\etsis_Messages(); $list = '"' . implode('","', courseList(_h($crse->preReq))) . '"'; $screen = 'vcrse'; ?> <script type="text/javascript"> $(function() { $("#select2_5").select2({tags:[<?php echo $list; ?> ]}); }); $(".success-panel").show(); setTimeout(function() { $(".success-panel").hide(); }, 5000); </script> <ul class="breadcrumb">
echo $sem; ?> " id='courses' method='post'> <select name='dept' id = 'depts' form='courses' onChange="deptselect();"> <?php // generate a select form field to choose a department foreach ($depts as $value) { echo "<option value='{$value}'>{$value}</option>"; } ?> </select> <?php // Generate the select form fields for the courses of each department foreach ($depts as $value) { echo "<select name='course[]' id = '{$value}' form='courses' style='display:none'>"; $courses = courseList($schedule, substr($value, 0, DEPTCODELEN) . "_{$sem}"); foreach ($courses as $course) { if ($filter != "on" || filterConflict($schedule, $sem, $course) > 0) { echo "<option value='{$course}'>" . substr($course, DEPTCODELEN) . "</option>"; } } echo "</select>"; } ?> <input type="submit" value="Go!" name="submit"> </form> Manage selected courses:<br> <form action="editcourse.php?sem=<?php echo $sem; ?> " method='post'>
<td><select name='dept' size='20' id = 'depts' form='courses' onClick="deptselect(this);"> <?php // generate a select form field to choose a department foreach ($depts as $value) { echo "<option>{$value}</option>"; } ?> </select> </td> <td> <?php // Generate the (hidden) select form fields for the courses of each department foreach ($depts as $value) { echo "<select multiple name='course[]' size = '20' id = '{$value}'>"; $courses = courseList($schedule, substr($value, 0, 3) . "_{$sem}"); foreach ($courses as $c) { echo "<option value='{$c}'>{$c}</option>"; } echo "</select>"; // use javascript to HIDE these fields // Unlike on timetable.php, selecting a dept won't unhide these fields, // but will copy their contents into the crslist select box echo "<script language='javascript'>"; echo "document.getElementById('{$value}').style.display = 'none'"; echo "</script>"; } ?> <select multiple name='crslist' style="width:105px;" size = '20' id = 'crslist'> </select> </td>