* Finish task #40518,#40519.

This commit is contained in:
tianshujie98
2021-07-26 09:27:12 +08:00
parent 029e98d6bf
commit c18b85dbda
13 changed files with 274 additions and 111 deletions
+7
View File
@@ -216,6 +216,8 @@ class project extends control
$this->loadModel('execution');
$this->session->set('projectList', $this->app->getURI(true), 'project');
$projectType = $this->cookie->projectType ? $this->cookie->projectType : 'bylist';
/* Load pager and get tasks. */
$this->app->loadClass('pager', $static = true);
$pager = new pager($recTotal, $recPerPage, $pageID);
@@ -232,10 +234,15 @@ class project extends control
$this->view->programID = $programID;
$this->view->program = $this->program->getByID($programID);
$this->view->programTree = $this->project->getTreeMenu(0, array('projectmodel', 'createManageLink'), 0, 'list');
$this->view->programs = array('0' => '') + $this->program->getParentPairs();
$this->view->users = $this->loadModel('user')->getPairs('noletter|pofirst|nodeleted');
$this->view->browseType = $browseType;
$this->view->projectType = $projectType;
$this->view->param = $param;
$this->view->orderBy = $orderBy;
$this->view->recTotal = $recTotal;
$this->view->recPerPage = $recPerPage;
$this->view->pageID = $pageID;
$this->display();
}