summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/game.php37
-rw-r--r--include/output.php2
2 files changed, 36 insertions, 3 deletions
diff --git a/include/game.php b/include/game.php
index 8feda71..b509de3 100644
--- a/include/game.php
+++ b/include/game.php
@@ -126,8 +126,41 @@ if(myisset('call') && $_REQUEST['call'] == '0' && can_call(0,$me))
if($session)
{
echo "<div class=\"session\">\n";
- echo " <div class=\"sessionrules\">Rules (+icons for rules) \n";
- echo " <div>\n";
+ echo " <div class=\"sessionrules\">Rules: ";
+ switch($RULES['dullen'])
+ {
+ case 'none':
+ echo "<img class=\"rulesicon\" alt=\"not ten of hearts\" src=\"pics/button/no-ten-of-hearts.png\"/>\n"; break;
+ case 'firstwins':
+ echo "<img class=\"rulesicon\" alt=\"ten of hearts\" src=\"pics/button/ten-of-hearts.png\"/>\n"; break;
+ case 'secondwins':
+ echo "<img class=\"rulesicon\" alt=\"second ten of hearts\" src=\"pics/button/second-ten-of-hearts.png\"/>\n"; break;
+ }
+ switch($RULES['schweinchen'])
+ {
+ case 'none':
+ echo "<img class=\"rulesicon\" alt=\"no schweinchen\" ".
+ "src=\"pics/button/no-schweinchen.png\"/>\n"; break;
+ case 'both':
+ echo "<img class=\"rulesicon\" alt=\"two schweinchen \" ".
+ "src=\"pics/button/two-schweinchen.png\"/>\n"; break;
+ case 'second':
+ echo "<img class=\"rulesicon\" alt=\"second schweinchen\" ".
+ "src=\"pics/button/second-schweinchen.png\"/>\n"; break;
+ case 'secondaftercall':
+ echo "<img class=\"rulesicon\" alt=\"second schweinchen after call\" ".
+ "src=\"pics/button/second-schweinchen-after-call.png\"/>\n"; break;
+ }
+ switch($RULES['call'])
+ {
+ case '1st-own-card':
+ echo "<img class=\"rulesicon\" alt=\"1st-own-card\" src=\"pics/button/1st-own-card.png\"/>\n"; break;
+ case '5th-card':
+ echo "<img class=\"rulesicon\" alt=\"5th-card\" src=\"pics/button/5th-card.png\"/>\n"; break;
+ case '9-cards':
+ echo "<img class=\"rulesicon\" alt=\"9-cards\" src=\"pics/button/9-cards.png\"/>\n"; break;
+ }
+ echo " <div>\n";
echo " 10ofhearts : {$RULES['dullen']} <br />\n";
echo " schweinchen: {$RULES['schweinchen']} <br />\n";
echo " call: {$RULES['call']} <br />\n";
diff --git a/include/output.php b/include/output.php
index 0c75173..db9e2f1 100644
--- a/include/output.php
+++ b/include/output.php
@@ -270,7 +270,7 @@ function output_header()
<title>e-Doko</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
<link rel="shortcut icon" type="image/x-icon" href="pics/edoko-favicon.png" />
- <link rel="stylesheet" type="text/css" href="css/standard010.css" />
+ <link rel="stylesheet" type="text/css" href="css/standard011.css" />
<script type="text/javascript">
var current=0;
function hl(num) {