X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=f694c5b4d833a896e3251f32bd849682ce43b8c8;hp=28489a08a50fabd1829b422d81dd1f1a29c03a2d;hb=9ea0c1fc3eb689bc8e0223595d42d2e3ecae4192;hpb=1132ca2ccda76df5ed2b1bea6b64015d4dc86880 diff --git a/include/output.php b/include/output.php index 28489a0..f694c5b 100644 --- a/include/output.php +++ b/include/output.php @@ -42,66 +42,108 @@ function output_form_for_new_game($names) srand((float) microtime() * 10000000); $randkey = array_rand($names); $rand = $names[$randkey]; - echo "
\n"; + echo "
\n"; $i++; - echo " \n"; foreach($names as $name) { if($name==$rand) { - echo " \n"; + echo " \n"; } else - echo " \n"; + echo " \n"; } - echo " \n
\n"; + echo " \n
\n"; } ?>

Rules

Some areas are grayed out which means that the rule is not implemented yet and therefore cannot be selected

-

Ten of hearts: -

-

-

Schweinchen (both foxes), only in normal games or silent solos: -

+

Call Re/Contra, etc.:

+ \n"; + else + $HTML = "\n\n"; + + $i=0; + + if($caption!="") + $HTML .= " \n"; + + foreach($data as $record) + { + if(!$i) + $HTML .= " \n \n"; + else + { + if($i==1) $HTML .= " \n"; + if($i % 2) + $HTML .= " "; + else + $HTML .= " "; + } + foreach($record as $point) + { + if($i) + $HTML .= " "; + else + $HTML .= " "; + } + + if(!$i) + $HTML .= " \n \n"; + else + { + $HTML .= " \n"; + } + $i++; + } + $HTML .= " \n
$caption
$point$point
\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 "\"".DB_get_card_name($card)."\"\n"; else echo "\"".DB_get_card_name($card-1)."\"\n"; @@ -179,11 +221,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,48 +277,12 @@ function output_header() e-Doko - - + +
-

Welcome to E-Doko (beta)

+

Welcome to E-Doko

der Spielkartenfabrik Altenburg GmbH,(c) ASS Altenburger
\n". " - ASS Altenburger Spielkarten - Spielkartenfabrik Altenburg GmbH
\n". " a Carta Mundi Company Email: info@spielkarten.com Internet: www.spielkarten.com

\n"; - echo "

See the latest changes \n". + echo "

See the latest changes \n". " via git
or download the source via
\n'git clone http://nubati.net/git/e-DoKo.git'
\n". " \n". " \"Greenlast login: ".date("r",$unixtime)."\n"; - }; + echo "

last login: ".date("r",$unixtime)."
\n"; + } + else + { + echo "\n
\n"; + echo "login\n"; + echo "
\n"; + } return; } @@ -355,8 +374,6 @@ function output_select_timezone($name,$timezone="") return; } - - function output_password_recovery($email,$password) { ?> @@ -388,4 +405,18 @@ function output_password_recovery($email,$password) Personal notes:
\n"; + $notes = DB_get_notes_by_userid_and_gameid($userid,$gameid); + foreach($notes as $note) + echo "$note
\n"; + if($userstatus!='gameover') + echo "\n"; + echo " \n"; + + return; +} + ?> \ No newline at end of file