X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=9564b823cbc121f0a7c896587a7cba9eb0e1e188;hp=e57ed04cad615c53a182cab0170086ffad5578ff;hb=8114e8920b56b4f078d2b3ff8d283cdf4d18c679;hpb=6437c15bdaac379a15d7e6392122f027d8254ec6 diff --git a/include/output.php b/include/output.php index e57ed04..9564b82 100644 --- a/include/output.php +++ b/include/output.php @@ -28,6 +28,10 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) function output_form_for_new_game($names) { + $copy_names = $names; /* local copy, so that we can delete names from it + * after we selected them to make sure that each name + * only shows up once + */ ?>

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

@@ -35,13 +39,27 @@ function output_form_for_new_game($names)
table \n"; $i++; echo " 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) +
  • + second one become highest only in case re/contra was announced
  • Call Re/Contra, etc.:

    @@ -143,7 +161,7 @@ function display_card($card,$dir="english") /* cards are only availabl for the odd values, e.g. 1.png, 3.png, ... * convert even cards to the matching odd value */ - if( $card/2 - (int)($card/2) == 0.5) + if( $card/2 - (int)($card/2) == 0.5 || $card == 0) echo "\"".DB_get_card_name($card)."\"\n"; else echo "\"".DB_get_card_name($card-1)."\"\n"; @@ -221,11 +239,18 @@ function output_check_for_sickness($me,$mycards) return; } -function output_form_calls($me) +function output_form_calls($me,$myparty) { if( can_call(120,$me) ) - echo " re/contra (120):". - "
    "; + { + if($myparty=='re') + echo "re (120):"; + else if ($myparty=='contra') + echo "contra (120):"; + else + echo " re/contra (120):"; + echo "
    "; + } if( can_call(90,$me) ) echo " 90:". "
    "; @@ -270,48 +295,12 @@ function output_header() e-Doko - - + +
    -

    Welcome to E-Doko (beta)

    +

    Welcome to E-Doko

    der Spielkartenfabrik Altenburg GmbH,(c) ASS Altenburger
    \n". " - ASS Altenburger Spielkarten - Spielkartenfabrik Altenburg GmbH
    \n". " a Carta Mundi Company Email: info@spielkarten.com Internet: www.spielkarten.com

    \n"; - echo "

    See the latest changes \n". + echo "

    See the latest changes \n". " via git
    or download the source via
    \n'git clone http://nubati.net/git/e-DoKo.git'
    \n". " \n". " \"Greenlast login: ".date("r",$unixtime)."

    \n"; - }; + echo "
    last login: ".date("r",$unixtime)."
    \n"; + } + else + { + echo "\n
    \n"; + echo "login\n"; + echo "
    \n"; + } return; } @@ -428,4 +423,18 @@ function output_password_recovery($email,$password) Personal notes:
    \n"; + $notes = DB_get_notes_by_userid_and_gameid($userid,$gameid); + foreach($notes as $note) + echo "$note
    \n"; + if($userstatus!='gameover') + echo "\n"; + echo " \n"; + + return; +} + ?> \ No newline at end of file