Esempio n. 1
0
                switch ($mtch->Result) {
                    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}">
Esempio n. 2
0
EOT;
}
?>
<p><b>Please note</b> you can click on players, opposing teams and results for more details.</p>
<?php 
$ret = mysql_query("select seasind from histteam where {$team->queryof()} order by seasind");
if ($ret && mysql_num_rows($ret) > 0) {
    print <<<EOT
<h2>Previous Seasons</h2>
<p>Select from the following to see the performance of {$team->display_name()} in previous seasons.
</p>
<table>

EOT;
    while ($row = mysql_fetch_array($ret)) {
        $s = new Season($row[0]);
        $s->fetchdets();
        print "<tr><td><a href=\"histteamdisp.php?{$team->urlof('htn')}&{$s->urlof()}\" class=\"nound\">{$s->display_name()}</a></td></tr>\n";
    }
    print <<<EOT
</table>

EOT;
}
?>
</div>
</div>
</body>
</html>