Commit 6949c311 by Manoj

changes

parent d249f6f6
......@@ -2338,6 +2338,7 @@ class ApplicationController extends CI_Controller
$view_data['records'] = $this->mcommon->records_all('question');
$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['schedule'] = $this->mcommon->records_all('exam_schedule',array('status',1));
$view_data['category'] = $this->mcommon->records_all('section_category',array('status',1));
$data = array(
'title' => 'View Question ',
......@@ -2354,6 +2355,7 @@ class ApplicationController extends CI_Controller
$academic = $this->input->post('academic');
$exam_type = $this->input->post('exam_type');
$category = $this->input->post('category');
$schedule = $this->input->post('schedule');
$question = $this->input->post('question');
$option_a = $this->input->post('option_a');
$option_b = $this->input->post('option_b');
......@@ -2365,6 +2367,7 @@ class ApplicationController extends CI_Controller
'academic' => $academic,
'exam_type' => $exam_type,
'category' => $category,
'schedule_id' => $schedule,
'question' => $question,
'option_a' => $option_a,
'option_b' => $option_b,
......@@ -2390,6 +2393,7 @@ class ApplicationController extends CI_Controller
$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['category'] = $this->mcommon->records_all('section_category',array('status',1));
$view_data['schedule'] = $this->mcommon->records_all('exam_schedule',array('status',1));
$data = array(
'title' => 'Add Question',
......@@ -2408,6 +2412,7 @@ class ApplicationController extends CI_Controller
$academic = $this->input->post('academic');
$exam_type = $this->input->post('exam_type');
$category = $this->input->post('category');
$schedule = $this->input->post('schedule');
$question = $this->input->post('question');
$option_a = $this->input->post('option_a');
$option_b = $this->input->post('option_b');
......@@ -2420,6 +2425,7 @@ class ApplicationController extends CI_Controller
'academic' => $academic,
'exam_type' => $exam_type,
'category' => $category,
'schedule_id' => $schedule,
'question' => $question,
'option_a' => $option_a,
'option_b' => $option_b,
......@@ -2445,6 +2451,7 @@ class ApplicationController extends CI_Controller
$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['category'] = $this->mcommon->records_all('section_category',array('status',1));
$view_data['schedule'] = $this->mcommon->records_all('exam_schedule',array('status',1));
$data = array(
'title' => 'Edit Question',
'page' => 'Edit Question',
......
......@@ -29,7 +29,7 @@
<form action="<?php echo base_url(); ?>ApplicationController/questionAdd" method="post" enctype="multipart/form-data" id="registration_form">
<div class="row">
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label class="tx-medium">Academic Year<span class="text-danger">*</span> </label>
<select name="academic" id="academic" class="form-control select2 modal-select">
......@@ -41,7 +41,7 @@
</select>
</div>
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label class="tx-medium">Exam Type<span class="text-danger">*</span> </label>
<select name="exam_type" id="exam_type" class="form-control select2 modal-select">
......@@ -54,7 +54,7 @@
</div>
<div class="form-group col-md-4">
<div class="form-group col-md-3">
<label class="tx-medium">Category<span class="text-danger">*</span> </label>
<select name="category" id="category" class="form-control select2 modal-select">
......@@ -67,6 +67,20 @@
</div>
<div class="form-group col-md-3">
<label class="tx-medium">Schedule <span class="text-danger">*</span> </label>
<select name="schedule" id="schedule" class="form-control select2 modal-select">
<option value="">--Select--</option>
<?php foreach ($schedule as $row) { ?>
<option value="<?php echo $row->id ?>"> <?php echo $row->exam_schedule ?></option>
<?php } ?>
</select>
</div>
<div class="form-group col-md-12 mt-3">
<label>Question</label>
......
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