X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=29a6d7d38c556b7113bb3c03923b1ab62dc630f2;hp=03e6ced7072028c0cc118ec384e99372b8ac5bdf;hb=1091c169df7d9ea3c68adbdd15a223efc4adb328;hpb=252c638b8028a86ba8cb5e315b3f13992b6fa77d diff --git a/include/output.php b/include/output.php index 03e6ced..29a6d7d 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 '+ | ||
+ | ||
+ | ||