X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=output.php;h=89aedff9d802509517a1ba412e3a40b42716d779;hp=922b439c4edc49240c4f715fc62b8ffbc1ab34bd;hb=35687ace49ce0b41b1380603513d1f04cd6b458f;hpb=9c5af0e78797d2c5c2e3bbf2439bb7b88fc32cdf diff --git a/output.php b/output.php index 922b439..89aedff 100644 --- a/output.php +++ b/output.php @@ -14,14 +14,8 @@ function display_links($email,$password) function output_link_to_user_page($email,$password) { - echo "
\n"; - echo "
\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
\n"; - echo "
\n"; - + echo " go to my user page "; + return; } @@ -31,24 +25,15 @@ function output_user_settings($email,$password) echo "
\n"; echo "

Settings

\n"; - echo "
\n"; - echo " \n"; - echo " \n"; - echo "
\n"; - echo "
\n"; - echo "
\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
\n"; - echo "
\n"; - echo "
\n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
\n"; - echo "
\n"; + echo "change password
use german cards
"; + else + echo "use english cards
"; + echo "
\n"; + return; } @@ -178,9 +163,9 @@ function display_card($card,$dir="english") * convert even cards to the matching odd value */ if( $card/2 - (int)($card/2) == 0.5) - echo "\"".card_to_name($card)."\"\n"; + echo "\"".DB_get_card_name($card)."\"\n"; else - echo "\"".card_to_name($card-1)."\"\n"; + echo "\"".DB_get_card_name($card-1)."\"\n"; return; } @@ -188,9 +173,9 @@ function display_card($card,$dir="english") function display_link_card($card,$dir="english",$type="card") { if( $card/2 - (int)($card/2) == 0.5) - echo "
\"\"
\n"; + echo "
\"".DB_get_card_name($card)."\"
\n"; else - echo "
\"\"
\n"; + echo "
\"".DB_get_card_name($card-1)."\"
\n"; return; } @@ -255,20 +240,36 @@ function output_check_for_sickness($me,$mycards) return; } -function check_want_to_play($me) +function output_form_calls($me) +{ + if( can_call(120,$me) ) + echo " re/contra (120):". + "
"; + if( can_call(90,$me) ) + echo " 90:". + "
"; + if( can_call(60,$me) ) + echo " 60:". + " "; + if( can_call(30,$me) ) + echo " 30:". + " "; + if( can_call(0,$me) ) + echo " 0:". + " ". + " no call:". + " "; +} + + +function output_check_want_to_play($me) { ?>
Do you want to play a game of DoKo? yes no
- - only on my turn
-*/ echo "\n"; echo "\n"; echo "\n"; @@ -379,8 +380,6 @@ function output_header() return; } - - function output_footer() { global $REV,$PREF; @@ -404,4 +403,47 @@ function output_footer() return; } + +function output_status($name) +{ + echo "
\n"; + echo $name; + echo " logout\n"; + echo "
"; + + return; +} + + +function output_password_recovery($email,$password) +{ +?> + +\n"; + echo " \n"; + echo " \n"; +?> +
+ Password recovery + + + + + + + + + + + + + + +
+
+
+ + \ No newline at end of file