X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=42f40856ad35ec1240b07a6b74b0206baaa2d1f0;hp=23c9199876bf5873cc189c7defb8962e308f400d;hb=21973b9985f6325315721cba1c4e046fbbe3a1f0;hpb=6521e1d46f2541a7144c28e39e0a25bfea62a880;ds=sidebyside diff --git a/include/output.php b/include/output.php index 23c9199..42f4085 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 '+ | ||
+ | ||
+ | ||
@@ -595,10 +562,10 @@ function output_user_notes($userid,$gameid,$userstatus) echo " |