* code for task#1066.

This commit is contained in:
zhujinyong
2013-01-06 08:12:41 +00:00
parent 0c1b21dd4d
commit b6da64af0e
13 changed files with 376 additions and 322 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ class user extends control
$this->loadModel('company')->setMenu();
$this->loadModel('dept');
$this->loadModel('todo');
$this->loadModel('date');
}
/**
@@ -71,7 +72,7 @@ class user extends control
/* Get user, totos. */
$user = $this->dao->findByAccount($account)->from(TABLE_USER)->fetch();
$todos = $this->todo->getList($type, $account, $status, 0, $pager);
$date = (int)$type == 0 ? $this->todo->today() : $type;
$date = (int)$type == 0 ? $this->date->today() : $type;
$header['title'] = $this->lang->company->orgView . $this->lang->colon . $this->lang->user->todo;
$position[] = $this->lang->user->todo;