X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=d71d11afd0c1bee7f0cbf1a10404273bfa7bedf0;hp=23c9199876bf5873cc189c7defb8962e308f400d;hb=6da798e39be09e3cea651be2c7d826b79450a1f8;hpb=6521e1d46f2541a7144c28e39e0a25bfea62a880 diff --git a/include/output.php b/include/output.php index 23c9199..d71d11a 100644 --- a/include/output.php +++ b/include/output.php @@ -202,12 +202,15 @@ function display_card($card,$dir="english") return; } -function display_link_card($card,$dir="english",$type="card") +function display_link_card($card,$dir="english",$type="card", $selected=0) { + if($selected) + $selected = 'checked="checked"'; + if( $card/2 - (int)($card/2) == 0.5) - echo "
\"".DB_get_card_name($card)."\"
\n"; + echo "
\"".DB_get_card_name($card)."\"
\n"; else - echo "
\"".DB_get_card_name($card-1)."\"
\n"; + echo "
\"".DB_get_card_name($card-1)."\"
\n"; return; } @@ -219,14 +222,14 @@ function output_check_for_sickness($me,$mycards) echo ''; echo ' '._('Do you want to play solo?').''; echo ' '; echo '
'; @@ -368,17 +371,17 @@ function output_header() { global $REV; ?> - - + + e-Doko - - - + + + + + -
+
'._('Welcome to E-Doko').' '; ?> -
+ "; @@ -429,7 +436,7 @@ function output_footer() global $REV, $PREF, $INDEX; echo "\n\n"; - echo "
\n"; + echo "
\n"; + echo "\n"; echo "\n"; echo "\n"; @@ -483,12 +490,6 @@ function output_status() echo "
"._('last login').": ".date("r",$unixtime)."
\n"; } - else - { - echo "\n
\n"; - echo ""._('login')."\n"; - echo "
\n"; - } return; }