X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=a0b9df3c698b0b573726b3727c8c02392891fe3e;hp=28489a08a50fabd1829b422d81dd1f1a29c03a2d;hb=932a309e7db3043fd22bd497a1f50b0ba09d112f;hpb=1132ca2ccda76df5ed2b1bea6b64015d4dc86880 diff --git a/include/output.php b/include/output.php index 28489a0..a0b9df3 100644 --- a/include/output.php +++ b/include/output.php @@ -96,6 +96,51 @@ function output_form_for_new_game($names) \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 +273,7 @@ function output_header() e-Doko - +