Commit af7b2a03 by Manoj

question changes

parent 62a211f0
...@@ -571,6 +571,14 @@ class ApplicationController extends CI_Controller ...@@ -571,6 +571,14 @@ class ApplicationController extends CI_Controller
$this->session->set_flashdata('alert_danger', 'Record Deleted successfully!'); $this->session->set_flashdata('alert_danger', 'Record Deleted successfully!');
redirect('ApplicationController/faculty'); redirect('ApplicationController/faculty');
} }
public function deleteQuestion($id)
{
$delete = $this->mcommon->common_delete('question', array('id' => $id));
$this->session->set_flashdata('alert_danger', 'Record Deleted successfully!');
redirect('ApplicationController/viewQuestion');
}
public function draftformdetails() public function draftformdetails()
...@@ -2342,6 +2350,7 @@ class ApplicationController extends CI_Controller ...@@ -2342,6 +2350,7 @@ class ApplicationController extends CI_Controller
{ {
if(isset($_POST['submit'])){ if(isset($_POST['submit'])){
$academic = $this->input->post('academic'); $academic = $this->input->post('academic');
$exam_type = $this->input->post('exam_type'); $exam_type = $this->input->post('exam_type');
$category = $this->input->post('category'); $category = $this->input->post('category');
...@@ -2365,8 +2374,6 @@ class ApplicationController extends CI_Controller ...@@ -2365,8 +2374,6 @@ class ApplicationController extends CI_Controller
); );
$insert = $this->mcommon->common_insert('question', $insert_array); $insert = $this->mcommon->common_insert('question', $insert_array);
if ($insert) { if ($insert) {
......
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