$courses = $c->getAllAppointed(); while (!empty($courses) && ($course = $courses->fetch_object())) { $i++; ?> <tr id="<?php echo 'assigned_row_id' . $i; ?> "> <td><?php echo $course->course_code; ?> </td> <td> <?php $cc = new Course(); $cc->getInfobyId($course->course_code); echo $cc->getCourseName(); unset($cc); ?> </td> <td><?php $d = new Department(); $d->getInfo($course->course_dep); echo $d->getDepName(); unset($d); ?> </td> <td><?php echo $course->course_sem; ?> </td>
<?php require_once '../../core/init.php'; if (!loggedIn()) { echo '-'; die; } if (Session::get('type') != 'student') { echo '-'; die; } if (Input::exists('get') && Input::get('cid') != '' && Input::get('t') != '') { $c = new Course(); $c->getInfobyId(Input::get('cid')); if (Input::get('t') == 1) { echo $c->getCourseName(); } else { if (Input::get('t') == 2) { echo $c->getCourseCredit(); } else { echo '-'; } } unset($c); } echo '';
die; } if (Input::exists()) { if (Input::get('course_id') != '') { $var = explode(',', Input::get('course_id')); $m = new Marks(); if (!$m->getGradeScale($var[0], $var[1])) { echo '<div class="alert alert-danger alert-dismissible" role="alert">'; echo '<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>'; echo 'Set grading scale first!'; echo '</div>'; die; } $m->generateResult($var[0], $var[1]); $c = new Course(); $c->getInfobyId($var[0]); ?> <div class="box box-success"> <div class="box-header"> <h1 class="box-title">Final Result ( <?php echo $var[0] . ' - ' . $c->getCourseName(); unset($c); ?> )</h1> <button type="button" class="btn btn-success btn-lg pull-right" OnClick="approve(<?php echo '\'' . Session::get('teacher_id') . '\',\'' . $var[0] . '\',\'' . $var[1] . '\''; ?> );"><i class="glyphicon glyphicon-ok"></i> Approve Result!!</button> </div> <!-- ./box-header --> <div class="box-body"> <?php
</thead> <tbody> <?php $courses = $s->getCourses(); $courses = explode(',', $courses); foreach ($courses as $course) { ?> <tr> <td><?php echo $course; ?> </td> <td> <?php $c = new Course(); $c->getInfobyId($course); echo $c->getCourseName(); unset($c); $a = new Attendance(); $view = $a->getEntry(Session::get('sn'), $course); if (empty($view)) { $ca = '-'; $tc = '-'; $p = '-'; $lu = '-'; } else { $view = $view->fetch_object(); $ca = $view->classes_attended; $tc = $view->classes_total; $p = $view->percentage . '%'; $lu = $view->timestamp;
<select class="form-control" id="course" name="course_id"> <option value="" >Select Course</option> <?php $a = new Approval(); $b = $a->underApproval(); while ($key = $b->fetch_object()) { $course = $key->course_code; $course_dep = $key->course_dep; ?> <option value="<?php echo $course . ',' . $course_dep; ?> "> <?php echo $course . '-'; $ccn = new Course(); $ccn->getInfobyId($course); echo $ccn->getCourseName(); unset($ccn); ?> in <?php $d = new Department(); $d->getInfo($course_dep); echo $d->getDepName(); ?> </option> <br /> <?php } ?> </select>