added footer, moved revision into footer
authorarun <arun@nubati.net>
Sun, 8 Apr 2007 17:06:04 +0000 (17:06 +0000)
committerarun <arun>
Sun, 8 Apr 2007 17:06:04 +0000 (17:06 +0000)
css/standard.css
index.php
output.php

index 664b17c77a80350ffe7da70f7f601c4366b2d487..166642d0a68cb469fc41f2cbc57ceaaaf28ae502 100644 (file)
@@ -3,11 +3,16 @@
   text-align:center;
   border-bottom:3px solid gray;
 }
-.header p { 
-  position:absolute;
-  right:0;
-  top:0;
-}
+.footer { 
+ margin:0;
+ margin-top:0.3em;
+ padding:0;
+ border-top: 2px solid #444;
+ font-size:smaller;
+ clear:both;
+ }
+.footer .right{  float:right; }
+.footer .left{  float:left; }
 
 p.gamenumber { 
   position:absolute;
index db219d1da73ebbd019b02fa86f87be0dd975f2d9..813adf6e90fb796e8d800b00df95a30e662c5b33 100644 (file)
--- a/index.php
+++ b/index.php
@@ -49,6 +49,7 @@ if(myisset("new"))
     if($EmailA=="" || $EmailB=="" || $EmailC=="" || $EmailD=="")
       {
        echo "couldn't find one of the names, please start a new game";
+       output_footer();
        exit();
       }
     
@@ -66,6 +67,7 @@ if(myisset("new"))
     if($ruleset <0) 
       {
        echo "Error defining ruleset: $ruleset";
+       output_footer();
        exit();
       };
     
@@ -157,6 +159,7 @@ else if(myisset("cancle","me"))
       {
        echo "Can't find you in the database, please check the url.<br />\n";
        echo "perhaps the game has been cancled, check by login in <a href=\"$host\">here</a>.";
+       output_footer();
        exit();
       }
     
@@ -203,6 +206,7 @@ else if(myisset("me"))
       {
        echo "Can't find you in the database, please check the url.<br />\n";
        echo "perhaps the game has been cancled, check by login in <a href=\"$host\">here</a>.";
+       output_footer();
        exit();
       }
     
@@ -413,6 +417,7 @@ else if(myisset("me"))
              
              /* delete everything from the dB */
              DB_cancel_game($me);
+             output_footer();
              exit();
            }
 
@@ -1029,6 +1034,7 @@ else if(myisset("me"))
     default:
       echo "error in testing the status";
     }
+    output_footer();
   exit();
  } 
 /* user status page */ 
@@ -1093,6 +1099,7 @@ else if(myisset("me"))
        {
         echo "sorry email and password don't match <br />";
        }
+     output_footer();
      exit();
    }
 /* page for registration */
index 1e747e67314e6705e7846e342b0e302e459c0c43..77aba216b69282f81c1cf2b1b89ea9dda74ee255 100644 (file)
@@ -15,8 +15,8 @@ function display_news()
 {
   global $wiki;
   echo "<div class=\"bug\">\n".
-    "  Please hit <strong>shift+reload</strong>.<br /><hr />\n".
-    "  The server now keeps score... (only from now on) <br /><hr />".
+    "  Schweinchen should work now (only for new games).<br
+  /><hr />".
     "  If you find more bugs, please list them in the <a href=\"".
     $wiki."\">wiki</a>.\n</div>\n";
   return;
@@ -317,7 +317,6 @@ function output_header()
 <body onload="high_last();">
 <div class="header">
 <h1> Welcome to E-Doko </h1>
-<p> Revision: <?php echo "$REV"; ?></p>
 </div>
 
 <?php
@@ -328,6 +327,14 @@ function output_header()
 
 function output_footer()
 {
+  global $REV;
+
+  echo "<div class=\"footer\">\n";
+  echo "<p class=\"left\"> copyright 2006-2007 Arun Persaud</p>\n";
+  echo "<p class=\"right\"> Revision: $REV; </p> \n";
+  echo "\n";
+  echo "</div>\n";
+
   echo "</body>\n";
   echo "</html>\n";