本文整理汇总了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);
}
示例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);
}
示例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);
}