<th> Practical Mark Obtained </th> <th> Practical Percentage </th> </tr> <?php foreach($studentqualification as $m=>$v) { ?> <tr> <td> <?php echo ++$k; ?> </td> <td> <?php echo Qualification::model()->findByPk($v['student_academic_record_trans_qualification_id'])->qualification_name; ?> </td> <td> <?php echo Eduboard::model()->findByPk($v['student_academic_record_trans_eduboard_id'])->eduboard_name; ?> </td> <td> <?php echo $v['student_academic_record_trans_record_trans_year_id']; ?> </td> <td> <?php echo $v['theory_mark_max']; ?> </td> <td> <?php echo $v['theory_mark_obtained']; ?> </td> <td>
/** * Returns the data model based on the primary key given in the GET variable. * If the data model is not found, an HTTP exception will be raised. * @param integer the ID of the model to be loaded */ public function loadModel($id) { $model = Qualification::model()->findByPk((int) $id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
/** * Generate array for dropdown list to use in child form. * @return array $_items */ public static function items() { self::$_items = CHtml::listData(self::model()->findAll(), 'qualification_id', 'qualification_name'); return self::$_items; }
</th> </tr> <?php foreach ($employee_qual as $m => $v) { ?> <tr> <td> <?php echo ++$k; ?> </td> <td> <?php echo Qualification::model()->findByPk($v['employee_academic_record_trans_qualification_id'])->qualification_name; ?> </td> <td> <?php echo Eduboard::model()->findByPk($v['employee_academic_record_trans_eduboard_id'])->eduboard_name; ?> </td> <td> <?php echo Year::model()->findByPk($v['employee_academic_record_trans_year_id'])->year; ?> </td> <td> <?php echo $v['theory_mark_obtained'];
private static function loadItems() { self::$_items = array(); $models = self::model()->findAll(); foreach ($models as $model) { self::$_items[$model->qualification_id] = $model->qualification_name; } }