+ add time select.

This commit is contained in:
zhujinyong
2012-06-29 02:46:28 +00:00
parent d19a61c708
commit f2de2cfd08
+17 -1
View File
@@ -59,8 +59,24 @@ class report extends control
$this->display();
}
public function workload()
public function workload($begin = 0, $end = 0)
{
if($begin == 0)
{
$begin = date('Y-m-d', strtotime('last month'));
}
else
{
$begin = date('Y-m-d', strtotime($begin));
}
if($end == 0)
{
$end = date('Y-m-d', strtotime('now'));
}
else
{
$end = date('Y-m-d', strtotime($end));
}
$this->view->header->title = $this->lang->report->workload;
$this->view->workload = $this->report->getWorkload();
$this->display();