summaryrefslogtreecommitdiffstats
path: root/include/output.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-06-08 10:29:20 -0700
committerArun Persaud <arun@nubati.net>2008-06-08 10:29:20 -0700
commit36b10f3b006cfc919fdb657e1f06f41969082f0e (patch)
treef1a91f45332c6ca19eb5605778485b2cd4d4661b /include/output.php
parent02b7328ec7f2c4d9eb7862553da000f386830017 (diff)
downloade-DoKo-36b10f3b006cfc919fdb657e1f06f41969082f0e.tar.gz
e-DoKo-36b10f3b006cfc919fdb657e1f06f41969082f0e.tar.bz2
e-DoKo-36b10f3b006cfc919fdb657e1f06f41969082f0e.zip
BUGIFX: notes are now available during every phase of the game
you can now take notes also during the pre-game phase. Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/output.php')
-rw-r--r--include/output.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/output.php b/include/output.php
index e57ed04..2f846be 100644
--- a/include/output.php
+++ b/include/output.php
@@ -428,4 +428,18 @@ function output_password_recovery($email,$password)
<?php
}
+
+function output_user_notes($userid,$gameid,$userstatus)
+{
+ echo "<div class=\"notes\"> Personal notes: <br />\n";
+ $notes = DB_get_notes_by_userid_and_gameid($userid,$gameid);
+ foreach($notes as $note)
+ echo "$note <hr />\n";
+ if($userstatus!='gameover')
+ echo "<input name=\"note\" type=\"text\" size=\"15\" maxlength=\"100\" />\n";
+ echo "</div> \n";
+
+ return;
+}
+
?> \ No newline at end of file