X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=output.php;h=44bdfc3cbf4f9c8af0bb0752dce507cb7e28ff4e;hp=911c1842c90f8ef79ff40001cbb40573ba2133b6;hb=ee59b6b39abc3691431b027785341aa308d1313c;hpb=97cd169690383b731eedeb13586e07788ee166ce diff --git a/output.php b/output.php index 911c184..44bdfc3 100644 --- a/output.php +++ b/output.php @@ -2,21 +2,12 @@ /* functions which only ouput html */ -function display_status($gametype) -{ - echo "
"; - echo " Gametype: $gametype"; - echo "
\n"; - - return; -} - function display_news() { global $wiki; echo "
\n". - " Please hit shift+reload.

\n". - " The server now keeps score... (only from now on)

". + " Schweinchen should work now (only for new games).

". " If you find more bugs, please list them in the wiki.\n
\n"; return; @@ -39,7 +30,7 @@ function output_register() { echo "IMPORTANT: passwords are going over the net as clear text, so pick an easy password. No need to pick anything complicated here ;)

"; echo "TODO: convert timezone into a menu
\n"; - echo "TODO: figure out a way to handle passwrods
\n"; + echo "TODO: figure out a way to handle passwords
\n"; ?>
@@ -70,12 +61,16 @@ function output_register() function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) { + global $RULES; + echo "Do you want to continue playing?(This will start a new game, with the next person as dealer.)\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo "\n"; @@ -83,40 +78,79 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) return; } -function output_form_for_new_game() +function output_form_for_new_game($names) { ?> -

Please add 4 names, please make sure that the names are correct!

+

Players

+

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

- Name: - Name: - Name: - Name: - + \n"; + foreach($names as $name) + { + if($name==$rand) + { + echo " \n"; + } + else + echo " \n"; + } + echo " \n"; + } +?> +

Rules

+

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

+

ten of hearts: +

    +
  • just normal non-trump
  • +
  • first ten of hearts wins the trick
  • +
  • second ten of hearts wins the trick
  • +
+

+

schweinchen (both foxes), only in normal games or silent solos: +

    +
  • none
  • +
  • + both become highest trump (automatic call at beginning of the game) +
  • +
  • + first one normal, second one becomes highest (call during the game)
  • +
  • + second one become highest only in case re/contra was announced (not working yet) +
  • +
+

+
\n"; + echo "\"".card_to_name($card)."\"\n"; else - echo "\"".card_to_name($card-1)."\"\n"; + echo "\"".card_to_name($card-1)."\"\n"; return; } -function display_link_card($card) +function display_link_card($card,$dir="english") { if( $card/2 - (int)($card/2) == 0.5) - echo "\"\"\n"; + echo "\"\"\n"; else - echo "\"\"\n"; + echo "\"\"\n"; return; } @@ -191,10 +225,12 @@ function check_want_to_play($me) yes no
+ only on my turn
-\n"; echo "\n"; echo "\n"; @@ -215,11 +251,15 @@ function output_home_page() Login - + + - + + - + + +
@@ -268,7 +308,6 @@ function output_header()

Welcome to E-Doko

-

Revision: $REV

\n"; + echo "

copyright 2006-2007 Arun Persaud

\n"; + echo "

Revision: $REV;

\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n";