diff options
author | Arun Persaud <arun@nubati.net> | 2008-06-07 09:01:08 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-06-07 09:06:39 -0700 |
commit | 6437c15bdaac379a15d7e6392122f027d8254ec6 (patch) | |
tree | 76515c0c9b10ab0521d7099cdf4cc237cc284d06 | |
parent | a3d89274e8e3664959316b851d3cc7fc037d6e07 (diff) | |
download | e-DoKo-6437c15bdaac379a15d7e6392122f027d8254ec6.tar.gz e-DoKo-6437c15bdaac379a15d7e6392122f027d8254ec6.tar.bz2 e-DoKo-6437c15bdaac379a15d7e6392122f027d8254ec6.zip |
LAYOUT: fixed the layout of the userpage a bit
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>
-rw-r--r-- | css/standard008.css (renamed from css/standard007.css) | 3 | ||||
-rw-r--r-- | include/output.php | 2 | ||||
-rw-r--r-- | include/user.php | 16 |
3 files changed, 9 insertions, 12 deletions
diff --git a/css/standard007.css b/css/standard008.css index 126c911..efae674 100644 --- a/css/standard007.css +++ b/css/standard008.css @@ -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 { diff --git a/include/output.php b/include/output.php index 8292467..e57ed04 100644 --- a/include/output.php +++ b/include/output.php @@ -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) { diff --git a/include/user.php b/include/user.php index 54ce302..7b4880d 100644 --- a/include/user.php +++ b/include/user.php @@ -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&me=".$r[0]."\">p </a></span> "; - - } + echo "\n <span class=\"gamestatuspre\"><a href=\"".$INDEX."?action=game&me=".$r[0]."\">p </a></span> "; else if ($r[4]=='gameover') echo "\n <span class=\"gamestatusover\"><a href=\"".$INDEX."?action=game&me=".$r[0]."\">F </a></span> "; else - { - echo "\n <span class=\"gamestatusplay\"><a href=\"".$INDEX."?action=game&me=".$r[0]."\">P </a></span> "; - } + echo "\n <span class=\"gamestatusplay\"><a href=\"".$INDEX."?action=game&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 |