summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-01-05 22:08:17 +0100
committerArun Persaud <arun@nubati.net>2008-01-05 23:21:26 +0100
commitcd8b501f9cc5f726c79c3e6b8ef86b3c764e3dc0 (patch)
tree917c52718acccce5b1717a7aaec5d1100eb872c8 /index.php
parent05f7ac67471127a9fd6cae5bf06d92452992e677 (diff)
downloade-DoKo-cd8b501f9cc5f726c79c3e6b8ef86b3c764e3dc0.tar.gz
e-DoKo-cd8b501f9cc5f726c79c3e6b8ef86b3c764e3dc0.tar.bz2
e-DoKo-cd8b501f9cc5f726c79c3e6b8ef86b3c764e3dc0.zip
NEW FEATURE: show Vorbehalte in each game
Vorbehalte are now shown in the same list as tricks and the score, so that players can go back and have a look at who said what Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'index.php')
-rw-r--r--index.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/index.php b/index.php
index 20fc573..6729d56 100644
--- a/index.php
+++ b/index.php
@@ -1154,6 +1154,31 @@ else if(myisset("me"))
echo "\n<ul class=\"tricks\">\n";
echo " <li class=\"nohighlight\"> Game ".DB_format_gameid($gameid).": </li>\n";
+ /* output vorbehalte */
+ $mygametype = DB_get_gametype_by_gameid($gameid);
+ if($mygametype != "normal") /* only show when needed */
+ {
+ echo " <li onclick=\"hl('0');\" class=\"current\"><a href=\"#\">Pre</a>\n".
+ " <div class=\"trick\" id=\"trick0\">\n";
+ $show = 1;
+ for($mypos=1;$mypos<5;$mypos++)
+ {
+ $usersick = DB_get_sickness_by_pos_and_gameid($mypos,$gameid);
+ if($usersick!=NULL)
+ {
+ echo " <div class=\"vorbehalt".($mypos-1)."\"> Vorbehalt <br />";
+ if($show)
+ echo " $usersick <br />";
+ echo " </div>\n";
+
+ if($mygametype == $usersick)
+ $show = 0;
+ }
+ }
+ echo " </div>\n </li>\n"; /* end div trick, end li trick */
+ }
+
+ /* output tricks */
while($r = mysql_fetch_array($result,MYSQL_NUM))
{
$pos = $r[1];