summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--css/standard001.css (renamed from css/standard.css)1
-rw-r--r--include/game.php19
-rw-r--r--include/output.php5
3 files changed, 13 insertions, 12 deletions
diff --git a/css/standard.css b/css/standard001.css
index 2862248..b694fe9 100644
--- a/css/standard.css
+++ b/css/standard001.css
@@ -36,6 +36,7 @@
.joingame,.sickness,.poverty,.total,.message {
position: absolute;
+ background-color: #fff;
width: 20%;
top:22em;
left:40%;
diff --git a/include/game.php b/include/game.php
index 51d4320..b2c4fb0 100644
--- a/include/game.php
+++ b/include/game.php
@@ -1727,12 +1727,19 @@ switch($mystatus)
echo "<hr />";
}
- echo "<input type=\"submit\" value=\"submit\" />\n";
+ echo "<input type=\"submit\" value=\"submit\" />\n<hr />\n";
+ $session = DB_get_session_by_gameid($gameid);
+ $score = generate_score_table($session);
+
+ echo $score;
+
+ echo "</div>\n";
+
+ echo "</form>\n";
if($mystatus=='gameover' && DB_get_game_status_by_gameid($gameid)=='gameover' )
{
- echo "<hr />\n";
$session = DB_get_session_by_gameid($gameid);
$result = mysql_query("SELECT id,create_date FROM Game".
@@ -1756,15 +1763,7 @@ switch($mystatus)
}
}
- $session = DB_get_session_by_gameid($gameid);
- $score = generate_score_table($session);
-
- // if(size_of($score)>30)
- echo $score;
- echo "</div>\n";
-
- echo "</form>\n";
output_footer();
DB_close();
exit();
diff --git a/include/output.php b/include/output.php
index 4f4a5b6..6d7deb7 100644
--- a/include/output.php
+++ b/include/output.php
@@ -36,6 +36,7 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid)
{
global $RULES;
+ echo "<div class=\"message\">\n<form action=\"index.php?action=new\" method=\"post\">\n";
echo "Do you want to continue playing?(This will start a new game, with the next person as dealer.)\n";
echo " <input type=\"hidden\" name=\"PlayerA\" value=\"$playerA\" />\n";
echo " <input type=\"hidden\" name=\"PlayerB\" value=\"$playerB\" />\n";
@@ -46,7 +47,7 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid)
echo " <input type=\"hidden\" name=\"callrule\" value=\"".$RULES["call"]."\" />\n";
echo " <input type=\"hidden\" name=\"followup\" value=\"$oldgameid\" />\n";
echo " <input type=\"submit\" value=\"keep playing\" />\n";
-
+ echo "</form>\n</div>";
return;
}
@@ -312,7 +313,7 @@ function output_header()
<title>e-Doko</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
<link rel="shortcut icon" type="image/x-icon" href="pics/edoko-favicon.png" />
- <link rel="stylesheet" type="text/css" href="css/standard.css" />
+ <link rel="stylesheet" type="text/css" href="css/standard001.css" />
<script type="text/javascript">
function hl(num) {
if(document.getElementById){