当前位置: 首页>>代码示例>>PHP>>正文


PHP Facilities::getAll方法代码示例

本文整理汇总了PHP中Facilities::getAll方法的典型用法代码示例。如果您正苦于以下问题:PHP Facilities::getAll方法的具体用法?PHP Facilities::getAll怎么用?PHP Facilities::getAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Facilities的用法示例。


在下文中一共展示了Facilities::getAll方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: manage_users

 public function manage_users()
 {
     $permissions = 'super_permissions';
     $data['title'] = "Users";
     $data['content_view'] = "Admin/users_v";
     $data['listing'] = Users::get_user_list_all();
     $data['counts'] = Users::get_users_count();
     $data['counties'] = Counties::getAll();
     $data['facilities'] = Facilities::getAll();
     $data['sub_counties'] = Districts::getAll();
     $data['user_types'] = Access_level::get_access_levels($permissions);
     $this->load->view("shared_files/template/dashboard_v", $data);
 }
开发者ID:HCMPKenya,项目名称:RTK_TEST,代码行数:13,代码来源:admin.php

示例2: edit_weekly_data

 public function edit_weekly_data($epiweek, $reporting_year, $facility)
 {
     $facilities = Facilities::getAll();
     $districts = District::getAll();
     $diseases = Disease::getAllObjects();
     $data['facilities'] = $facilities;
     $data['districts'] = $districts;
     $data['diseases'] = $diseases;
     $data['prediction'] = Surveillance::getPrediction();
     $data['surveillance_data'] = Surveillance::getSurveillanceDataFacility($epiweek, $reporting_year, $facility);
     $data['lab_data'] = Lab_Weekly::getWeeklyFacilityLabData($epiweek, $reporting_year, $facility);
     $data['editing'] = true;
     $data['scripts'] = array("special_date_picker.js", "validationEngine-en.js", "validator.js");
     $data["styles"] = array("validator.css");
     $this->base_params($data);
 }
开发者ID:bamcod,项目名称:Disease-Surveillance,代码行数:16,代码来源:weekly_facility.php

示例3: add

 public function add()
 {
     $provinces = Province::getAll();
     $districts = District::getAll();
     $facilities = Facilities::getAll();
     $diseases = Disease::getAllObjects();
     $data['provinces'] = $provinces;
     $data['districts'] = $districts;
     $data['facilities'] = $facilities;
     $data['diseases'] = $diseases;
     $data['scripts'] = array("jquery.ui.core.js", "jquery.ui.datepicker.js", "jquery.ui.widget.js");
     $data['styles'] = array("jquery.ui.all.css");
     $data['title'] = "Line List Data";
     $data['content_view'] = "linelist_data_add_v";
     $data['banner_text'] = "Linelist Data";
     $data['link'] = "submissions_management";
     $data['quick_link'] = "linelisted_data_management";
     $this->base_params($data);
     //$this -> load -> view("template", $data);
 }
开发者ID:bamcod,项目名称:Disease-Surveillance,代码行数:20,代码来源:linelisted_data_management.php

示例4: edit

 public function edit($record_no)
 {
     $sql = "SELECT p.*,\n\t\t               rst.Name as service_name,\n\t\t               dp.child,\n\t\t               s.secondary_spouse \n\t\t               FROM patient p \n\t\t               LEFT JOIN regimen_service_type rst ON rst.id=p.service \n\t\t               LEFT JOIN dependants dp ON p.patient_number_ccc=dp.parent  \n\t\t        \t   LEFT JOIN spouses s ON p.patient_number_ccc=s.primary_spouse\n\t\t               WHERE p.id='{$record_no}'\n\t\t               GROUP BY p.id";
     $query = $this->db->query($sql);
     $results = $query->result_array();
     if ($results) {
         $results[0]['other_illnesses'] = $this->extract_illness($results[0]['other_illnesses']);
         $data['results'] = $results;
     }
     $data['record_no'] = $record_no;
     $data['districts'] = District::getPOB();
     $data['genders'] = Gender::getAll();
     $data['statuses'] = Patient_Status::getStatus();
     $data['sources'] = Patient_Source::getSources();
     $data['drug_prophylaxis'] = Drug_Prophylaxis::getAll();
     $data['service_types'] = Regimen_Service_Type::getHydratedAll();
     $data['facilities'] = Facilities::getAll();
     $data['family_planning'] = Family_Planning::getAll();
     $data['other_illnesses'] = Other_Illnesses::getAll();
     $data['pep_reasons'] = Pep_Reason::getActive();
     $data['regimens'] = Regimen::getRegimens();
     $data['drugs'] = Drugcode::getAllEnabled();
     $data['who_stages'] = Who_Stage::getAllHydrated();
     $data['content_view'] = 'edit_patients_v';
     //Hide side menus
     $data['hide_side_menu'] = '1';
     $this->base_params($data);
 }
开发者ID:OmondiKevin,项目名称:ADT,代码行数:28,代码来源:patient_management.php

示例5: getAllFacilities

 public function getAllFacilities()
 {
     $facilities = Facilities::getAll();
     $list = "";
     foreach ($facilities as $facilities) {
         $list .= $facilities->id;
         $list .= "*";
         $list .= $facilities->facility_name;
         $list .= "_";
     }
     echo $list;
 }
开发者ID:HCMPKenya,项目名称:RTK_TEST,代码行数:12,代码来源:order_management.php

示例6: edit

 public function edit()
 {
     $access_level = $this->session->userdata('user_indicator');
     $user_type = "1";
     $facilities = "";
     //If user is a super admin, allow him to add only facilty admin and nascop pharmacist
     if ($access_level == "system_administrator") {
         $user_type = "indicator='nascop_pharmacist' or indicator='facility_administrator'";
         $facilities = Facilities::getAll();
     } else {
         if ($access_level == "facility_administrator") {
             $facility_code = $this->session->userdata('facility');
             $user_type = "indicator='pharmacist'";
             $facilities = Facilities::getCurrentFacility($facility_code);
         }
     }
     $user_id = $this->input->get('u_id');
     $data['users'] = Users::getUserAdmin($user_id);
     $data['user_type'] = Access_Level::getAll($user_type);
     echo json_encode($data);
 }
开发者ID:OmondiKevin,项目名称:ADT,代码行数:21,代码来源:user_management.php

示例7: base_params

 public function base_params($data)
 {
     $source = $this->session->userdata('facility');
     $access_level = $this->session->userdata('user_indicator');
     $data['quick_link'] = "facility";
     if ($access_level == "system_administrator") {
         $data['facilities_list'] = Facilities::getAll($source);
         $this->load->view("facility_v", $data);
     } else {
         $data['facilities'] = Facilities::getCurrentFacility($source);
         $this->load->view("facility_user_v", $data);
     }
 }
开发者ID:OmondiKevin,项目名称:ADT_MTRH,代码行数:13,代码来源:facility_management.php


注:本文中的Facilities::getAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。