Example #1
0
 /**
  * View marks of locked assignments
  * Enter description here ...
  */
 public function assignmentAction()
 {
     $this->_helper->viewRenderer->setNoRender(false);
     $this->_helper->layout()->enableLayout();
     //        $authInfo = Zend_Auth::getInstance()->getStorage()->read();
     //        $department_id = $authInfo['department_id'];
     //        $degree_id = $authInfo['degree_id'];
     //        $semester_id = $authInfo['semester'];
     //        $rollno = $authInfo['user_id'];
     /**
      * 
      * @todo dynamic entry of fields
      */
     $department_id = 'CSE';
     $degree_id = 'BTECH';
     $semester_id = '6';
     $rollno = '2308001';
     $name = 'Prarthana';
     $this->view->assign('name', $name);
     $this->view->assign('rollno', $rollno);
     $this->view->assign('sem', $semester_id);
     $this->view->assign('degree', $degree_id);
     $this->view->assign('deptt', $department_id);
     $model = new Acad_Model_Assessment_Assignment();
     $result = $model->fetchMarks($department_id, $degree_id, $semester_id, $rollno);
     $this->view->assign('marks', $result);
     /*$response->page = $this->gridparam['page'];
       $response->total = $this->total_pages;
       $response->records = $this->_count;*/
     /*  
             foreach ($result as $key => $row)
             {
                 $response->rows[$key]['id']=$row['test_info_id'];
                 $response->rows[$key]['cell']=array(
                                                 $row['test_id'],
                                                 $row['subject_code'],
                                                 $row['subject_name'],
                                                 $row['max_marks'],
                                                 $row['pass_marks'],
                                                 $row['marks_scored'],
                                                 $row['status']);
             }
             $this->_helper->logger($response);
             echo $this->_helper->json($response);*/
 }