From 26aa6987c5da1f102e81c4625ed8e7b116c7590b Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Fri, 16 Jan 2009 21:29:18 -0800 Subject: NEW FEATURE: always show current score on main page show the current score as the link to the score table --- include/game.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'include/game.php') diff --git a/include/game.php b/include/game.php index bb3202d..086a2f9 100644 --- a/include/game.php +++ b/include/game.php @@ -174,10 +174,23 @@ if($session) echo " schweinchen: {$RULES['schweinchen']}
\n"; echo " call: {$RULES['call']}
\n"; echo " \n \n"; - echo "
Score \n"; + + /* show score */ $score = generate_score_table($session); + $tmpscore= $score; + $finalscore = array_pop($tmpscore); + $finalscore = $finalscore['players']; + + echo "
Score: \n"; + foreach($finalscore as $user=>$value) + { + $name = DB_get_name('userid',$user); + echo " ".substr($name,0,2).": $value "; + } echo format_score_table_html($score,$myid); echo "
\n"; + + /* figure out which game in a session we are in and link to the previous and next game if possible */ $hashes = DB_get_hashes_by_session($session,$myid); $next = NULL; $i = 1; -- cgit v1.2.3-18-g5258