***********************
** 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');
?>
-<script language='JavaScript'>
+<script type='text/ecmascript'>
function CheckCreate(f)
{
. $_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 ?>
?>
<h2>Create new issue type:</h2>
-<p>
<form action='issues.php' method='post' onSubmit='return CheckCreate(this)'>
Issue name: <input name='issuename' type='text'>
<br>
<input type='submit' name='action' value='Create'>
</form>
-</p>
<?php
}