Пример #1
0
                            <?php 
    } elseif ($match->getMapSelectionMode() == "bo3_modeb") {
        ?>
                                <td width="50" style="text-align: center;">
                                    <?php 
        foreach ($match->getMaps() as $index => $map) {
            foreach ($map->getMapsScore() as $score) {
                $bo3_score1 = $score->getScore1Side1() + $score->getScore1Side2();
                $bo3_score2 = $score->getScore2Side1() + $score->getScore2Side2();
                \ScoreColorUtils::colorForScore($bo3_score1, $bo3_score2);
                $bo3_score .= $index + 1 . ". Map: " . $bo3_score1 . " - " . $bo3_score2 . "<br>";
            }
            if (!count($map->getMapsScore())) {
                $bo3_score1 = 0;
                $bo3_score2 = 0;
                \ScoreColorUtils::colorForScore($bo3_score1, $bo3_score2);
                $bo3_score .= $index + 1 . ". Map: " . $bo3_score1 . " - " . $bo3_score2 . "<br>";
            }
        }
        ?>
                                    <a href="#" class="bo3" data-toggle="popover" data-trigger="hover" data-html="true"
                                    data-content='<?php 
        echo $bo3_score;
        ?>
'><?php 
        echo $score1;
        ?>
 - <?php 
        echo $score2;
        ?>
</a>
Пример #2
0
                                                    <?php 
            echo link_to(__("Display all Matches"), "seasons/select", array('query_string' => "id=" . $season->getId() . "&site=archived"));
            ?>
                                                </td></tr>
                                            </tfoot>
                                            <?php 
            break;
            ?>
                                        <?php 
        }
        ?>
                                        <tr>
                                            <?php 
        $score1 = $match->getScoreA();
        $score2 = $match->getScoreB();
        \ScoreColorUtils::colorForScore($score1, $score2);
        $team1 = $match->getTeamA()->exists() ? $match->getTeamA() : $match->getTeamAName();
        $team1_flag = $match->getTeamA()->exists() ? "<i class='flag flag-" . strtolower($match->getTeamA()->getFlag()) . "'></i>" : "<i class='flag flag-" . strtolower($match->getTeamAFlag()) . "'></i>";
        $team2 = $match->getTeamB()->exists() ? $match->getTeamB() : $match->getTeamBName();
        $team2_flag = $match->getTeamB()->exists() ? "<i class='flag flag-" . strtolower($match->getTeamB()->getFlag()) . "'></i>" : "<i class='flag flag-" . strtolower($match->getTeamBFlag()) . "'></i>";
        ?>
                                            <td style="padding-left: 10px;">
                                                <span style="float:left"><?php 
        echo $team1_flag . " " . $team1;
        ?>
</span>
                                            </td>
                                            <td width="50">
                                                <div><?php 
        echo $score1;
        ?>
Пример #3
0
?>
</th>
        </tr>
    </thead>
    <tbody>
        <?php 
foreach ($pager->getResults() as $match) {
    ?>
            <?php 
    $score1 = $match->getScoreA();
    $score2 = $match->getScoreB();
    \ScoreColorUtils::colorForScore($score1, $score2);
    $team1 = $match->getTeamA();
    $team2 = $match->getTeamB();
    if ($match->getMap() && $match->getMap()->exists()) {
        \ScoreColorUtils::colorForMaps($match->getMap()->getCurrentSide(), $team1, $team2);
    }
    ?>
            <tr>
                <td width="20"  style="padding-left: 10px;">
                    <span style="float:left">#<?php 
    echo $match->getId();
    ?>
</span>
                </td>
                <td width="100"  style="padding-left: 10px;">
                    <span style="float:left"><?php 
    echo $team1;
    ?>
</span>
                </td>
Пример #4
0
</td>
                            <td><?php 
echo $match->getTeamB()->exists() ? $match->getTeamB() : $match->getTeamBName();
?>
</td>
                        </tr>
                        <?php 
foreach ($match->getMap()->getMapsScore() as $score) {
    ?>
                            <?php 
    $score1_side1 = $score->score1_side1;
    $score1_side2 = $score->score1_side2;
    $score2_side1 = $score->score2_side1;
    $score2_side2 = $score->score2_side2;
    ScoreColorUtils::colorForScore($score1_side1, $score2_side1);
    ScoreColorUtils::colorForScore($score1_side2, $score2_side2);
    ?>
                            <?php 
    if ($score->getTypeScore() != "normal") {
        ?>
                                <tr>
                                    <th colspan="3"><?php 
        echo __("Overtime");
        ?>
</th>
                                </tr>
                            <?php 
    }
    ?>
                            <tr>
                                <th width="200"><?php