$executions) { $executionCounts[$projectID]['myExecution'] = 0; $executionCounts[$projectID]['others'] = 0; $executionCounts[$projectID]['closed'] = 0; foreach($executions as $execution) { if($execution->status != 'done' and $execution->status != 'closed' and ($execution->PM == $this->app->user->account or isset($execution->teams[$this->app->user->account]))) $executionCounts[$projectID]['myExecution'] ++; if($execution->status != 'done' and $execution->status != 'closed' and $execution->PM != $this->app->user->account and !isset($execution->teams[$this->app->user->account])) $executionCounts[$projectID]['others'] ++; if($execution->status == 'done' or $execution->status == 'closed') $executionCounts[$projectID]['closed'] ++; $onlyChildStage = $execution->grade == 2 and $execution->project != $execution->parent; $executionNames[$execution->id] = $execution->name; if($onlyChildStage and isset($parents[$execution->parent])) { $executionNames[$execution->id] = $parents[$execution->parent]->name . '/' . $execution->name; } } } $executionsPinYin = common::convert2Pinyin($executionNames); $myExecutionsHtml = ''; ?>