X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=86db0a0a9e5599e5030e38b3c37822177af43a24;hp=38356ddb46035d62e9ecbabae2293259283ed055;hb=077ab356084fa26910200f28a9cd44a954f291eb;hpb=5e1a0bda25ddea405798e52388de4dd0a05d356c
diff --git a/include/output.php b/include/output.php
index 38356dd..86db0a0 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, ...
@@ -254,8 +270,9 @@ function output_header()
e-Doko
-
+
@@ -317,15 +346,20 @@ function output_footer()
function output_status()
{
- global $defaulttimezone;
+ global $defaulttimezone,$INDEX,$WIKI;
if(isset($_SESSION["name"]))
{
$name = $_SESSION["name"];
/* logout info */
- echo "\n";
- echo $name;
- echo "
logout ";
+ echo "\n
\n";
/* last logon time */
@@ -342,6 +376,26 @@ function output_status()
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)
{