Example #1
0
    private static function matchSummaryView($recentMatches, $upcomingMatches)
    {
        global $lng;
        ?>
        <div id="Games">
            <table id="GamesTable">
                <tbody>
                    <tr><td colspan="4"><h3><?php 
        echo $lng->getTrn("common/recentmatches");
        ?>
</h3></td></tr>
                    <?php 
        Mobile_HTMLOUT::outputMatchesRows($recentMatches);
        ?>
                    <tr><td colspan="4"><h3><?php 
        echo $lng->getTrn("common/upcomingmatches");
        ?>
</h3></td></tr>
                    <?php 
        Mobile_HTMLOUT::outputMatchesRows($upcomingMatches);
        ?>
                </tbody>
            </table>
            <div>
                <a href="index.php?mobile=1&section=matches&type=usersched"><?php 
        echo $lng->getTrn('menu/matches_menu/usersched');
        ?>
</a>
            </div>
            
            <div id="MatchDialog" data-bind="with: matchDialogViewModel">
                <div data-bind="if: matchIsLocked">
                    <?php 
        Mobile_HTMLOUT::readonlyMatchView();
        ?>
                </div>
                <div data-bind="ifnot: matchIsLocked">
                    <?php 
        Mobile_HTMLOUT::editableMatchView();
        ?>
                </div>
            </div>
        </div>
        <?php 
    }