當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Facilities::get_facilities_issued_in_month方法代碼示例

本文整理匯總了PHP中Facilities::get_facilities_issued_in_month方法的典型用法代碼示例。如果您正苦於以下問題:PHP Facilities::get_facilities_issued_in_month方法的具體用法?PHP Facilities::get_facilities_issued_in_month怎麽用?PHP Facilities::get_facilities_issued_in_month使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Facilities的用法示例。


在下文中一共展示了Facilities::get_facilities_issued_in_month方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: new_weekly_usage

 public function new_weekly_usage($year = null, $month = null)
 {
     if (!isset($month)) {
         $month = date('m');
     }
     if (!isset($year)) {
         $year = date('Y');
     }
     $full_date = $year . '-' . $month . '-01';
     $month_text = date('F', strtotime($full_date));
     $data['year'] = $year;
     $data['month'] = $month;
     $data['month_text'] = $month_text;
     $data['title'] = "System Usage";
     $data['content_view'] = "Admin/new_log_summary_v";
     $data['banner_text'] = "System Usage";
     $start_date = $year . '-' . $month . '-01';
     $end_date = $year . '-' . $month . '-31';
     $logged_within_month = Facilities::get_facilities_logged_in_month($start_date, $end_date);
     $issued_within_month = Facilities::get_facilities_issued_in_month($start_date, $end_date);
     $not_logged_within_month = Facilities::get_facilities_not_in_month($start_date, $end_date);
     $not_issued_within_month = Facilities::get_facilities_not_in_month($start_date, $end_date, null, null, 'issued');
     $logged_within_month_4 = Facilities::get_facilities_count($start_date, $end_date, 4);
     $issued_within_month_4 = Facilities::get_facilities_count($start_date, $end_date, 4, null, null, 'issued');
     $data['monthly_logs'] = array('logged_in' => $logged_within_month, 'not_logged_in' => $not_logged_within_month, 'logged_in_count' => $logged_within_month_4, 'issued_within_month' => $issued_within_month, 'issued_count' => $issued_within_month_4, 'not_issued' => $not_issued_within_month);
     $this->load->view("shared_files/template/dashboard_v", $data);
 }
開發者ID:HCMPKenya,項目名稱:hcmp_demo,代碼行數:27,代碼來源:sms.php

示例2: new_system_usage_temp

 public function new_system_usage_temp($year = null, $month = null, $ajax = null)
 {
     $identifier = $this->session->userdata('user_indicator');
     $district_id = null;
     $county_id = null;
     if ($identifier == 'district') {
         $district_id = $this->session->userdata('district_id');
     }
     if ($identifier == 'county') {
         $county_id = $this->session->userdata('county_id');
     }
     // echo "$identifier";die;
     if (!isset($month)) {
         $month = date('m');
     }
     if (!isset($year)) {
         $year = date('Y');
     }
     $full_date = $year . '-' . $month . '-01';
     $month_text = date('F', strtotime($full_date));
     $data['year'] = $year;
     $data['month'] = $month;
     $data['month_text'] = $month_text;
     $data['title'] = " System Usage";
     $data['banner_text'] = "System Use Statistics";
     $data['content_view'] = "subcounty/ajax/new_system_usage_temporary";
     $start_date = $year . '-' . $month . '-01';
     $end_date = $year . '-' . $month . '-31';
     $logged_within_month = Facilities::get_facilities_logged_in_month($start_date, $end_date, null, $county_id, $district_id);
     $issued_within_month = Facilities::get_facilities_issued_in_month($start_date, $end_date, null, $county_id, $district_id);
     $not_logged_within_month = Facilities::get_facilities_not_logged_in_month($start_date, $end_date, $county_id, $district_id);
     $not_issued_within_month = Facilities::get_facilities_not_issued_in_month($start_date, $end_date, $county_id, $district_id);
     $logged_within_month_4 = Facilities::get_facilities_count($start_date, $end_date, 4);
     // $logged_within_month_4 = Facilities::get_facilities_logged_in_count($start_date,$end_date,4,$county_id,$district_id);
     $issued_within_month_4 = Facilities::get_facilities_issued_in_count($start_date, $end_date, 4, $county_id, $district_id);
     $facilities_offline = Facilities::get_offline_facilities($county_id, $district_id);
     $data['monthly_logs'] = array('logged_in' => $logged_within_month, 'not_logged_in' => $not_logged_within_month, 'logged_in_count' => $logged_within_month_4, 'issued_within_month' => $issued_within_month, 'issued_count' => $issued_within_month_4, 'not_issued' => $not_issued_within_month, 'facilities_offline' => $facilities_offline);
     $view = null;
     if ($ajax != null) {
         $view = "subcounty/ajax/system_usage_filtered_ajax";
     } else {
         $view = "subcounty/ajax/new_system_usage_temporary";
     }
     return $this->load->view($view, $data);
 }
開發者ID:arnold-okoth,項目名稱:HCMP2015,代碼行數:45,代碼來源:reports.php


注:本文中的Facilities::get_facilities_issued_in_month方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。