({$g->Wplayer->display_rank()}) of {$g->Wteam->display_name()} as White and <b>{$g->Bplayer->display_name(false)}</b> ({$g->Bplayer->display_rank()}) of {$g->Bteam->display_name()} as Black. </p> <form name="resform" action="addresult2.php" method="post" enctype="multipart/form-data"> {$g->save_hidden()} <p> EOT; $today = new Matchdate(); $today->dateopt("Game was played on"); print <<<EOT </p> <p>Please note that if the game is adjourned or crosses midnight, KGS normally stores the date it was <i>started</i> so please use that.</p> <p><b>If you got the colours the wrong way round, please click <a href="javascript:checkreverse('{$g->urlof()}')">here</a>.</b></p> <p> Result was <select name="result" size="0"> <option value="W">White Win</option> <option value="B">Black Win</option> <option value="J">Jigo</option> </select> by <select name="resulttype" size="0"> <option value="N">Not known</option> <option value="R">Resign</option> <option value="T">Time</option> EOT; for ($v = 0; $v < 50; $v++) { print "<option value={$v}>{$v}.5</option>\n";
// (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. include 'php/session.php'; include 'php/checklogged.php'; include 'php/opendatabase.php'; include 'php/club.php'; include 'php/rank.php'; include 'php/player.php'; include 'php/team.php'; include 'php/teammemb.php'; include 'php/match.php'; include 'php/matchdate.php'; include 'php/game.php'; $g = new Game(); try { $g->fromget(); $g->fetchdets(); } catch (GameException $e) { $mess = $e->getMessage(); include 'php/wrongentry.php'; exit(0); } $g->reversecolours(); $comefrom = $_SERVER['HTTP_REFERER']; header("Location: {$comefrom}?{$g->urlof()}");
<p> Editing result for Game between <?php print <<<EOT <b>{$g->Wplayer->display_name(false)}</b> ({$g->Wplayer->display_rank()}) of {$g->Wteam->display_name()} as White and <b>{$g->Bplayer->display_name(false)}</b> ({$g->Bplayer->display_rank()}) of {$g->Bteam->display_name()} as Black. </p> EOT; if ($g->Result != 'N') { print <<<EOT <p>If the result is completely wrong and should be deleted as if the game had not been played <a href="delres.php?{$g->urlof()}">click here</a>.</p> EOT; } print <<<EOT <form action="fixres3.php" name="resform" method="post" enctype="multipart/form-data"> {$g->save_hidden()} <p> EOT; $g->Date->dateopt("Game was played on"); $ws = $bs = $js = $selr = $selt = $selh = ""; $seln = " selected"; $selnum = 999; switch ($g->Result) { case 'W': $ws = " selected"; if (preg_match('/W\\+(.*)(\\.5)?/', $g->Resultdet, $rm)) {