X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=a4b84a0e738d0a85246994c33bf0f13ef8aca504;hp=0f326f5a0432aadeea987f2ae6ff08bab6dd753b;hb=8ce1e61f4b254ee07466503dc5a193d227123005;hpb=69d701b97474977c4c48367ca6ecfedfb2db0217
diff --git a/include/output.php b/include/output.php
index 0f326f5..a4b84a0 100644
--- a/include/output.php
+++ b/include/output.php
@@ -31,16 +31,18 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid)
global $RULES;
echo "
\n\n
";
return;
}
@@ -51,13 +53,10 @@ function output_form_for_new_game($names)
* after we selected them to make sure that each name
* only shows up once
*/
-?>
-
-';
+ echo '';
+ echo '
'._('Rules').'
';
+ echo '
'._('Gameplay-related').'
';
+ echo '
'._('Ten of hearts').':
';
+ echo '
';
+ echo ' ';
+ echo '
';
+ echo '
'._('Schweinchen (both foxes), only in normal games or silent solos').':
';
+ echo '
';
+ echo ' ';
+ echo '
';
+ echo '
'._('Call Re/Contra, etc.').':
';
+ echo '
';
+ echo ' ';
+ echo '
';
+ echo '
'._('Low trump').'
';
+ echo '
';
+ echo ' '._('Player can\'t trump a fox, that is none of his trump is higher than a fox.');
+ echo ' ';
+ echo '
';
+ echo '
'._('Scoring-related').'
';
+ echo '
'._('(not yet implemented)').'
';
+ echo ' ';
+ echo ' ';
+
}
function output_table($data,$caption="",$class="",$id="")
@@ -215,79 +214,77 @@ function display_link_card($card,$dir="english",$type="card")
function output_check_for_sickness($me,$mycards)
{
global $RULES;
- ?>
-
Thanks for joining the game...
-
- Do you want to play solo?
-
-
-
- '._('Thanks for joining the game').'... ';
+ echo '';
+ echo ' '._('Do you want to play solo?').'';
+ echo ' ';
+ echo ' ';
+
+ echo _('Wedding?');
if(check_wedding($mycards))
{
- echo " yes";
- echo " no \n";
+ echo ' '._('yes')."";
+ echo ' '._('no')." \n";
}
else
{
- echo " no \n";
+ echo ' '._('no')." \n";
};
- echo "Do you have poverty?";
+ echo _('Do you have poverty?');
if(count_trump($mycards)<4)
{
- echo " yes";
- echo " no \n";
+ echo ' '._('yes')."";
+ echo ' '._('no')." \n";
}
else
{
- echo " no \n";
+ echo ' '._('no')." \n";
};
- echo "Do you have too many nines?";
+ echo _('Do you have too many nines?');
if(count_nines($mycards)>4)
{
- echo " yes";
- echo " no \n";
+ echo ' '._('yes')."";
+ echo ' '._('no')." \n";
}
else
{
- echo " no \n";
+ echo ' '._('no')." \n";
};
if($RULES['lowtrump']=='cancel' || $RULES['lowtrump']=='poverty')
{
if($RULES['lowtrump']=='cancel')
- echo "Do you have low trump (cancel game)?";
+ echo _('Do you have low trump (cancel game)?');
else
- echo "Do you have low trump (poverty)?";
+ echo _('Do you have low trump (poverty)?');
if(check_low_trump($mycards))
{
- echo " yes";
- echo " no \n";
+ echo ' '._('yes')."";
+ echo ' '._('no')." \n";
}
else
{
- echo " no \n";
+ echo ' '._('no')." \n";
};
}
else
echo "";
echo "\n";
- echo "\n";
+ echo "\n";
echo "
- Do you want to play a game of DoKo?
- yes
- no
-';
+ echo ' '._('Do you want to play a game of DoKo?').' ';
+ echo ' '._('yes').'';
+ echo ' '._('no').' ';
echo "\n";
echo "\n";
- echo "\n";
+ echo "\n";
echo "
\n";
return;
@@ -381,7 +376,7 @@ function output_header()
e-Doko
-
+
@@ -389,6 +384,19 @@ function output_header()
$(document).ready(function()
{
$("#ScoreTable").tablesorter({ widgets: ['zebra']});
+
+ $(".gameshidesession").click( function () {
+ $(this).parent().children(".gamessession").toggle(300);
+ });
+
+ $(".gameshowall").click( function () {
+ $(".gamessession").show(300);
+ });
+ $(".gamehideall").click( function () {
+ $(".gamessession").hide(300);
+ });
+
+
});
@@ -433,12 +441,12 @@ function output_status()
{
global $defaulttimezone, $INDEX, $WIKI, $RSS;
- if(isset($_SESSION["name"]))
+ if(isset($_SESSION['name']))
{
- $name = $_SESSION["name"];
+ $name = $_SESSION['name'];
/* last logon time */
- $myid = DB_get_userid("name",$name);
+ $myid = DB_get_userid('name',$name);
$zone = DB_get_user_timezone($myid);
$time = DB_get_user_timestamp($myid);
@@ -452,21 +460,21 @@ function output_status()
/* logout info */
echo "\n