function getTeamsAllOptions($selected) { require_once 'variables.php'; require_once 'variablesdb.php'; $result = ''; $separator = getTeamsOptionsSeparator(); $oldscope = ''; $teamsInstance = getTeamsArray(); foreach ($teamsInstance as $rowArray) { $scope = $rowArray[2]; if ($scope != $oldscope) { $result .= $separator . '<option value="0">- ' . getTeamScopeName($scope) . '</option>' . $separator; $oldscope = $scope; } $result .= '<option '; if ($rowArray[0] == $selected) { $result .= 'selected '; } $result .= 'value="' . $rowArray[0] . '">' . $rowArray[1] . '</option>'; } return $result; }
?> </td> <td width="50"><?php echo $teamArray[4]; ?> </td> <td width="200"><?php echo $teamArray[2]; ?> </td> <td width="100"><?php echo $teamArray[3]; ?> </td> <td width="150"><?php echo getTeamScopeName($teamArray[0]); ?> </td> </tr> <? } ?> <?php echo getRankBoxBottom(); ?> </td> <td style="vertical-align:top;"> <? if ($category == 1) { $columnTitlesArray = array ('Winner Team Category', 'Loser Team Category', 'Winner Bonus');