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=397ed64f84c170be8713498d06c07c5476f7a146;hb=61ced3e42a77e624e2209a94c5f324a2071eef7d;hpb=880dfb2e715a3770de56fb525f5c90d28a6ccb4c;ds=sidebyside diff --git a/include/output.php b/include/output.php index 397ed64..3eb8130 100644 --- a/include/output.php +++ b/include/output.php @@ -1,5 +1,5 @@ -

Players

-

Please select four players (or use the randomly pre-selected names)

-

Remember: you need to be one of the players ;)

-
+ +

Select players (Remember: you need to be one of the players)

- table + table \n"; $i++; - echo " Name: \n \n"; foreach($names as $name) { if($name==$rand) @@ -60,6 +58,7 @@ function output_form_for_new_game($names) } ?>
+

Rules

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

Ten of hearts: @@ -97,6 +96,48 @@ function output_form_for_new_game($names) \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, ... @@ -229,8 +270,9 @@ function output_header() e-Doko - + @@ -292,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 */