<p>Please <a href="javascript:history.back()">click here</a> to go back or <a href="teamsupd.php">here</a> to update teams.</p> </div> </div> </body> </html> EOT; exit(0); } foreach ($result as $p) { $p->fetchdets(); } return $result; } $Htmemb = checkteam($mtch->Hteam); $Atmemb = checkteam($mtch->Ateam); ?> <h1>Edit Match</h1> <?php // Output select team member and if recorded display W or B function selectmemb($ha, $n, $mch, $team, $membs) { $colour = 0; $matchm = false; if (count($mch->Games) > $n) { $g = $mch->Games[$n]; // We might have half-allocated teams in which case // the White or Black team is not defined if ($g->Wteam && $g->Wteam->is_same($team)) { $matchm = $g->Wplayer; $colour = 1;
EOT; exit(0); } foreach ($result as $p) { $p->fetchdets(); } return $result; } if ($hora == 'H') { $Myteam = $mtch->Hteam; $Histeam = $mtch->Ateam; } else { $Myteam = $mtch->Ateam; $Histeam = $mtch->Hteam; } $Tmemb = checkteam($Myteam); ?> <script language="javascript" src="webfn.js"></script> <?php include 'php/nav.php'; ?> <h1>Allocate team members to match</h1> <?php print <<<EOT <p>This page is for allocation of members of the {$Myteam->display_name()} ({$Myteam->display_description()}) for the division {$mtch->Division} match in {$mtch->Date->display_month()} against {$Histeam->display_name()} ({$Histeam->display_description()}). </p> <p>Please select or reselect team members using the form below.