From b22032b3181b49cf01ef66217316a7b78b5045c9 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 17 Jan 2009 23:08:29 -0800 Subject: 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 --- include/user.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include/user.php') 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 "
"; echo "

These are all your games:

\n"; + /* output legend */ echo "

Session:
\n"; echo " p = pre-game phase "; echo "P = game in progess "; - echo "F = game finished "; - echo " N = game finished, hand played by others too
"; + echo "E = game ended "; + echo "N = N games with same hand
"; echo "

\n"; $output = array(); @@ -124,9 +125,11 @@ else " ORDER BY G.session,G.create_date" ); $gamenrold = -1; + $count = 0; echo "\n \n
\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 " "; if($r[5]<2) - echo "F "; + echo "E "; else echo $r[5]; echo "\n"; @@ -173,6 +176,10 @@ else } echo "
\n"; + /* give a hint for new players */ + if($count<10) + echo "

You can start new games using the link in the top right corner!

\n"; + /* display last 5 users that have signed up to e-DoKo */ $names = DB_get_names_of_new_logins(5); echo "

New Players:

\n

\n"; -- cgit v1.2.3-18-g5258