X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=86db0a0a9e5599e5030e38b3c37822177af43a24;hp=28489a08a50fabd1829b422d81dd1f1a29c03a2d;hb=077ab356084fa26910200f28a9cd44a954f291eb;hpb=1132ca2ccda76df5ed2b1bea6b64015d4dc86880 diff --git a/include/output.php b/include/output.php index 28489a0..86db0a0 100644 --- a/include/output.php +++ b/include/output.php @@ -42,60 +42,102 @@ function output_form_for_new_game($names) srand((float) microtime() * 10000000); $randkey = array_rand($names); $rand = $names[$randkey]; - echo "
\n"; + echo "
\n"; $i++; - echo " \n"; foreach($names as $name) { if($name==$rand) { - echo " \n"; + echo " \n"; } else - echo " \n"; + echo " \n"; } - echo " \n
\n"; + echo " \n
\n"; } ?>

Rules

Some areas are grayed out which means that the rule is not implemented yet and therefore cannot be selected

-

Ten of hearts: -

-

-

Schweinchen (both foxes), only in normal games or silent solos: -

+

Call Re/Contra, etc.:

+ \n"; + else + $HTML = "\n\n"; + + $i=0; + + if($caption!="") + $HTML .= " \n"; + + foreach($data as $record) + { + if(!$i) + $HTML .= " \n \n"; + else + { + if($i==1) $HTML .= " \n"; + if($i % 2) + $HTML .= " "; + else + $HTML .= " "; + } + foreach($record as $point) + { + if($i) + $HTML .= " "; + else + $HTML .= " "; + } + + if(!$i) + $HTML .= " \n \n"; + else + { + $HTML .= " \n"; + } + $i++; + } + $HTML .= " \n
$caption
$point$point
\n"; + + return $HTML; +} + function display_card($card,$dir="english") { /* cards are only availabl for the odd values, e.g. 1.png, 3.png, ... @@ -228,7 +270,7 @@ function output_header() e-Doko - +