X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=e79fecf03839f4d6811b9f22cf1508e06a5ce5e4;hp=13bc6f78afe7f7b7e20df445f8f25ec1ab2ebfb2;hb=92b91104986b28919e4a3603ce1bc7fbde0b8fbb;hpb=5e3f5fe45c7d05a85f5e36637b3dd937e1ac3596 diff --git a/include/output.php b/include/output.php index 13bc6f7..e79fecf 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 "
\n"; + echo "\n"; else - echo "\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 '+ | ||
+ | ||
+ | ||