status != 'done' and $execution->status != 'closed' and $execution->PM == $this->app->user->account) $iCharges++; if($execution->status != 'done' and $execution->status != 'closed' and !($execution->PM == $this->app->user->account)) $others++; if($execution->status == 'done' or $execution->status == 'closed') $dones++; $executionNames[] = $execution->name; } $executionsPinYin = common::convert2Pinyin($executionNames); foreach($executions as $execution) { if($execution->status != 'done' and $execution->status != 'closed' and $execution->PM == $this->app->user->account) { $myProjectsHtml .= html::a(sprintf($link, $execution->id), " " . $execution->name, '', "class='text-important' title='{$execution->name}' data-key='" . zget($executionsPinYin, $execution->name, '') . "'"); } else if($execution->status != 'done' and $execution->status != 'closed' and !($execution->PM == $this->app->user->account)) { $normalProjectsHtml .= html::a(sprintf($link, $execution->id), " " . $execution->name, '', "title='{$execution->name}' data-key='" . zget($executionsPinYin, $execution->name, '') . "'"); } else if($execution->status == 'done' or $execution->status == 'closed') $closedProjectsHtml .= html::a(sprintf($link, $execution->id), " " . $execution->name, '', "title='{$execution->name}' data-key='" . zget($executionsPinYin, $execution->name, '') . "'"); } ?>
{$lang->execution->mine}
"; echo $myProjectsHtml; if(!empty($myProjectsHtml)) { echo "
{$lang->execution->other}
"; } } echo $normalProjectsHtml; ?>