The buttonbar at the top of each page is now a fixed 'div' element
[gnucomo.git] / src / web / issues.php
index 0f4bb43..82ef93c 100644 (file)
@@ -9,7 +9,7 @@
 ***********************
 **      FILE NAME      : issues.php
 **      SYSTEM NAME    : Gnucomo - Gnu Computer Monitoring
-**      VERSION NUMBER : $Revision: 1.1 $
+**      VERSION NUMBER : $Revision: 1.2 $
 **
 **  DESCRIPTION      :  Issue types Administration page.
 **                      Input parameters: action (POST) : empty, 'Create'
 
 /*****************************
    $Log: issues.php,v $
-   Revision 1.1  2007-02-01 12:31:23  arjen
+   Revision 1.2  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.1  2007/02/01 12:31:23  arjen
    Added web interface for editing issues
 
 
 ******************************/
 
-// RCSID = "$Id: issues.php,v 1.1 2007-02-01 12:31:23 arjen Exp $";
+// RCSID = "$Id: issues.php,v 1.2 2007-11-21 14:38:06 arjen Exp $";
 
 ini_set('include_path', '.:./classes:../phpclasses');
 
@@ -46,7 +51,7 @@ function clientscripts()
 
 ?>
 
-<script language='JavaScript'>
+<script type='text/ecmascript'>
 
 function CheckCreate(f)
 {
@@ -101,19 +106,19 @@ class issue_page extends page
                                 . $_POST['issueid'] . "'");
    }
 
-   echo "<h1>Issue Types Administration</h1><hr>";
+   echo "<script type='text/ecmascript'>document.getElementById('menu_title').innerHTML = '<h1>Issue Types Administration<\/h1>'</script><br>";
 
    $res = pg_exec($this->database, "SELECT type_of_issueid, name, suggested_priority, description
                                     FROM type_of_issue ORDER BY name");
 
    echo "<table>";
-   echo "<tr><th>Issue</th><th>Priority</th><th>Description</th><tr>";
+   echo "<tr><th>Issue</th><th>Priority</th><th>Description</th></tr>";
    $cls = 0;
    while ($cls < pg_numrows($res))
    {
       $u = pg_fetch_object($res, $cls);
       ?>
-      <tr><td align='center'><img src='bell.png'><br>
+      <tr><td align='center'><img src='bell.png' alt='bell'><br>
              <b><?php echo $u->name ?></b>
       </td><td>
          <?php echo $u->suggested_priority ?>
@@ -134,7 +139,6 @@ class issue_page extends page
 ?>
 
 <h2>Create new issue type:</h2>
-<p>
 
 <form action='issues.php' method='post' onSubmit='return CheckCreate(this)'>
 Issue name: <input name='issuename' type='text'>
@@ -149,7 +153,6 @@ Description: <input name='issuedescr' type='text'>
 <br>
 <input type='submit' name='action' value='Create'>
 </form>
-</p>
 
 <?php
    }