</table> <? writeStatus(); ?> <BR> <form method=POST action="chess.php" name=chess> <input type=hidden name="gameID" value="<?=$_SESSION["gameID"]?>"> <table border='0' width=300 bgcolor=black cellspacing=1 cellpading=1> <tr><th bgcolor='beige' colspan='3'>NOTES TO SELF <? if ($opponent_language != ""){ $language = $MSG_LANG[strtolower($opponent_language)]; //echo " (".$MSG_LANG['opponentlanguage'].": ".$language.")"; } ?> </th></tr> <tr><td bgcolor=white align=left><?= writeNote($_SESSION['gameID'])?></td></tr> <tr><td align=center bgcolor=white><input type=text name=note_msg size=30 onClick="stopTimer=1"><input type=submit value="<?=$MSG_LANG["write"]?>"></td></tr> </table> </form> <? writeTime(); ?> <BR> <? if (!isBoardDisabled() && mysql_num_rows($tmpGames) == 0) writePoints(); ?> <BR> <!-- <input type="button" style="font-size: 8pt; font-weight: bold; font-family: verdana; cursor: hand" value="<?=$MSG_LANG["resign"]?>" <? if (isBoardDisabled()) echo("disabled='yes'"); else echo ("onClick='resigngame($CFG_MIN_ROUNDS,\"".$MSG_LANG["roundwarning"]."\")'"); ?>> <input type="button" style="font-size: 8pt; font-weight: bold; font-family: verdana; cursor: hand" value="<?=$MSG_LANG["askdraw"]?>" <? if (isBoardDisabled()) echo("disabled='yes'"); else echo ("onClick='draw($CFG_MIN_ROUNDS,\"".$MSG_LANG["roundwarning"]."\")'"); ?>> --> <table width="300" cellspacing=1 bordercolor="black" bgcolor=black boarder="0" cellpading=1>
function addNote($datadir, $title, $text) { do { $id = mt_rand(MIN_ID, MAX_ID); } while (is_file(getFileName($datadir, $id))); return writeNote($datadir, $id, $title, $text); }
<form method=POST action="chess.php" name=chess> <input type=hidden name="game_id" value="<?php echo $_SESSION["game_id"]; ?> "> <table border='0' width=300 bgcolor=black cellspacing=1 cellpading=1> <tr><th bgcolor='beige' colspan='3'>NOTES TO SELF <? if ($opponent_language != ""){ $language = $MSG_LANG[strtolower($opponent_language)]; //echo " (".$MSG_LANG['opponentlanguage'].": ".$language.")"; } ?> </th></tr> <tr><td bgcolor=white align=left><?php echo writeNote($game_id); ?> </td></tr> <tr><td align=center bgcolor=white><input type=text name=note_msg size=30 onClick="stopTimer=1"><input type=submit value="<?php echo $MSG_LANG["write"]; ?> "></td></tr> </table> </form> <? writeTime(); ?> <BR> <? if (!isBoardDisabled() && mysql_num_rows($tmpGames) == 0) writePoints(); ?> <BR>