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