X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=c6d78e32bfa53931d0c5fdb3bbc7437b841cd897;hp=13bc6f78afe7f7b7e20df445f8f25ec1ab2ebfb2;hb=0b8f00b41b22dc971f8415f1e6de4700ea86c0fb;hpb=5e3f5fe45c7d05a85f5e36637b3dd937e1ac3596 diff --git a/include/output.php b/include/output.php index 13bc6f7..c6d78e3 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 "\n"; else - echo "
\"".DB_get_card_name($card-1)."\"
\n"; + echo "\n"; return; } @@ -219,14 +222,14 @@ function output_check_for_sickness($me,$mycards) echo ''; echo ' '._('Do you want to play solo?').''; echo ' '; echo '
'; @@ -368,56 +371,29 @@ function output_header() { global $REV; ?> - - + + e-Doko - - - + + + + + + + -
+
'._('Welcome to E-Doko').' '; ?> -
+ "; @@ -429,20 +405,18 @@ function output_footer() global $REV, $PREF, $INDEX; echo "\n\n"; - echo "
\n"; - echo "

copyright 2006,2007,2008,2009,2010 Arun Persaud, et al.
\n". + echo "

\n"; - + echo "\n\n"; echo "\n"; echo "\n"; @@ -479,15 +453,9 @@ function output_status() echo " | "._('wiki/bugs')."\n"; echo " | "._('atom')."\n"; echo " |    "._('logout')."\n"; - echo "\n"; + echo "\n\n"; - echo "
"._('last login').": ".date("r",$unixtime)."
\n"; - } - else - { - echo "\n
\n"; - echo ""._('login')."\n"; - echo "
\n"; + echo "
"._('last login').": ".date("r",$unixtime)."
\n\n"; } return; } @@ -571,13 +539,13 @@ function output_password_recovery($email,$password) Password recovery - + - + - + @@ -595,10 +563,10 @@ function output_user_notes($userid,$gameid,$userstatus) echo "
"._('Personal notes').":
\n"; $notes = DB_get_notes_by_userid_and_gameid($userid,$gameid); foreach($notes as $note) - echo "$note
\n"; + echo " $note
\n"; if($userstatus!='gameover') - echo "\n"; - echo "
\n"; + echo " \n"; + echo "\n\n"; return; }