Exemple #1
0
 /**
  * @author Gaurav Dhiman.
  * @method student by Birthday listing
  */
 public function leaving_certificate()
 {
     superadmin_view('student/leaving_certificate');
 }
Exemple #2
0
 /**
  * @author Gaurav Dhiman.
  * @method listing	
  */
 public function listing()
 {
     superadmin_view('user_listing');
 }
Exemple #3
0
 public function select_print()
 {
     $students = $this->model_student->list_students();
     $data['students'] = $students;
     $this->load->model('model_standard');
     $data['sections'] = $this->model_standard->getSections();
     $data['standards'] = $this->model_standard->getStandards();
     $data['streams'] = $this->model_standard->getStreams();
     $data['divisions'] = $this->model_standard->getDivisions();
     //        pre_print($students);exit;
     superadmin_view('student/select_print', $data);
 }
Exemple #4
0
 /**
  * @author Gaurav Dhiman.
  * @method Edit Division 	
  */
 public function edit_division($div_id)
 {
     if (isset($_POST['submit']) && !empty($_POST['std_code'])) {
         //pre_print($_POST);
         $arrData = array();
         $arrData = copy_posted($arrData, array('std_code', 'division_name'));
         if ($result = $this->model_master->update_division($div_id, $arrData)) {
             //pre_print('success');
             $this->session->set_flashdata('success_msg', 'A division Updated successfully.');
             redirect('master/division_listing');
         } else {
             $arrData['division'] = $this->model_master->get_division($std_id);
             $this->session->set_flashdata('success_msg', 'Something went wrong Please Try Again.');
             superadmin_view('masters/edit_division');
         }
     } else {
         $arrData = $this->model_master->get_division($div_id);
         $arrData['standards'] = $this->model_master->get_all_standards();
         //pre_print($arrData);
         superadmin_view('masters/edit_division', $arrData);
     }
     //pre_print('here');\
 }
 /**
  * @author Gaurav Dhiman.
  * @method index	
  */
 public function index()
 {
     //pre_print($this->session->all_userdata());
     superadmin_view('superadmin');
 }