X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=47fddfea50ae2aeab4261edf75cd4c1f9fbb1af8;hp=38356ddb46035d62e9ecbabae2293259283ed055;hb=ec0599c27c8cd38cfc7e9939d753b2d9a262db00;hpb=5e1a0bda25ddea405798e52388de4dd0a05d356c
diff --git a/include/output.php b/include/output.php
index 38356dd..47fddfe 100644
--- a/include/output.php
+++ b/include/output.php
@@ -1,5 +1,5 @@
\n";
- echo "
Settings \n";
- echo "Change password ";
-
- echo " Card set \n";
- if( $PREF["cardset"] == "english" )
- echo "Change to German cards ";
- else
- echo "Change to English cards ";
-
- echo " Email \n";
- if( $PREF["email"] == "emailaddict" )
- echo "Change to non-addicted mode (emails for each move) ";
- else
- echo "Change to addicted mode (minimal amount of emails) ";
-
- echo "\n";
-
- return;
-}
-
function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid)
{
global $RULES;
@@ -54,13 +29,11 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid)
function output_form_for_new_game($names)
{
?>
- Players
- Please select four players (or use the randomly pre-selected names)
- Remember: you need to be one of the players ;)
-
\n";
+ else
+ $HTML = "\n\n";
+
+ $i=0;
+
+ if($caption!="")
+ $HTML .= " $caption \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 .= " $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";
@@ -254,35 +270,48 @@ function output_header()
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".
" ";
- echo $name;
- echo " logout ";
+ echo "\n
\n";
/* last logon time */
@@ -337,11 +371,37 @@ function output_status()
$unixtime = strtotime($time);
date_default_timezone_set($zone);
- echo "last login: ".date("r",$unixtime)."
\n";
- };
+ echo "last login: ".date("r",$unixtime)."
\n";
+ }
+ else
+ {
+ echo "\n\n";
+ echo "
login \n";
+ echo "
\n";
+ }
return;
}
+function output_select_timezone($name,$timezone="")
+{
+ $Tzone = array ( "Europe/London" => "London",
+ "Europe/Berlin" => "Berlin",
+ "America/Vancouver" => "Berkeley",
+ "Pacific/Auckland" => "Wellington" );
+
+ echo " \n";
+
+ foreach($Tzone as $zone=>$city)
+ {
+ if($timezone==$zone)
+ echo " $city \n";
+ else
+ echo " $city \n";
+ }
+ echo " \n";
+
+ return;
+}
function output_password_recovery($email,$password)
{
@@ -374,4 +434,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