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


PHP District::getAll方法代码示例

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


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

示例1: show_interface

 public function show_interface()
 {
     $data = array();
     $data['settings_view'] = "weekly_report_v";
     $data['districts'] = District::getAll();
     $data['provinces'] = Province::getAll();
     $this->base_params($data);
 }
开发者ID:bamcod,项目名称:Disease-Surveillance,代码行数:8,代码来源:weekly_report.php

示例2: edit_user

 public function edit_user($id)
 {
     $user = Users::getUser($id);
     $data['user'] = $user;
     $data['title'] = "User Management::Edit " . $user->Name . "'s Details";
     $data['title'] = "User Management::Add New User";
     $data['module_view'] = "add_user_view";
     $data['levels'] = Access_Level::getAll();
     $data['districts'] = District::getAll();
     $data['provinces'] = Province::getAll();
     $this->base_params($data);
 }
开发者ID:bamcod,项目名称:Disease-Surveillance,代码行数:12,代码来源:user_management.php

示例3: 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

示例4: 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

示例5: edit_duplicate

 public function edit_duplicate($number_of_diseases, $first_surveillance_id, $malaria_data_id)
 {
     $last_surveillance_id = $first_surveillance_id + $number_of_diseases - 1;
     $provinces = Province::getAll();
     $districts = District::getAll();
     $diseases = Disease::getAllObjects();
     $data['provinces'] = $provinces;
     $data['districts'] = $districts;
     $data['diseases'] = $diseases;
     $data['prediction'] = Surveillance::getPrediction();
     $data['surveillance_data'] = Surveillance::getSurveillanceDataRange($first_surveillance_id, $last_surveillance_id);
     $data['lab_data'] = Lab_Weekly::getLabObjects($malaria_data_id);
     $data['editing'] = true;
     $data['scripts'] = array("special_date_picker.js", "validationEngine-en.js", "validator.js");
     $data["styles"] = array("validator.css");
     $data['title'] = "Duplicate Data Editing";
     $data['content_view'] = "weekly_data_add_v";
     $data['banner_text'] = "Weekly Data Correction";
     $data['link'] = "data_quality_management";
     $this->load->view("template", $data);
 }
开发者ID:bamcod,项目名称:Disease-Surveillance,代码行数:21,代码来源:data_duplication.php

示例6: filter

 function filter()
 {
     $epiweek = $_POST['epiweek'];
     $filterdyear = $_POST['filteryear'];
     $provinceId = $_POST['province'];
     $districtId = $_POST['district'];
     $district = District::getName($districtId);
     $districtName = $district->Name;
     $districts = District::getAll();
     $provinces = Province::getAll();
     $diseases = Disease::getAllObjects();
     $years = Surveillance::getYears();
     $data['selected_epiweek'] = $epiweek;
     $data['provinces'] = $provinces;
     $data['districts'] = $districts;
     $data['years'] = $years;
     $data['diseases'] = $diseases;
     $data['districtName'] = $districtName;
     $data['values'] = $this->getPerDistrict($districtId, $epiweek, $provinceId, $filterdyear);
     $data['content_view'] = 'submissions_distr_v';
     $this->base_params($data);
 }
开发者ID:bamcod,项目名称:Disease-Surveillance,代码行数:22,代码来源:submissions_management.php

示例7: addDistrict

 public function addDistrict()
 {
     $results = District::getAll();
     $dyn_table = "<table border='1' id='patient_listing'  cellpadding='5' class='dataTables'>";
     $dyn_table .= "<thead><tr><th>District Name</th><th> Options</th></tr></thead><tbody>";
     if ($results) {
         foreach ($results as $result) {
             if ($result['active'] == "1") {
                 $option = "<a href='#edit_district' data-toggle='modal' role='button' class='edit' table='district' district='" . $result['Name'] . "' district_id='" . $result['id'] . "'>Edit</a> | <a href='" . base_url() . "admin_management/disable/district/" . $result['id'] . "' class='red'>Disable</a>";
             } else {
                 $option = "<a href='#edit_district' data-toggle='modal' role='button' class='edit' table='district' district='" . $result['Name'] . "' district_id='" . $result['id'] . "'>Edit</a> | <a href='" . base_url() . "admin_management/enable/district/" . $result['id'] . "' class='green'>Enable</a>";
             }
             $dyn_table .= "<tr><td>" . $result['Name'] . "</td><td>" . $option . "</td></tr>";
         }
     }
     $dyn_table .= "</tbody></table>";
     $data['label'] = 'District';
     $data['table'] = 'district';
     $data['actual_page'] = 'View Districts';
     $data['dyn_table'] = $dyn_table;
     $this->base_params($data);
 }
开发者ID:OmondiKevin,项目名称:ADT_MTRH,代码行数:22,代码来源:admin_management.php


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