} ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <?php $Title = "Add Match division {$div} OK"; include 'php/head.php'; ?> <body> <script language="javascript" src="webfn.js"></script> <?php $showadmmenu = true; include 'php/nav.php'; print <<<EOT <h1>Create Match division {$div} successful</h1> <p> Successfully completed creation of Match between {$mtch->Hteam->display_name()} and {$mtch->Ateam->display_name()} set for {$mtch->Date->display()}. </p> <p><a href="updmatch.php?{$mtch->urlof()}" title="Add team members to match">Click here</a> to add team members.</p> EOT; ?> </div> </div> </body> </html>
} print <<<EOT <tr> <td>{$mtch->Date->display_month()}</td> EOT; $ht = $mtch->Hteam->display_name(); $at = $mtch->Ateam->display_name(); if ($mtch->is_allocated()) { if ($mtch->Result == 'H') { $ht = "<b>{$ht}</b>"; } else { if ($mtch->Result == 'A') { $at = "<b>{$at}</b>"; } } $ref = "<a href=\"showmtch.php?{$mtch->urlof()}\" class=\"noundd\">"; print "<td>{$ref}{$ht}</a></td><td>{$ref}{$at}</a></td>\n"; } else { $href = $aref = $hndref = $andref = ''; if ($admin) { $href = "<a href=\"tcupdmatch.php?{$mtch->urlof()}&hora=H\" class=\"noundm\">"; $aref = "<a href=\"tcupdmatch.php?{$mtch->urlof()}&hora=A\" class=\"noundm\">"; $hndref = $andref = "</a>"; } else { $c = $mtch->is_captain($username); if ($c == 'H' || $c == 'B') { $href = "<a href=\"tcupdmatch.php?{$mtch->urlof()}&hora=H\" class=\"noundm\">"; $hndref = "</a>"; } if ($c == 'A' || $c == 'B') { $aref = "<a href=\"tcupdmatch.php?{$mtch->urlof()}&hora=A\" class=\"noundm\">";
} print <<<EOT <tr> <td>{$mtch->Date->display_month()}</td> EOT; $ht = $mtch->Hteam->display_name(); $at = $mtch->Ateam->display_name(); if ($mtch->teamalloc()) { if ($mtch->Result == 'H') { $ht = "<b>{$ht}</b>"; } else { if ($mtch->Result == 'A') { $at = "<b>{$at}</b>"; } } $ref = "<a href=\"showmtch.php?{$mtch->urlof()}\" class=\"nound\">"; print "<td>{$ref}{$ht}</a></td><td>{$ref}{$at}</a></td>\n"; } else { print "<td>{$ht}</td><td>{$at}</td>\n"; } print "<td>{$mtch->summ_score()}</td></tr>\n"; } } else { print "<tr><td colspan=\"4\" align=\"center\">No matches yet</td></tr>\n"; } ?> </table> <h2>Previous Seasons</h2> <p><a href="league.php">Click here</a> to view the league table and/or league tables and matches from previous seasons.</p> </div>
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="teamdisp.php?{$oppteam->urlof()}" class="nound">{$oppteam->display_name()}</a></td> \t<td><a href="showmtch.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 />
while ($row = mysql_fetch_array($ret)) { $ind = $row[0]; $mtch = new Match($ind); $mtch->fetchdets(); if ($mtch->Division != $lastdiv) { $lastdiv = $mtch->Division; print "<tr><th colspan=\"3\" align=\"center\">Division {$lastdiv}</th></tr>\n"; } print <<<EOT <tr> <td>{$mtch->Date->display()}</td> EOT; // Only allow guy to fiddle with matches that haven't been played if ($mtch->Result == 'N' || $mtch->Result == 'P') { print <<<EOT <td><a href="updmatch.php?{$mtch->urlof()}">{$mtch->Hteam->display_name()}</a></td> <td><a href="updmatch.php?{$mtch->urlof()}">{$mtch->Ateam->display_name()}</a></td> EOT; // Only allow guy to delete matches which have had no games played if ($mtch->Result == 'N') { // Elide quotes from team names so we don't get in a muddle print <<<EOT <td><a href="javascript:okdel({$mtch->query_ind()}, '{$mtch->Hteam->noquote()}','{$mtch->Ateam->noquote()}','{$mtch->Date->display()}')">Delete match</a></td> EOT; } } else { // If match has been played, just display the names print <<<EOT <td>{$mtch->Hteam->display_name()}</td> <td>{$mtch->Ateam->display_name()}</td> EOT;