summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-10-18 20:00:40 -0700
committerArun Persaud <arun@nubati.net>2008-10-18 20:00:40 -0700
commite1b3eaa640a1e4249b8406e946bd65e902aadfb9 (patch)
treedc899dceb65fb4e09b9cc7f71d90bbce019d3bc5
parent84155be68394d503bc7604f0ca2e2700695241dc (diff)
downloade-DoKo-e1b3eaa640a1e4249b8406e946bd65e902aadfb9.tar.gz
e-DoKo-e1b3eaa640a1e4249b8406e946bd65e902aadfb9.tar.bz2
e-DoKo-e1b3eaa640a1e4249b8406e946bd65e902aadfb9.zip
NEW FEATURE: show how often a hand has been played on the user page
print a number instead of "F" to indicate how often a hand has been played. Signed-off-by: Arun Persaud <arun@nubati.net>
-rw-r--r--include/user.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/user.php b/include/user.php
index dc96377..67c720a 100644
--- a/include/user.php
+++ b/include/user.php
@@ -111,7 +111,8 @@ else
echo "<p>Session: <br />\n";
echo "<span class=\"gamestatuspre\"> p </span> = pre-game phase ";
echo "<span class=\"gamestatusplay\">P </span> = game in progess ";
- echo "<span class=\"gamestatusover\">F </span> = game finished <br />";
+ echo "<span class=\"gamestatusover\">F </span> = game finished ";
+ echo "<span class=\"gamestatusover multi\"><a> N</a> </span> = game finished, hand played by others too <br />";
echo "</p>\n";
$output = array();
@@ -141,7 +142,14 @@ else
if($r[4]=='pre')
echo " <span class=\"gamestatuspre $Multi\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">p </a></span>\n";
else if ($r[4]=='gameover')
- echo " <span class=\"gamestatusover $Multi\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">F </a></span>\n";
+ {
+ echo " <span class=\"gamestatusover $Multi\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">";
+ if($r[5]<2)
+ echo "F ";
+ else
+ echo $r[5];
+ echo "</a></span>\n";
+ }
else
echo " <span class=\"gamestatusplay $Multi\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">P </a></span>\n";
if($r[4] != 'gameover')