Esempio n. 1
0
 public function index()
 {
     $allHospital = parent::getHospital();
     $this->load->view('admin/header.html');
     $this->load->view('admin/dashboard.html');
     $this->load->view('admin/footer.html');
 }
Esempio n. 2
0
 public function edit($cid)
 {
     $data['star_level_array'] = $this->config->item('star_level');
     $data['nurse_service_status_array'] = $this->config->item('nurse_service_status');
     $data['nurse_service_level_array'] = $this->config->item('nursing_level');
     $data['hospital_array'] = parent::getHospital();
     $data['department_array'] = parent::getDepartment();
     $data['carer'] = $this->carer_model->get_by_id($cid);
     $carer_department_array = array();
     $arr = $this->carer_model->get_departments_of_carer($cid);
     foreach ($arr as $record) {
         $carer_department_array[] = $record['did'];
     }
     $data['carer_department_array'] = $carer_department_array;
     //var_dump($data);
     $this->load->view('admin/header.html');
     $this->load->view('admin/editCarer.html', $data);
     $this->load->view('admin/footer.html');
 }