Example #1
0
		<tr>
		<td class="eb_td eb_tdc1 eb_w40">' . EB_EVENTM_L152 . '</td>
		<td class="eb_td"><select class="tbox" name="eventformat" ' . $disabled_str . '>';
            $text .= '<option value="Single Elimination" ' . ($event->getField('Format') == "Single Elimination" ? 'selected="selected"' : '') . '>' . EB_EVENTM_L153 . '</option>';
            $text .= '<option value="Double Elimination" ' . ($event->getField('Format') == "Double Elimination" ? 'selected="selected"' : '') . '>' . EB_EVENTM_L158 . '</option>';
            $text .= '</select>
		</td>
		</tr>
		';
            break;
    }
    //<!-- Rounds -->
    $matchups = $event->getMatchups();
    $nbrRounds = count($matchups);
    // work around for events without rounds
    $event->initRounds();
    if ($nbrRounds > 0) {
        $text .= '
		<tr>
		<td class="eb_td eb_tdc1 eb_w40">' . ($nbrRounds - 1) . ' ' . EB_EVENTM_L4 . '</td>
		<td class="eb_td">';
        $rounds = unserialize($event->getFieldHTML('Rounds'));
        $text .= '<table class="table_left"><tbody>';
        $text .= '<tr>';
        $text .= '<th>' . EB_EVENTM_L144 . '</th>';
        $text .= '<th>' . EB_EVENTM_L145 . '</th>';
        $text .= '<th>' . EB_EVENTM_L146 . '</th>';
        $text .= '</tr>';
        for ($round = 1; $round < $nbrRounds; $round++) {
            $text .= '<tr>';
            $text .= '<td>' . EB_EVENTM_L144 . ' ' . $round . '</td>';