The buttonbar at the top of each page is now a fixed 'div' element
[gnucomo.git] / src / web / page.class.php
index 2a6812a..70b134b 100644 (file)
@@ -8,7 +8,7 @@
 ***********************
 **      FILE NAME      : page.class.php
 **      SYSTEM NAME    : Gnucomo - Gnu Computer Monitoring
-**      VERSION NUMBER : $Revision: 1.9 $
+**      VERSION NUMBER : $Revision: 1.10 $
 **
 **  DESCRIPTION      : Base class for Gnucomo web interface pages.
 **
 
 /*****************************
    $Log: page.class.php,v $
-   Revision 1.9  2007-10-23 14:47:42  arjen
+   Revision 1.10  2007-11-21 14:38:06  arjen
+   The buttonbar at the top of each page is now a fixed 'div' element
+   instead of a framed page.
+   Contributed by Edwin Nadorp.
+
+   Revision 1.9  2007/10/23 14:47:42  arjen
    Prepared for release 0.0.10
 
    Revision 1.8  2007/01/11 13:44:29  arjen
@@ -57,7 +62,7 @@
 
 ******************************/
 
-// RCSID = "$Id: page.class.php,v 1.9 2007-10-23 14:47:42 arjen Exp $";
+// RCSID = "$Id: page.class.php,v 1.10 2007-11-21 14:38:06 arjen Exp $";
 
 
 require_once('gnucomo_config.php');
@@ -79,14 +84,12 @@ function login_form()
    <div class='login'>
    <h1 align="center">GNU Computer Monitoring</h1>
    <h4 align="center"><i>Version 0.0.10, October 19, 2007</i></h4>
-   <p>
-      <h2 class='error'><?php echo $last_error?></h2>
-   </p>
+   <h2 class='error'><?php echo $last_error?></h2>
    <center><table class='form'>
    <tr>
    <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">
+      <a href='http://gnucomo.org/' target='_top'><img src='logo.png' alt='GnuCoMo logo'></a></td>
+   <td class='form'><form name="login" method="POST" action="index.php">
        <table class='form'>
        <tr>
        <td class='form'>Username</td>
@@ -142,12 +145,29 @@ class page
       <title><?php echo $this->the_title ?></title>
       </head>
       <body>
+        <div id="header">
+           <a href='index.php'><img src='small-logo.png' title='Gnucomo' alt='Gnucomo'></a>
+           <a href='objects.php'><img src='server.png' title='Objects' alt='Objects'></a>
+           <a href='users.php'><img src='user.png' title='Users' alt='Users'></a>
+           <a href='services.php'><img src='service.png' title='Services' alt='Services'></a>
+           <a href='issues.php'><img src='bell.png' title='Issues' alt='Issues'></a>
+           <a href='classes.php'><img src='change.png' title='Classes' alt='Classes'></a>
+           <!-- a href='notification2.php'>N2</a -->
+           <a href='logout.php'><img src='exit.png' title='Logout' alt='Logout'></a>
+        </div>
+
+        <div id="menu_title">&nbsp;</div>
+
+        <div id="content">
 <?php
    }
 
    function Body()
    {
-      echo "The default body.";
+      //echo "The default body.";
+      echo "<div id='content'>
+                 <img src='logo.png' alt='GnuCoMo'>
+            </div>";
    }
 
    function Tail()
@@ -156,6 +176,10 @@ class page
       {
          pg_close($this->database);
       }
+      echo "<br></div>
+            <div id='footer'>
+            &copy; <a href='http://www.gnucomo.org'>GnuCoMo</a>
+            </div>";
       echo "</body>";
       echo "</html>";
    }