* Move project list to program module.
This commit is contained in:
@@ -124,7 +124,7 @@ $lang->mainNav = new stdclass();
|
||||
$lang->mainNav->my = '<i class="icon icon-menu-my"></i> 地盘|my|index|';
|
||||
$lang->mainNav->program = '<i class="icon icon-menu-project"></i> 项目集|program|pgmindex|';
|
||||
$lang->mainNav->product = '<i class="icon icon-menu-project"></i> 产品|product|productlist|';
|
||||
$lang->mainNav->project = '<i class="icon icon-menu-doc"></i> 项目|project|projectlist|';
|
||||
$lang->mainNav->project = '<i class="icon icon-menu-doc"></i> 项目|program|prjbrowse|';
|
||||
$lang->mainNav->system = '<i class="icon icon-menu-users"></i> 组织|custom|estimate|';
|
||||
$lang->mainNav->admin = '<i class="icon icon-menu-backend"></i> 后台|admin|index|';
|
||||
|
||||
|
||||
@@ -731,6 +731,7 @@ class program extends control
|
||||
*/
|
||||
public function ajaxGetEnterLink($programID = 0)
|
||||
{
|
||||
$this->lang->navGroup->program = 'project';
|
||||
$program = $this->project->getByID($programID);
|
||||
$programProjects = $this->project->getPairs('', $this->session->PRJ);
|
||||
$programProject = key($programProjects);
|
||||
@@ -746,4 +747,33 @@ class program extends control
|
||||
|
||||
die($link);
|
||||
}
|
||||
|
||||
/**
|
||||
* Projects list.
|
||||
*
|
||||
* @param int $programID
|
||||
* @param string $browseType
|
||||
* @param int $param
|
||||
* @param string $orderBy
|
||||
* @param int $recTotal
|
||||
* @param int $recPerPage
|
||||
* @param int $pageID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function PRJBrowse($programID = 0, $browseType = 'all', $param = 0, $orderBy = 'order_desc', $recTotal = 0, $recPerPage = 15, $pageID = 1)
|
||||
{
|
||||
$this->lang->navGroup->program = 'project';
|
||||
/* Load pager and get tasks. */
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
$pager = new pager($recTotal, $recPerPage, $pageID);
|
||||
|
||||
$this->view->projectStats = array();
|
||||
$this->view->pager = $pager;
|
||||
$this->view->programID = $programID;
|
||||
$this->view->browseType = $browseType;
|
||||
$this->view->orderBy = $orderBy;
|
||||
$this->view->stack = '';
|
||||
$this->display();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,34 +29,6 @@ class project extends control
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Projects under project set.
|
||||
*
|
||||
* @param int $programID
|
||||
* @param string $browseType
|
||||
* @param int $param
|
||||
* @param string $orderBy
|
||||
* @param int $recTotal
|
||||
* @param int $recPerPage
|
||||
* @param int $pageID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function projectList($programID = 0, $browseType = 'all', $param = 0, $orderBy = 'order_desc', $recTotal = 0, $recPerPage = 15, $pageID = 1)
|
||||
{
|
||||
/* Load pager and get tasks. */
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
$pager = new pager($recTotal, $recPerPage, $pageID);
|
||||
|
||||
$this->view->projectStats = array();
|
||||
$this->view->pager = $pager;
|
||||
$this->view->programID = $programID;
|
||||
$this->view->browseType = $browseType;
|
||||
$this->view->orderBy = $orderBy;
|
||||
$this->view->stack = '';
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/**
|
||||
* The index page.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user