X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=33f7b199d4b9e0c9e18b3f1a99a49fabdeb2b0fe;hp=dc10fa3d5e2f8e967961c257e86ba1862a5bb276;hb=7a11a1918c28f15403ad3f77254988fe9f25d82e;hpb=46319a55bbfaddcf07fed1c19120563807d9670d
diff --git a/include/output.php b/include/output.php
index dc10fa3..33f7b19 100644
--- a/include/output.php
+++ b/include/output.php
@@ -1,5 +1,5 @@
\n
+ Rules
+ Gameplay-related
+ Ten of hearts:
+
+
+
+ Schweinchen (both foxes), only in normal games or silent solos:
+
+
+
+ Call Re/Contra, etc.:
+
+
+
+ Scoring-related
+ (not yet implemented)
+
+
\n";
+
+ $i=0;
+
+ if($caption!="")
+ $HTML .= " $caption \n";
+
+ foreach($data as $record)
+ {
+ if(!$i)
+ $HTML .= " \n \n";
+ else
+ {
+ if($i==1) $HTML .= "
\n";
+ $HTML .= " ";
+ }
+ foreach($record as $point)
+ {
+ if($i)
+ $HTML .= " $point | ";
+ else
+ $HTML .= " $point | ";
+ }
+
+ if(!$i)
+ $HTML .= "
\n \n";
+ else
+ {
+ $HTML .= " \n";
+ }
+ $i++;
+ }
+ $HTML .= " \n\n";
+
+ return $HTML;
+}
+
function display_card($card,$dir="english")
{
/* cards are only availabl for the odd values, e.g. 1.png, 3.png, ...
* convert even cards to the matching odd value */
- if( $card/2 - (int)($card/2) == 0.5)
+ if( $card/2 - (int)($card/2) == 0.5 || $card == 0)
echo "\n";
else
echo "\n";
@@ -179,11 +245,18 @@ function output_check_for_sickness($me,$mycards)
return;
}
-function output_form_calls($me)
+function output_form_calls($me,$myparty)
{
if( can_call(120,$me) )
- echo " re/contra (120):".
- "
";
+ {
+ if($myparty=='re')
+ echo "re (120):";
+ else if ($myparty=='contra')
+ echo "contra (120):";
+ else
+ echo " re/contra (120):";
+ echo "
";
+ }
if( can_call(90,$me) )
echo " 90:".
"
";
@@ -228,35 +301,20 @@ function output_header()
e-Doko
-
+
+
+
+
\n\n";
echo "