X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=1f67bd1aa88b022e95545cba245a8e7f042318e7;hp=bdc1caa994c6eda3f8ee410934d55aa5cc79779e;hb=9d2e48f960548296e71256a282bbf2bec3efbd47;hpb=1d7d5131dff614192a146b839e2781e8a65fdc03
diff --git a/include/output.php b/include/output.php
index bdc1caa..1f67bd1 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 '
';
@@ -293,60 +296,60 @@ function output_check_for_sickness($me,$mycards)
function output_form_calls($me,$myparty)
{
- $highstart = "";
- $highend = "";
+ $highstart = ' ';
+ $highend = '';
$tmp = can_call(120,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
if($myparty=='re')
- echo "re (120):";
+ echo ' re (120):';
else if ($myparty=='contra')
- echo "contra (120):";
+ echo ' contra (120):';
else
- echo " re/contra (120):";
- echo " ";
+ echo ' re/contra (120):';
+ echo ' ';
if($tmp==2) echo $highend;
- echo "
\n";
+ echo "\n";
}
- $tmp = can_call(90,$me);
+ $tmp = can_call(90,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
- echo " 90:".
- " ";
+ echo ' 90:'.
+ ' ';
if($tmp==2) echo $highend;
- echo "
\n";
+ echo "\n";
}
$tmp = can_call(60,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
- echo " 60:".
- " ";
+ echo ' 60:'.
+ ' ';
if($tmp==2) echo $highend;
- echo "
\n";
+ echo "\n";
}
$tmp = can_call(30,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
- echo " 30:".
- " ";
+ echo ' 30:'.
+ ' ';
if($tmp==2) echo $highend;
- echo "
\n";
+ echo "\n";
}
$tmp = can_call(0,$me);
if( $tmp )
{
if($tmp==2) echo $highstart;
- echo " 0:".
- " ";
+ echo ' 0:'.
+ ' ';
if($tmp==2) echo $highend;
- echo "
\n".
- " no call:".
- "
";
+ echo "\n".
+ ' no call:'.
+ ' '."\n";
}
}
@@ -376,14 +379,41 @@ function output_header()
e-Doko
-
-
+
+
+
+
@@ -401,19 +431,19 @@ function output_header()
function output_footer()
{
- global $REV,$PREF;
+ global $REV, $PREF, $INDEX;
echo "\n\n";
echo "\n";