Esempio n. 1
0
 public function facility_offline()
 {
     $identifier = $this->session->userdata('user_indicator');
     $user_type_id = $this->session->userdata('user_type_id');
     $district = $this->session->userdata('district_id');
     // echo $identifier;exit;
     $county = $this->session->userdata('county_id');
     // $data['facilities'] = isset($district) ? Facilities::get_facility_details($district) : Facilities::get_facilities_per_county($county);
     if ($identifier == "district") {
         $data['facilities'] = Facilities::get_facility_details($district);
         $data['identifier'] = $identifier;
     } elseif ($identifier == "county") {
         $data['facilities'] = Facilities::get_facility_details(NULL, $county);
         $data['identifier'] = $identifier;
         $data['district_info'] = Districts::get_districts($county);
     }
     $permissions = 'district_permissions';
     // $data['facilities']=Facilities::get_facility_details($district);
     // $data['facilities']=Facilities::get_facilities_per_county($county);
     // echo "<pre>";print_r($data['facilities']);echo "</pre>";exit;
     $data['title'] = "Offline Facility Setup";
     $data['banner_text'] = "Setup Facility Offline";
     $template = 'shared_files/template/template';
     // $data['sidebar'] = "shared_files/report_templates/side_bar_sub_county_v";
     $data['active_panel'] = 'system_usage';
     // $data['report_view'] = "shared_files/Facility_activation_v";
     $data['content_view'] = "shared_files/facility_offline";
     $this->load->view($template, $data);
 }
Esempio n. 2
0
 public function fcdrr_test($facility_c)
 {
     $data = array();
     $data['title'] = "FCDRR";
     $data['banner_text'] = "FCDRR";
     $data['content_view'] = "rtk/dpp/fcdrr_test";
     $district = $this->session->userdata('district_id');
     $data['facilities'] = Facilities::get_facility_details($district);
     $data['commodities'] = Rtk_Categories::get_all();
     $data['details'] = Facilities::get_one_facility_details($facility_c);
     $this->facility_code = $facility_c;
     $data['facility_code'] = $this->facility_code;
     $this->load->view("rtk/template", $data);
 }