Commit 1296d54b by Manoj

changes

parent c1a1c5e5
......@@ -2480,8 +2480,9 @@ class ApplicationController extends CI_Controller
public function examSchedule()
{
$view_data['academic_year'] = $this->mcommon->records_all('accadamic_year',array('status',1));
$view_data['records'] = $this->mcommon->records_all('exam_schedule',array('status',1));
$view_data['academic_year'] = $this->mcommon->records_all('accadamic_year', array('status', 1));
$view_data['records'] = $this->mcommon->records_all('exam_schedule', array('status', 1));
$view_data['exam_type'] = $this->mcommon->records_all('exam_type', array('status', 1));
$data = array(
'title' => 'Exam Schedule',
......@@ -2501,16 +2502,24 @@ class ApplicationController extends CI_Controller
$id = $this->input->post('id');
$schedule = $this->input->post('schedule');
$academic = $this->input->post('academic');
$date = $this->input->post('date');
$time = $this->input->post('time');
$exam_type1 = $this->input->post('exam_type1');
$exam_type2 = $this->input->post('exam_type2');
$objective_date = $this->input->post('objective_date');
$objective_time = $this->input->post('objective_time');
$essay_date = $this->input->post('essay_date');
$essay_time = $this->input->post('essay_time');
if ($id) {
$update_array = array(
'exam_schedule' => $schedule,
'academic' => $academic,
'date' => $date,
'time' => $time,
'exam_type1' => $exam_type1,
'exam_type2' => $exam_type2,
'objective_date' => $objective_date,
'objective_time' => $objective_time,
'essay_date' => $essay_date,
'essay_time' => $essay_time,
'status' => 1,
);
......@@ -2520,7 +2529,7 @@ class ApplicationController extends CI_Controller
if ($update) {
$this->session->set_flashdata('alert_success','Exam Schedule Updated Successfully!');
$this->session->set_flashdata('alert_success', 'Exam Schedule Updated Successfully!');
} else {
$this->session->set_flashdata('alert_danger', 'Something went wrong');
......@@ -2530,8 +2539,12 @@ class ApplicationController extends CI_Controller
$user_array = array(
'exam_schedule' => $schedule,
'academic' => $academic,
'date' => $date,
'time' => $time,
'exam_type1' => $exam_type1,
'exam_type2' => $exam_type2,
'objective_date' => $objective_date,
'objective_time' => $objective_time,
'essay_date' => $essay_date,
'essay_time' => $essay_time,
'status' => 1,
);
$insert = $this->mcommon->common_insert('exam_schedule', $user_array);
......
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