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=62ab2643f8485c5de99871c64d6f8d2c30fe6582;hb=932a309e7db3043fd22bd497a1f50b0ba09d112f;hpb=8141a807cda3a5387e3288e4d644cde94b9ab8fd diff --git a/include/output.php b/include/output.php index 62ab264..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,8 +273,9 @@ function output_header() e-Doko - +