***********************
** FILE NAME : notification.php
** SYSTEM NAME : Gnucomo - Gnu Computer Monitoring
-** VERSION NUMBER : $Revision: 1.4 $
+** VERSION NUMBER : $Revision: 1.5 $
**
** DESCRIPTION : Display and handle notifications.
** There are two major views to this page: either a list of
/*****************************
$Log: notification.php,v $
- Revision 1.4 2007-01-11 13:44:29 arjen
+ Revision 1.5 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.4 2007/01/11 13:44:29 arjen
Manually edit parameters.
View logs from abusing IP addresses.
******************************/
-// RCSID = "$Id: notification.php,v 1.4 2007-01-11 13:44:29 arjen Exp $";
+// RCSID = "$Id: notification.php,v 1.5 2007-11-21 14:38:06 arjen Exp $";
ini_set('include_path', '.:./classes:../phpclasses');
{
?>
-<script language='JavaScript'>
+<script type='text/ecmascript'>
function CheckRemark(f)
{
. " ORDER BY notificationid");
echo "<table>";
+ echo '<tr><th>Time</th><th>Number</th><th>Issue</th><th>Status</th><th>Priority</th></tr>';
$row = 0;
while ($row < pg_numrows($res))
{
$res = pg_exec($this->database, "SELECT objectname FROM object WHERE objectid= CAST ('" . $note->objectid . "' AS BIGINT)");
$obj = pg_fetch_object($res, 0);
echo "<h1>Notification " . $note->notificationid . " for " . $obj->objectname . "</h1><hr>";
+ echo "<script type='text/ecmascript'>document.getElementById('menu_title').innerHTML = '<h1>Notification " . $note->notificationid . " for " . $obj->objectname . "<\/h1>'</script><br>";
$r = pg_exec($this->database, "SELECT description FROM type_of_issue WHERE type_of_issueid = CAST ('"
. $note->type_of_issueid . "' AS BIGINT)");
);
echo "<h2>Enter a remark for the next action</h2>";
- echo "<form method='post' onSubmit='return CheckRemark(this)'>";
- echo "<textarea name='remark'></textarea><br>";
+ echo "<form method='post' onSubmit='return CheckRemark(this)' action=''>";
+ echo "<textarea name='remark' cols='30' rows='5'></textarea><br>";
/* Display a list of possible actions */
if ($first)
{
$first = false;
- echo " checked='on'";
+ echo " CHECKED";
}
echo " value='$act'>" . $action->description . "<br>";
}
$res = pg_exec($this->database, "SELECT objectname FROM object WHERE objectid=" . $_GET['oid']);
$obj = pg_fetch_object($res, 0);
- echo "<h1>Notifications for " . $obj->objectname . "</h1><hr>";
+ echo "<script type='text/ecmascript'>document.getElementById('menu_title').innerHTML = '<h1>Notifications for " . $obj->objectname . "<\/h1>'</script><br>";
$res = pg_exec($this->database, "SELECT notificationid, timestamp, type_of_issueid,
statuscode, priority
. " ORDER BY notificationid");
echo "<table>";
+ echo '<tr><th>Time</th><th>Number</th><th>Issue</th><th>Status</th><th>Priority</th></tr>';
$row = 0;
while ($row < pg_numrows($res))
{