From: Arun Persaud Date: Sat, 13 Sep 2008 16:23:34 +0000 (-0700) Subject: BUGFIX: added missing icons for rules X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=b0430639c8bb809dc46252ad240bb883a0937527 BUGFIX: added missing icons for rules made some very simple icons for displaying the rules Signed-off-by: Arun Persaud --- diff --git a/css/standard010.css b/css/standard011.css similarity index 99% rename from css/standard010.css rename to css/standard011.css index 5e36e22..90abd69 100644 --- a/css/standard010.css +++ b/css/standard011.css @@ -430,6 +430,9 @@ div.session div.sessionscore div{ div.session div.sessionscore:hover div{ display:block; } +div.session img.rulesicon { + height: 1em; +} .scoretable{ height:20em; 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 "
\n"; - echo "
Rules (+icons for rules) \n"; - echo "
\n"; + echo "
Rules: "; + switch($RULES['dullen']) + { + case 'none': + echo "\"not\n"; break; + case 'firstwins': + echo "\"ten\n"; break; + case 'secondwins': + echo "\"second\n"; break; + } + switch($RULES['schweinchen']) + { + case 'none': + echo "\"no\n"; break; + case 'both': + echo "\"two\n"; break; + case 'second': + echo "\"second\n"; break; + case 'secondaftercall': + echo "\"second\n"; break; + } + switch($RULES['call']) + { + case '1st-own-card': + echo "\"1st-own-card\"\n"; break; + case '5th-card': + echo "\"5th-card\"\n"; break; + case '9-cards': + echo "\"9-cards\"\n"; break; + } + echo "
\n"; echo " 10ofhearts : {$RULES['dullen']}
\n"; echo " schweinchen: {$RULES['schweinchen']}
\n"; echo " call: {$RULES['call']}
\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() e-Doko - +