summaryrefslogtreecommitdiffstats
path: root/include/functions.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-05-11 22:16:55 -0700
committerArun Persaud <arun@nubati.net>2009-05-11 22:16:55 -0700
commit51cc704dab09b2027b911a111e4eec2041a14cb1 (patch)
tree5d1c5b993e352e64b7473d1d88a36ba31f66f94b /include/functions.php
parent14e3ecf14c8b5cc2c1d89940ec61ca8d7a303326 (diff)
parent0edb4b26c049e07af0970e081fab699d2bdd333b (diff)
downloade-DoKo-51cc704dab09b2027b911a111e4eec2041a14cb1.tar.gz
e-DoKo-51cc704dab09b2027b911a111e4eec2041a14cb1.tar.bz2
e-DoKo-51cc704dab09b2027b911a111e4eec2041a14cb1.zip
Merge branch 'master' of /home/arun/nubati.net/git/e-DoKo
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index e57c2e5..3e21e6d 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -816,6 +816,7 @@ function display_table ()
$call = $r[5];
$hash = $r[7];
$timezone = $r[8];
+ $wins = DB_get_number_of_tricks($gameid,$pos);
date_default_timezone_set($defaulttimezone);
$lastlogin = strtotime($r[6]);
date_default_timezone_set($timezone);
@@ -939,6 +940,22 @@ function display_table ()
"last login: ".date("Y-m-d H:i:s",$lastlogin)."\">".
"<img src=\"pics/button/time-info.png\" class=\"tinybutton\" alt=\"time info\" />".
"</span>\n";
+
+ /* show how many tricks the person made */
+ switch($wins)
+ {
+ case 0:
+ echo "#tricks 0"; break;
+ case 1:
+ echo "#tricks 1"; break;
+ case 2:
+ case 3:
+ case 4:
+ echo "#tricks few"; break;
+ default:
+ echo "#tricks many"; break;
+ }
+
echo " </div>\n";
}