/** * Manages all models. */ public function actionAdmin() { $model = new ExamScores('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['ExamScores'])) { $model->attributes = $_GET['ExamScores']; } $this->render('admin', array('model' => $model)); }
echo '<i>' . Yii::t('examination', 'No Students In This Batch') . '</i>'; } ?> </div></div><!-- form --> <?php $checkscores = ExamScores::model()->findByAttributes(array('exam_id' => $_REQUEST['examid'])); if ($checkscores != NULL) { ?> <?php $model1 = new ExamScores('search'); $model1->unsetAttributes(); // clear any default values if (isset($_GET['examid'])) { $model1->exam_id = $_GET['examid']; } ?> <h3> <?php echo Yii::t('examination', 'Scores'); ?> </h3> <div style="position:relative"> <div class="edit_bttns" style="width:250px; top:-10px; right:-123px;"> <ul> <li> <?php echo CHtml::link('<span>' . Yii::t('examination', 'Clear All Scores') . '</span>', array('examScores/deleteall', 'id' => $_REQUEST['id'], 'examid' => $_REQUEST['examid']), array('class' => 'addbttn last', 'confirm' => Yii::t('examination', 'Are You Sure? All Scores will be deleted.')));