* Finish task #9006.

This commit is contained in:
holan20180123
2021-01-19 10:54:11 +08:00
parent 2a65df963e
commit 097f76364e
5 changed files with 39 additions and 10 deletions
+10 -1
View File
@@ -78,14 +78,23 @@ class program extends control
$programs = $this->program->getPGMList($status, $orderBy, null, true);
}
/* Get PM id list. */
$accounts = array();
foreach($programs as $program)
{
if(!empty($program->PM) and !in_array($program->PM, $accounts)) $accounts[] = $program->PM;
}
$PMList = $this->loadModel('user')->getListByAccounts($accounts, 'account');
$this->view->title = $this->lang->program->PGMBrowse;
$this->view->position[] = $this->lang->program->PGMBrowse;
$this->view->programs = $programs;
$this->view->status = $status;
$this->view->orderBy = $orderBy;
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->view->users = $this->user->getPairs('noletter');
$this->view->programType = $programType;
$this->view->PMList = $PMList;
$this->display();
}