diff options
author | Arun Persaud <arun@nubati.net> | 2011-10-06 21:27:21 -0700 |
---|---|---|
committer | Arun Persaud <apersaud@lbl.gov> | 2011-10-06 21:27:21 -0700 |
commit | 05708aa3f4cea507b916ed651c8393553d0121f7 (patch) | |
tree | 306ee4ca16dcc85c242a0ae9b6ab52b315dbb9df | |
parent | 92b91104986b28919e4a3603ce1bc7fbde0b8fbb (diff) | |
download | e-DoKo-05708aa3f4cea507b916ed651c8393553d0121f7.tar.gz e-DoKo-05708aa3f4cea507b916ed651c8393553d0121f7.tar.bz2 e-DoKo-05708aa3f4cea507b916ed651c8393553d0121f7.zip |
make list of tricks and what game and session we are more compact.
Also add game type in description for all games, but "normal" ones (which should include silent solos
-rw-r--r-- | include/game.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/game.php b/include/game.php index dcabc67..794ab95 100644 --- a/include/game.php +++ b/include/game.php @@ -274,16 +274,20 @@ if($session) else $next = NULL; + /* check for solo, add game type to session number */ + echo "Game $session.$j"; + if($GT !='normal') + echo " ($GT)"; if(isset($_SESSION['id']) && $_SESSION['id']==$myid) { if($previous) - echo "<a href=\"{$INDEX}?action=game&me=$previous\">"._('previous game')."</a> \n"; - echo "This is game number $j of <a href=\"{$INDEX}?action=game&me=$lasthash\">$i</a> in session $session.\n"; + echo " <a href=\"{$INDEX}?action=game&me=$previous\">"._('previous')."</a> \n"; if($next) - echo " <a href=\"{$INDEX}?action=game&me=$next\">"._('next game')."</a> \n"; + echo " <a href=\"{$INDEX}?action=game&me=$next\">"._('next')."</a> \n"; } - else - echo "This is game number $j of $i in session $session."; + if($j != $i ) + echo " <a href=\"{$INDEX}?action=game&me=$lasthash\">last</a> \n"; + echo "\n</div>\n"; } @@ -399,7 +403,6 @@ switch($mystatus) { /* output sickness of other playes, in case the already selected and are sitting in front of the current player */ echo "\n<ul class=\"tricks\">\n"; - echo " <li class=\"nohighlight\"> Game ".DB_format_gameid($gameid).": </li>\n"; echo " <li onclick=\"hl('0');\" class=\"current\"><a href=\"#\">Pre</a>\n". " <div class=\"trick\" id=\"trick0\">\n"; @@ -528,7 +531,6 @@ switch($mystatus) /* output sickness of other playes, in case they already selected and are sitting in front of the current player */ echo "\n<ul class=\"tricks\">\n"; - echo " <li class=\"nohighlight\"> Game ".DB_format_gameid($gameid).": </li>\n"; echo " <li onclick=\"hl('0');\" class=\"current\"><a href=\"#\">Pre</a>\n". " <div class=\"trick\" id=\"trick0\">\n"; @@ -882,7 +884,6 @@ switch($mystatus) if($myparty=='re' || $myparty=='contra') { echo "\n<ul class=\"tricks\">\n"; - echo " <li class=\"nohighlight\"> Game ".DB_format_gameid($gameid).": </li>\n"; $mygametype = DB_get_gametype_by_gameid($gameid); @@ -1282,7 +1283,6 @@ switch($mystatus) $firstcard = ''; /* first card in a trick */ 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); |