* Code for project admin.
This commit is contained in:
+12
-16
@@ -294,29 +294,25 @@ class group extends control
|
||||
$this->group->updateProjectAdmin($groupID);
|
||||
return print(js::locate(inlink('manageProjectAdmin', "group=$groupID"), 'parent'));
|
||||
}
|
||||
$group = $this->group->getById($groupID);
|
||||
$groupUsers = $this->group->getUserPairs($groupID);
|
||||
$userPrograms = $this->group->getUserPrograms($groupID);
|
||||
$allUsers = array('' => '') + $groupUsers + $this->loadModel('dept')->getDeptUserPairs($deptID);
|
||||
|
||||
list($programs, $projects, $products, $executions) = $this->group->getObject4AdminGroup();
|
||||
|
||||
$group = $this->group->getById($groupID);
|
||||
|
||||
$title = $this->lang->company->common . $this->lang->colon . $group->name . $this->lang->colon . $this->lang->group->manageMember;
|
||||
$position[] = $group->name;
|
||||
$position[] = $this->lang->group->manageMember;
|
||||
|
||||
$this->view->title = $title;
|
||||
$this->view->position = $position;
|
||||
$this->view->allUsers = $allUsers;
|
||||
$this->view->group = $group;
|
||||
$this->view->deptID = $deptID;
|
||||
$this->view->programs = $programs;
|
||||
$this->view->projects = $projects;
|
||||
$this->view->products = $products;
|
||||
$this->view->executions = $executions;
|
||||
$this->view->deptTree = $this->loadModel('dept')->getTreeMenu($rooteDeptID = 0, array('deptModel', 'createManageProjectAdminLink'), $groupID);
|
||||
$this->view->groupUsers = $groupUsers;
|
||||
$this->view->userPrograms = $userPrograms;
|
||||
$this->view->title = $title;
|
||||
$this->view->position = $position;
|
||||
$this->view->allUsers = array('' => '') + $this->loadModel('dept')->getDeptUserPairs($deptID);
|
||||
$this->view->deptID = $deptID;
|
||||
$this->view->programs = $programs;
|
||||
$this->view->projects = $projects;
|
||||
$this->view->products = $products;
|
||||
$this->view->executions = $executions;
|
||||
$this->view->deptTree = $this->loadModel('dept')->getTreeMenu($rooteDeptID = 0, array('deptModel', 'createManageProjectAdminLink'), $groupID);
|
||||
$this->view->projectAdmins = $this->group->getProjectAdmins();
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user