$projectExecutions) { $executionCounts[$projectID]['myExecution'] = 0; $executionCounts[$projectID]['others'] = 0; $executionCounts[$projectID]['closed'] = 0; foreach($projectExecutions 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'] ++; $executionNames[] = $execution->name; } } $executionsPinYin = common::convert2Pinyin($executionNames); $myExecutionsHtml = $config->systemMode == 'new' ? '