CLEANUP: moved the statistics page into the include directory
[e-DoKo.git] / include / output.php
index 16376031c8d94a6f61f1e6de92ab405d97a9138e..6d7deb7e69f3e08c5d87ac04d92a74e121324a1e 100644 (file)
@@ -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;
 }
 
@@ -56,7 +57,7 @@ function output_form_for_new_game($names)
     <h2> Players </h2>
     <p>Please select four players (or use the randomly pre-selected names)</p>
     <p>Remember: you need to be one of the players ;) </p>
-       <form action="index.php" method="post">
+       <form action="index.php?action=new" method="post">
 
    <div class="table">
      <img src="pics/table.png" alt="table" />
@@ -275,10 +276,10 @@ function output_home_page($pre,$game,$done,$avgtime)
     echo "$done games have been completed on this server. Average time of a game: $avgtime days</p>";
 ?>
 
-    <p> Please <a href="./register.php">register</a>, in case you have not done that yet  <br />
+    <p> Please <a href="index.php?action=register">register</a>, in case you have not done that yet  <br />
         or login with you email-address or name and password here:
     </p>
-        <form action="index.php" method="post">
+        <form action="index.php?action=login" method="post">
           <fieldset>
             <legend>Login</legend>
              <table>
@@ -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){
@@ -383,7 +384,7 @@ function output_status()
        /* logout info */
        echo "\n<div class=\"status\">";
        echo $name;
-       echo " <a href=\"index.php?logout=1\">logout</a>";
+       echo " <a href=\"index.php?action=logout\">logout</a>";
        echo "</div>\n";
 
        /* last logon time */