summaryrefslogtreecommitdiffstats
path: root/include/user.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-01-17 23:08:29 -0800
committerArun Persaud <arun@nubati.net>2009-01-17 23:08:29 -0800
commitb22032b3181b49cf01ef66217316a7b78b5045c9 (patch)
tree7d91d976ef19e2f1d258031898495b962d51d227 /include/user.php
parent44e91af3fd631752e4de74673b591bce17ce7a79 (diff)
downloade-DoKo-b22032b3181b49cf01ef66217316a7b78b5045c9.tar.gz
e-DoKo-b22032b3181b49cf01ef66217316a7b78b5045c9.tar.bz2
e-DoKo-b22032b3181b49cf01ef66217316a7b78b5045c9.zip
CLEANUP: changed the user page a bit and added a hint for newbies
started adding hints for newbies (to edoko not doko) on how to use the program
Diffstat (limited to 'include/user.php')
-rw-r--r--include/user.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/user.php b/include/user.php
index be0d68a..3b5303c 100644
--- a/include/user.php
+++ b/include/user.php
@@ -108,11 +108,12 @@ else
/* display all games the user has played */
echo "<div class=\"user\">";
echo "<h4>These are all your games:</h4>\n";
+ /* output legend */
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 ";
- echo "<span class=\"gamestatusover multi\"><a> N</a> </span> = game finished, hand played by others too <br />";
+ echo "<span class=\"gamestatusover\">E </span> = game ended ";
+ echo "<span class=\"gamestatusover multi\"><a>N</a> </span> = N games with same hand <br />";
echo "</p>\n";
$output = array();
@@ -124,9 +125,11 @@ else
" ORDER BY G.session,G.create_date" );
$gamenrold = -1;
+ $count = 0;
echo "<table>\n <tr><td>\n";
while( $r = DB_fetch_array($result))
{
+ $count++;
$game = DB_format_gameid($r[1]);
$gamenr = (int) $game;
if($gamenrold < $gamenr)
@@ -145,7 +148,7 @@ else
{
echo " <span class=\"gamestatusover $Multi\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">";
if($r[5]<2)
- echo "F ";
+ echo "E ";
else
echo $r[5];
echo "</a></span>\n";
@@ -173,6 +176,10 @@ else
}
echo "</td></tr>\n</table>\n";
+ /* give a hint for new players */
+ if($count<10)
+ echo "<p class=\"newbiehint\">You can start new games using the link in the top right corner!</p>\n";
+
/* display last 5 users that have signed up to e-DoKo */
$names = DB_get_names_of_new_logins(5);
echo "<h4>New Players:</h4>\n<p>\n";