echo "End-Semester <i>(Max Marks : 50)</i>"; $max = "50"; break; } ?> </th> </tr> </thead> <tbody> <?php $j = 0; while ($students = $studs->fetch_object()) { $mmm = new Marks(); $saved_m = $mmm->getMarks($students->scholar_no, $c_code, $type); if (!empty($saved_m) && $saved_m->num_rows) { $marks = $saved_m->fetch_object()->{$type}; } else { $marks = 0.0; } ?> <tr> <th><?php echo $j + 1; ?> </th> <th><input type="hidden" name="scholar_number<?php echo $j + 1; ?> " value="<?php
$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); $m = new Marks(); $marks = $m->getMarks(Session::get('sn'), $course, '*'); if ($marks == '') { $ct1 = '-'; $ct2 = '-'; $ia = '-'; $ms = '-'; $es = '-'; $g = '-'; } else { $marks = $marks->fetch_object(); $ct1 = $marks->ct1; $ct2 = $marks->ct2; $ia = $marks->ct3; $ms = $marks->midsem; $es = $marks->endsem; $sem = new Semester();