Alexander Nicolaysen Sørnes <alex@thehandofagony.com>

Use objectManager to delete monitors.
This commit is contained in:
Chris Morgan
2007-09-14 23:27:36 -04:00
parent 2827e0654e
commit d5cf2375dd
2 changed files with 9 additions and 25 deletions

View File

@@ -899,9 +899,14 @@ class version {
{
echo '<tr><td colspan="2" align="center">'."\n";
echo '</form>'."\n";
echo '<form method="post" name="sMessage" action='.
$this->objectMakeUrl().'>'."\n";
echo '<input type=hidden name="sSub" value="StopMonitoring" />'."\n";
echo '<form method="post" name="sMessage" action="'.
APPDB_ROOT."objectManager.php\">\n";
echo "\t<input type=\"hidden\" name=\"iId\" value=\"".
$oMonitor->iMonitorId."\" />\n";
echo "\t<input type=\"hidden\" name=\"sSubmit\" value=\"Delete\" />\n";
echo "\t<input type=\"hidden\" name=\"sClass\" value=\"monitor\" />\n";
echo "\t<input type=\"hidden\" name=\"sReturnTo\" value=\"".
$this->objectMakeUrl()."\" />\n";
echo '<input type=submit value="Stop Monitoring Version" class="button" />'."\n";
echo "</form>\n";
echo "</td></tr>\n";