summaryrefslogtreecommitdiffstats
path: root/include/output.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-04-27 17:43:11 -0700
committerArun Persaud <arun@nubati.net>2008-04-27 17:43:11 -0700
commit5aa7d5dd2d0b487188fef191c6e5ef38f13e38f7 (patch)
tree77748f9f4c3a15586494c2047253064807e5e649 /include/output.php
parent4fc2c543112c4734b71272b1e4a1392406d63455 (diff)
downloade-DoKo-5aa7d5dd2d0b487188fef191c6e5ef38f13e38f7.tar.gz
e-DoKo-5aa7d5dd2d0b487188fef191c6e5ef38f13e38f7.tar.bz2
e-DoKo-5aa7d5dd2d0b487188fef191c6e5ef38f13e38f7.zip
BUGFIX: couldn't restart a finished game; force reload of CSS
problem was that everything on the page was in a form which is now submitted to the game page, but for new games, we need to call the newgame.php page. moved the button out of the side and into its own div structure now to fix it. also renamed the css file to force a reload Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/output.php')
-rw-r--r--include/output.php5
1 files changed, 3 insertions, 2 deletions
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){