当前位置: 首页>>代码示例>>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;未经允许,请勿转载。