LAYOUT: fixed the layout of the userpage a bit
authorArun Persaud <arun@nubati.net>
Sat, 7 Jun 2008 16:01:08 +0000 (09:01 -0700)
committerArun Persaud <arun@nubati.net>
Sat, 7 Jun 2008 16:06:39 +0000 (09:06 -0700)
the size of the whole page is wider now and the middle column of the table is fixed to a certain width.

Signed-off-by: Arun Persaud <arun@nubati.net>
css/standard008.css [moved from css/standard007.css with 99% similarity]
include/output.php
include/user.php

similarity index 99%
rename from css/standard007.css
rename to css/standard008.css
index 126c9113ed8c68126be6fd990cde7b066c2055fb..efae67415bee82e84d30824ad1065032d238ce49 100644 (file)
@@ -442,7 +442,8 @@ table.score {
   overflow: auto;
 }
 
-.user { margin-left:25%;margin-right:25%; }
+.user { margin-left:25%;margin-right:5%; }
+.user td.usergames { width:50%; }
 .wide { margin-left:5%;margin-right:5%; }
 
 .over {
index 8292467d6432377b19543229d07164ed8e6f5112..e57ed04cad615c53a182cab0170086ffad5578ff 100644 (file)
@@ -270,7 +270,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/standard007.css" />
+     <link rel="stylesheet" type="text/css" href="css/standard008.css" />
      <script type="text/javascript">
        var current=0;
        function hl(num) {
index 54ce3026ce83e12e1883827b347693ea370a72f3..7b4880dec49a91b8a2585a73e7ab57b54bcccc6d 100644 (file)
@@ -129,25 +129,21 @@ if(myisset("forgot"))
             if($gamenrold < $gamenr)
               {
                 if($gamenrold!=-1)
-                  echo "</td></tr>\n <tr> <td>$gamenr:</td><td> ";
+                  echo "</td></tr>\n <tr> <td>$gamenr:</td>\n";
                 else
-                  echo "$gamenr:</td><td> ";
+                  echo "$gamenr:</td>\n";
                 $gamenrold = $gamenr;
+                echo "<td class=\"usergames\">\n";
               }
             if($r[4]=='pre')
-              {
-                echo "\n   <span class=\"gamestatuspre\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">p </a></span> ";
-                
-              }
+              echo "\n   <span class=\"gamestatuspre\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">p </a></span> ";
             else if ($r[4]=='gameover')
               echo "\n   <span class=\"gamestatusover\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">F </a></span> ";
             else
-              {
-                echo "\n   <span class=\"gamestatusplay\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">P </a></span> ";
-              }
+              echo "\n   <span class=\"gamestatusplay\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">P </a></span> ";
             if($r[4] != 'gameover')
               {
-                echo "</td><td>\n    ";
+                echo "</td>\n<td>\n    ";
                 if($r[3]==$myid || !$r[3])
                   echo "(it's <strong>your</strong> turn)\n";
                 else