X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Ffunctions.php;h=3e21e6d3e4ebcc82253879b3cf237b38eff33654;hp=e57c2e593f8a7bd5fc915423f76f31b19a721f9d;hb=0edb4b26c049e07af0970e081fab699d2bdd333b;hpb=03d6cd5ba13a0aac918734c1f797df4f149d9194 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)."\">". "\"time". "\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 " \n"; }