X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=f4d3fdf0de0f08738fbbe379adab41d842bfd7c1;hp=23c9199876bf5873cc189c7defb8962e308f400d;hb=f99c17830bcf298a9b05d04a48f9c1b6548a231b;hpb=6521e1d46f2541a7144c28e39e0a25bfea62a880 diff --git a/include/output.php b/include/output.php index 23c9199..f4d3fdf 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 '
';