* Fix code style.

This commit is contained in:
sgm0422
2020-08-22 23:42:46 +08:00
parent 51329f01b8
commit 1ecc8c4644
11 changed files with 143 additions and 159 deletions
+3 -7
View File
@@ -51,18 +51,14 @@ class program extends control
if($programType === 'bygrid')
{
$projectList = $this->project->getProjectStats($status == 'byproduct' ? 'all' : $status, 0, 0, 30, $orderBy, $pager, 'program');
foreach($projectList as $projectID => $project)
{
$project->teamCount = count($this->project->getTeamMembers($project->id));
}
$programs = $this->program->getProgramStats('all', 20, $orderBy, $pager);
}
else
{
$projectList = $this->program->getList($status, $orderBy, $pager);
$programs = $this->program->getList($status, $orderBy, $pager);
}
$this->view->projectList = $projectList;
$this->view->programs = $programs;
$this->view->status = $status;
$this->view->orderBy = $orderBy;
$this->view->pager = $pager;