X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=e4a06e8f078488ae373a192cf2f03607052989da;hp=db9e2f12a64062e8ffe611547500026ef71eefdb;hb=4b622dbdb85fbb3512a881ec4786a05f6cd4701c;hpb=b0430639c8bb809dc46252ad240bb883a0937527 diff --git a/include/output.php b/include/output.php index db9e2f1..e4a06e8 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,30 @@ 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.:

    @@ -221,11 +242,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 +298,12 @@ function output_header() e-Doko - - + +
    -

    Welcome to E-Doko (beta)

    +

    Welcome to E-Doko

    \ No newline at end of file