+ add the feature of import 2 today.

This commit is contained in:
wangchunsheng
2009-11-06 08:16:52 +00:00
parent 63582e6c90
commit 28df2d4e89
6 changed files with 47 additions and 11 deletions
+9 -6
View File
@@ -46,16 +46,19 @@ class my extends control
$header['title'] = $this->lang->my->common . $this->lang->colon . $this->lang->my->todo;
$position[] = $this->lang->my->todo;
$importFeature = ($date == 'before');
$todos = $this->todo->getList($date, $account, $status);
if((int)$date == 0) $date = $this->todo->today();
/* 赋值。*/
$this->assign('header', $header);
$this->assign('position', $position);
$this->assign('tabID', 'todo');
$this->assign('dates', $this->todo->buildDateList());
$this->assign('date', $date);
$this->assign('todos', $todos);
$this->assign('header', $header);
$this->assign('position', $position);
$this->assign('tabID', 'todo');
$this->assign('dates', $this->todo->buildDateList());
$this->assign('date', $date);
$this->assign('todos', $todos);
$this->assign('importFeature', $importFeature);
$this->display();
}