當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Facilities::getSatellites方法代碼示例

本文整理匯總了PHP中Facilities::getSatellites方法的典型用法代碼示例。如果您正苦於以下問題:PHP Facilities::getSatellites方法的具體用法?PHP Facilities::getSatellites怎麽用?PHP Facilities::getSatellites使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Facilities的用法示例。


在下文中一共展示了Facilities::getSatellites方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: index

 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);
 }
開發者ID:OmondiKevin,項目名稱:ADT_MTRH,代碼行數:28,代碼來源:order.php

示例2: index

 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);
 }
開發者ID:OmondiKevin,項目名稱:ADT,代碼行數:14,代碼來源:order.php

示例3: addSatellite

 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);
 }
開發者ID:OmondiKevin,項目名稱:ADT_MTRH,代碼行數:18,代碼來源:admin_management.php


注:本文中的Facilities::getSatellites方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。