Commit bab1caa6 by Manoj

changes

parent 3724a3e3
......@@ -63,7 +63,7 @@ class QuestionController extends CI_Controller
public function viewQuestion()
{
$view_data['records'] = $this->mcommon->records_all('question');
$view_data['records'] = $this->mcommon->records_all('question',array('exam_type',1));
$view_data['exam_type'] = $this->mcommon->records_all('exam_type',array('status',1));
$view_data['academic_year'] = $this->mcommon->records_all('accadamic_year',array('status',1));
$view_data['question_category'] = $this->mcommon->records_all('question_category',array('status',1));
......@@ -222,7 +222,7 @@ class QuestionController extends CI_Controller
public function viewEssayQuestion()
{
$view_data['records'] = $this->mcommon->records_all('question');
$view_data['records'] = $this->mcommon->records_all('question',array('exam_type',2));
$view_data['exam_type'] = $this->mcommon->records_all('exam_type',array('status',1));
$view_data['academic_year'] = $this->mcommon->records_all('accadamic_year',array('status',1));
$view_data['question_category'] = $this->mcommon->records_all('question_category',array('status',1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment