The buttonbar at the top of each page is now a fixed 'div' element
[gnucomo.git] / src / web / abuse.php
index 03347bf..5da4b0d 100644 (file)
@@ -9,7 +9,7 @@
 ***********************
 **      FILE NAME      : abuse.php
 **      SYSTEM NAME    : Gnucomo - Gnu Computer Monitoring
-**      VERSION NUMBER : $Revision: 1.3 $
+**      VERSION NUMBER : $Revision: 1.4 $
 **
 **  DESCRIPTION      : Abuse list page
 **
 
 /*****************************
    $Log: abuse.php,v $
-   Revision 1.3  2007-10-19 07:15:52  arjen
+   Revision 1.4  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.3  2007/10/19 07:15:52  arjen
    In the abuse list, IP addresses can be whitelisted.
 
    Revision 1.2  2007/01/11 13:44:29  arjen
@@ -39,7 +44,7 @@
 
 ******************************/
 
-// RCSID = "$Id: abuse.php,v 1.3 2007-10-19 07:15:52 arjen Exp $";
+// RCSID = "$Id: abuse.php,v 1.4 2007-11-21 14:38:06 arjen Exp $";
 
 ini_set('include_path', '.:./classes:../phpclasses');
 
@@ -56,7 +61,10 @@ class abuse_list extends page
          $res = pg_exec($this->database, "SELECT objectname FROM object
                                           WHERE objectid=CAST('" . $_GET['oid']."' AS BIGINT)");
          $obj = pg_fetch_object($res, 0);
-         echo "<h1>Abuse List for " . $obj->objectname . "</h1><hr>";
+
+         echo "<script type='text/ecmascript'>";
+         echo "document.getElementById('menu_title').innerHTML =";
+         echo " '<h1>Abuse List for " . $obj->objectname . "<\/h1>'</script>";
 
          if (!empty($_POST['ACTION']) && ($_POST['ACTION'] == 'Abuse'))
          {
@@ -176,14 +184,14 @@ class abuse_list extends page
          }
          else
          {
-            echo "<form method='post'>";
+            echo "<form method='post' action='abuse.php'>";
             echo "Report <input type='submit' name='ACTION' value='Abuse'>";
             echo " for IP address <input type='text' name='source'>";
             echo " or <input type='submit' name='ACTION' value='Whitelist'>";
             echo " with status <input type='text' name='status'>";
             echo "</form>"; 
    
-            echo "<form method='post'>";
+            echo "<form method='post' action='abuse.php'>";
             echo "<input type='submit' name='ACTION' value='Investigate'>";
             echo " or <input type='submit' name='ACTION' value='Block'>";
             echo " this subnet: <input type='text' name='subnet'>";