Exemplo n.º 1
0
$array = $obj->getAllFaculty();
echo "Name of Faculty: ";
echo "<select id=sel2 onchange=get2()>";
echo "<option value= 'default' >Default</option>";
for ($i = 0; $i < sizeof($array); $i++) {
    echo "<option value=" . $array[$i]['f_id'] . ">";
    echo $array[$i]['f_name'];
    echo "</option>";
}
echo "</select>";
echo "<br>";
echo "<br>";
echo "<br>";
include "course.php";
$obj = new course();
$array = $obj->getAllCourse();
echo "Course name: ";
echo "<select id=sel3 onchange=get3()>";
for ($i = 0; $i < sizeof($array); $i++) {
    echo "<option value=" . $array[$i]['c_id'] . ">";
    echo $array[$i]['c_name'];
    echo "</option>";
}
echo "</select>";
?>
		<!--  <input type="submit" value="Add" onclick="add2()"/> -->
		<button onclick="add2()">Add</button>
	</form>


</body>
Exemplo n.º 2
0
<?php 
}
if (trim($page) == "msccourse") {
    ?>
<!-- mscst course catalog -->
<div class="cellbackground" id="mscstcoursecatalog">
<h3>MscST Course Catalog</h3>
 <hr />

<dl id="infoacordian"  class="accordion">
    <?php 
    $roman = array("I", "II", "III", "IV", "V", "VI");
    require_once '../CMS/db/CourseClass.php';
    for ($i = 1; $i <= 4; $i++) {
        $co = course::getAllCourse("Msc.ST", $i);
        if ($co === 0) {
            continue;
        }
        echo '<dt><a class="gray">Semester ' . $roman[$i - 1] . '</a></dt>';
        echo '<dd><div><ul class="accordion-menu">';
        foreach ($co as $course) {
            if ($course->course_url == NULL || $course->course_url == "") {
                $url = "#";
            } else {
                $url = $course->course_url;
            }
            echo "<a href='../CMS/{$url}' target='_blank' ><li>{$course->course_id} &nbsp; {$course->course_name} <span style='float: right;'>Credit: {$course->course_credit} &nbsp;&nbsp;&nbsp;</span></li></a>";
        }
        echo '</ul></div></dd>';
    }