* code for task #2552.

This commit is contained in:
Catouse
2016-04-18 16:35:50 +08:00
parent 53a390dd0a
commit ba2eff3f57
9 changed files with 228 additions and 1 deletions
+22
View File
@@ -1208,6 +1208,28 @@ class project extends control
$this->view->orderBy = $orderBy;
$this->view->projectID = $projectID;
$this->view->project = $project;
$this->display();
}
/**
* Tree view.
* Product
*
* @param int $projectID
* @param string $level
* @access public
* @return void
*/
public function tree($projectID, $level = 'pri_asc')
{
$this->project->setMenu($this->projects, $projectID);
$project = $this->loadModel('project')->getById($projectID);
$this->view->title = $this->lang->project->tree;
$this->view->project = $project;
$this->view->projectID = $projectID;
$this->view->level = $level;
$this->view->tree = $this->project->getProjectTree($projectID);
$this->display();
}