/*ul.tricks li:hover div.table{ display:block; }*/
/* left player */
-ul.tricks li div div.card0 img,ul.tricks li div div.card0 .score, .vorbehalt0 {
+ul.tricks li div div.card0 img,
+ul.tricks li div div.card0 .score,
+.vorbehalt0 {
position:absolute;
margin:0;
padding:0;
width:6%;
z-index:30;
}
+
.vorbehalt0 {
left:37.5%;
right:57.5%;
}
/* top player */
-ul.tricks li div div.card1 img,ul.tricks li div div.card1 .score, .vorbehalt1 {
+ul.tricks li div div.card1 img,
+ul.tricks li div div.card1 .score,
+.vorbehalt1 {
position:absolute;
margin:0;
padding:0;
}
/* right player */
-ul.tricks li div div.card2 img,ul.tricks li div div.card2 .score, .vorbehalt2{
+ul.tricks li div div.card2 img,
+ul.tricks li div div.card2 .score,
+.vorbehalt2{
position:absolute;
margin:0;
padding:0;
}
/* bottom player */
-ul.tricks li div div.card3 img,ul.tricks li div div.card3 .score, .vorbehalt3{
+ul.tricks li div div.card3 img,
+ul.tricks li div div.card3 .score,
+.vorbehalt3{
position:absolute;
margin:0;
padding:0;
$gameids[]=$r[0];
return $gameids;
}
+
+function DB_get_number_of_tricks($gameid,$position)
+{
+ $r = DB_query_array("SELECT COUNT(winner) FROM Trick Where game_id='$gameid' and winner='$position'");
+ return $r[0];
+}
?>
\ No newline at end of file
$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);
"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";
}
/* end of trick? */
if($seq==4)
{
+ $winner = get_winner($play,$gametype); /* returns the position */
echo " </div>\n </li>\n"; /* end div trick, end li trick */
}
}