本文整理匯總了PHP中Facilities::get_facilities_not_in_month方法的典型用法代碼示例。如果您正苦於以下問題:PHP Facilities::get_facilities_not_in_month方法的具體用法?PHP Facilities::get_facilities_not_in_month怎麽用?PHP Facilities::get_facilities_not_in_month使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Facilities
的用法示例。
在下文中一共展示了Facilities::get_facilities_not_in_month方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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);
}