예제 #1
0
 public function index()
 {
     $facility_code = $this->session->userdata('facility');
     //get supplier
     $facility = Facilities::getSupplier($facility_code);
     $supplier = $facility->supplier->name;
     if (!$this->session->userdata('api_id')) {
         $data['content_view'] = "orders/login_v";
         $data['login_type'] = 0;
         if (strtoupper($supplier) == "KENYA PHARMA") {
             $data['login_type'] = 1;
         }
     } else {
         $data['cdrr_buttons'] = $this->get_buttons("cdrr");
         $data['cdrr_filter'] = $this->get_filter("cdrr");
         $data['fmap_buttons'] = $this->get_buttons("maps");
         $data['maps_filter'] = $this->get_filter("maps");
         $data['cdrr_table'] = $this->get_orders("cdrr");
         $data['map_table'] = $this->get_orders("maps");
         $data['aggregate_table'] = $this->get_orders("aggregate");
         $data['facilities'] = Facilities::getSatellites($facility_code);
         $data['content_view'] = "orders/order_v";
     }
     $data['supplier_name'] = strtolower($supplier);
     $data['page_title'] = "my Orders";
     $data['banner_text'] = "Facility Orders";
     $this->base_params($data);
 }
예제 #2
0
파일: order.php 프로젝트: OmondiKevin/ADT
 public function index()
 {
     $data['cdrr_buttons'] = $this->get_buttons("cdrr");
     $data['cdrr_filter'] = $this->get_filter("cdrr");
     $data['fmap_buttons'] = $this->get_buttons("maps");
     $data['maps_filter'] = $this->get_filter("maps");
     $data['cdrr_table'] = $this->get_orders("cdrr");
     $data['map_table'] = $this->get_orders("maps");
     $data['facilities'] = Facilities::getSatellites($this->facility_code);
     $data['page_title'] = "my Orders";
     $data['banner_text'] = "Facility Orders";
     $data['content_view'] = "orders/order_v";
     $this->base_params($data);
 }
예제 #3
0
 public function addSatellite()
 {
     $results = Facilities::getSatellites($this->session->userdata("facility"));
     $dyn_table = "<table border='1' id='patient_listing'  cellpadding='5' class='dataTables'>";
     $dyn_table .= "<thead><tr><th>Facility Code</th><th>Facility Name</th><th>Options</th></tr></thead><tbody>";
     if ($results) {
         foreach ($results as $result) {
             $option = "<a href='" . base_url() . "admin_management/remove/" . $result['facilitycode'] . "'' class='red'>Remove</a>";
             $dyn_table .= "<tr><td>" . $result['facilitycode'] . "</td><td>" . $result['name'] . "</td><td>" . $option . "</td></tr>";
         }
     }
     $dyn_table .= "</tbody></table>";
     $data['label'] = 'Satellite';
     $data['table'] = 'facilities';
     $data['actual_page'] = 'View Satellites';
     $data['dyn_table'] = $dyn_table;
     $this->base_params($data);
 }