示例#1
0
<?php 
foreach ($championship->getGroups() as $key => $group) {
    $teams = $leaguemanager->getTeams("`league_id` = '" . $league->id . "' AND `season` = '" . $league->season . "' AND `group` = '" . $group . "'");
    $matches = $leaguemanager->getMatches("`league_id`= '" . $league->id . "' AND `season` = '" . $league->season . "' AND `final` = '' AND `group` = '" . $group . "'");
    ?>

<h4><?php 
    printf(__('Group %s', 'leaguemanager'), $group);
    ?>
</h4>
<h5><?php 
    _e('Standings', 'leaguemanager');
    ?>
</h5>
<?php 
    leaguemanager_standings($league->id, array('season' => $league->season, 'group' => $group));
    ?>

<h5><?php 
    _e('Match Plan', 'leaguemanager');
    ?>
</h5>
<?php 
    leaguemanager_matches($league->id, array('season' => $league->season, 'group' => $group));
    ?>

<?php 
}
?>

<h5><?php 
示例#2
0
	<?php 
    if ($league->mode == 'championship') {
        ?>
		<?php 
        leaguemanager_championship($league->id, array('season' => $league->season));
        ?>
	<?php 
    } else {
        ?>
		<!-- Standings Table -->
		<h4><?php 
        _e('Standings', 'leaguemanager');
        ?>
</h4>
		<?php 
        leaguemanager_standings($league->id, array('season' => $league->season));
        ?>


		<!-- Match Overview -->
		<h4><?php 
        _e('Matches', 'leaguemanager');
        ?>
</h4>
		<?php 
        leaguemanager_matches($league->id, array('season' => $league->season, 'archive' => $archive));
        ?>

		<!-- Crosstable -->
		<h4><?php 
        _e('Crosstable', 'leaguemanager');