* adjust for workload.

This commit is contained in:
wangyidong
2015-08-04 14:44:13 +08:00
parent 60d6d5a63c
commit 4d0ff8f8c8
4 changed files with 38 additions and 15 deletions
+9
View File
@@ -115,6 +115,15 @@ class report extends control
*/
public function workload($begin = '', $end = '', $workday = 7, $dept = 0)
{
if($_POST)
{
$data = fixer::input('post')->get();
$begin = $data->begin;
$end = $data->end;
$dept = $data->dept;
$workday = $data->workday;
}
$begin = $begin ? date('Y-m-d', strtotime($begin)) : date('Y-m-d', strtotime('now'));
$end = $end ? date('Y-m-d', strtotime($end)) : date('Y-m-d', strtotime('+1 week'));