Exemplo n.º 1
0
                    case 'H':
                        $res = 'Lost';
                        break;
                    case 'D':
                        $res = 'Drawn';
                        break;
                    case 'A':
                        $res = 'Won';
                        break;
                }
            }
            print <<<EOT
<tr>
\t<td>{$mtch->Date->display_month()}</td>
\t<td><a href="histteamdisp.php?{$oppteam->urlof()}&{$seas->urlof()}" class="nound">{$oppteam->display_name()}</a></td>
\t<td><a href="histshowmtch.php?{$mtch->urlof()}" class="nound">{$res}</a></td>
</tr>

EOT;
        }
    }
    print "</table>\n";
}
if ($team->Wong + $team->Drawng + $team->Lostg != 0) {
    print <<<EOT
<h2>Game Record</h2>
<p>
Game record is For: {$team->Wong} Against: {$team->Lostg} Drawn: {$team->Drawng}.
</p>
<img src="php/piewdl.php?w={$team->Wong}&d={$team->Drawng}&l={$team->Lostg}">
<br />
Exemplo n.º 2
0
            print "<tr><th colspan=\"3\" align=\"center\">Division {$lastdiv}</th></tr>\n";
        }
        print <<<EOT
<tr>
<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>