Added the 'form' class on table and td elements. This class is intended
authorarjen <arjen>
Wed, 19 Feb 2003 09:11:46 +0000 (09:11 +0000)
committerarjen <arjen>
Wed, 19 Feb 2003 09:11:46 +0000 (09:11 +0000)
for borderless tables that are used to layout HTML forms.

src/web/gnucomo.css
src/web/page.class.php

index f3a6294..5e495f3 100644 (file)
@@ -32,6 +32,7 @@ div.login
    width: 80%;
    text-align : center ;
 }
+
 table
 {
    width : 90% ;
@@ -41,6 +42,13 @@ table
    padding : 1px ;
 }
 
+table.form
+{
+   border-style : none ;
+   border-collapse : collapse;
+   padding : 1px ;
+}
+
 td
 {
    font-family : sans-serif ;
@@ -51,6 +59,15 @@ td
    padding : 2px ;
 }
 
+td.form
+{
+   font-family : sans-serif ;
+   text-align  : left ;
+   border-style : none ;
+   vertical-align : top ;
+   padding : 2px ;
+}
+
 td.number
 {
    text-align  : right ;
@@ -93,3 +110,8 @@ textarea
    width : 60em ;
    height : 10em ;
 }
+
+img
+{
+   border-style : none ;
+}
index b823aee..38ad422 100644 (file)
@@ -8,7 +8,7 @@
 ***********************
 **      FILE NAME      : page.class.php
 **      SYSTEM NAME    : Gnucomo - Gnu Computer Monitoring
-**      VERSION NUMBER : $Revision: 1.2 $
+**      VERSION NUMBER : $Revision: 1.3 $
 **
 **  DESCRIPTION      : Base class for Gnucomo web interface pages.
 **
 ********************************
 **      ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
 **      CREATION DATE   : Jan 22, 2003
-**      LAST UPDATE     : Feb 03, 2003
+**      LAST UPDATE     : Feb 19, 2003
 **      MODIFICATIONS   : 
 **************************************************************************/
 
 /*****************************
    $Log: page.class.php,v $
-   Revision 1.2  2003-02-13 08:59:52  arjen
+   Revision 1.3  2003-02-19 09:12:27  arjen
+   Added the 'form' class on table and td elements. This class is intended
+   for borderless tables that are used to layout HTML forms.
+
+   Revision 1.2  2003/02/13 08:59:52  arjen
    Use our own error handler for PHP errors and warnings
 
    Revision 1.1  2003/02/05 09:38:42  arjen
@@ -34,7 +38,7 @@
 
 ******************************/
 
-// RCSID = "$Id: page.class.php,v 1.2 2003-02-13 08:59:52 arjen Exp $";
+// RCSID = "$Id: page.class.php,v 1.3 2003-02-19 09:12:27 arjen Exp $";
 
 
 require_once('gnucomo_config.php');
@@ -55,26 +59,27 @@ function login_form()
 ?>
    <div class='login'>
    <h1 align="center">GNU Computer Monitoring</h1>
-   <h4 align="center"><i>Version 0.0.5, Februari 08, 2003</i></h4>
+   <h4 align="center"><i>Version 0.0.5, February 21, 2003</i></h4>
    <p>
       <h2 class='error'><?php echo $last_error?></h2>
    </p>
-   <center><table>
+   <center><table class='form'>
    <tr>
-   <td width='50%'><img src='logo.png' alt='GnoCoMo logo'></td>
-   <td><form name="login" method="POST">
-       <table>
+   <td width='50%' class='form'>
+      <a href='http://gnucomo.org/' target='_top'><img src='logo.png' alt='GnoCoMo logo'></a></td>
+   <td class='form'><form name="login" method="POST">
+       <table class='form'>
        <tr>
-       <td>Username</td>
-       <td><input type="text" name="username"></td>
+       <td class='form'>Username</td>
+       <td class='form'><input type="text" name="username"></td>
        </tr>
        <tr>
-       <td>Password</td>
-       <td><input type="password" name="password"></td>
+       <td class='form'>Password</td>
+       <td class='form'><input type="password" name="password"></td>
        </tr>
        <tr>
-       <td>&nbsp;</td>
-       <td align="right"><input type="submit" value="signin"></td>
+       <td class='form'>&nbsp;</td>
+       <td align="right" class='form'><input type="submit" value="signin"></td>
        </tr>
        </table>
        </form>