This commit is contained in:
liukmqd@gmail.com
2011-04-18 08:44:00 +00:00
parent 23da695efe
commit 1beea76da8
10 changed files with 167 additions and 7 deletions
+5 -1
View File
@@ -73,12 +73,16 @@ class index extends control
$my['bugs'] = $this->dao->select('id, title')->from(TABLE_BUG)->where('assignedTo')->eq($this->session->user->account)->andWhere('deleted')->eq(0)->orderBy('id desc')->limit(10)->fetchPairs();
$my['todos'] = $this->loadModel('todo')->getList('all', $this->session->user->account, 'wait, doing');
/* Set the dynamic pager. */
$this->app->loadClass('pager', true);
$pager = new pager(0, $this->config->index->dynamicCounts);
$this->view->projects = $projects;
$this->view->projectsCount = $projectCount;
$this->view->burns = $burns;
$this->view->stats = $stats;
$this->view->my = $my;
$this->view->actions = $this->loadModel('action')->getDynamic('all', 23);
$this->view->actions = $this->loadModel('action')->getDynamic('all', 'all', 'id_desc', $pager);
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->users['guest']= 'guest'; // append the guest account.
$this->display();