X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=3eb813013d5e7d9f33e290235a65f30a89a3a438;hp=dc10fa3d5e2f8e967961c257e86ba1862a5bb276;hb=61ced3e42a77e624e2209a94c5f324a2071eef7d;hpb=46319a55bbfaddcf07fed1c19120563807d9670d diff --git a/include/output.php b/include/output.php index dc10fa3..3eb8130 100644 --- a/include/output.php +++ b/include/output.php @@ -1,5 +1,5 @@ \n"; + else + $HTML = "\n\n"; + + $i=0; + + 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
$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 +270,9 @@ function output_header() e-Doko - + @@ -291,15 +346,20 @@ function output_footer() function output_status() { - global $defaulttimezone; + global $defaulttimezone,$INDEX,$WIKI; if(isset($_SESSION["name"])) { $name = $_SESSION["name"]; /* logout info */ - echo "\n
"; - echo $name; - echo " logout"; + echo "\n
\n"; + echo $name,"\n"; + echo " | mypage \n"; + echo " | settings\n"; + echo " | new game\n"; + echo " | statistics\n"; + echo " | wiki\n"; + echo " |    logout\n"; echo "
\n"; /* last logon time */