Beispiel #1
0
<td>{$mtch->Date->display_month()}</td>
EOT;
        $ht = $mtch->Hteam->display_name();
        $at = $mtch->Ateam->display_name();
        if ($mtch->Result == 'H') {
            $ht = "<b>{$ht}</b>";
        } else {
            if ($mtch->Result == 'A') {
                $at = "<b>{$at}</b>";
            }
        }
        $ref = "<a href=\"histshowmtch.php?{$mtch->urlof()}\" class=\"nound\">";
        print <<<EOT
<td>{$ref}{$ht}</a></td>
<td>{$ref}{$at}</a></td>
<td>{$mtch->summ_score()}</td>
</tr>

EOT;
    }
} else {
    print "<tr><td colspan=\"4\" align=\"center\">No matches to display</td></tr>\n";
}
?>
</table>
<h2>Other Seasons</h2>
<p>Please <a href="javascript:history.back()">click here</a> to go back.</p>
</div>
</div>
</body>
</html>
Beispiel #2
0
and
{$mtch->Ateam->display_name()} ({$mtch->Ateam->display_description()})
for
{$mtch->Date->display_month()}.
</p>

EOT;
if ($mtch->Defaulted) {
    $wdef = $mtch->Result == 'A' ? $mtch->Ateam : $mtch->Hteam;
    print <<<EOT
<p>This match was defaulted in favour of {$wdef->display_name()}.</p>

EOT;
} else {
    print <<<EOT
<p>The final score was {$mtch->summ_score()}</p>
<p>Player and board assignments were as follows:</p>
<table class="showmatch">
<tr><th colspan="3" align="center">White</th><th colspan="2" align="center">Black</th><th>Result</th></tr>
<tr><th>Date</th><th>Player</th><th>Team</th><th>Player</th><th>Team</th></tr>
EOT;
    foreach ($mtch->Games as $g) {
        $bpre = $bpost = $wpre = $wpost = "";
        switch ($g->Result) {
            case 'W':
                $wpre = "<b>";
                $wpost = "</b>";
                break;
            case 'B':
                $bpre = "<b>";
                $bpost = "</b>";