mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-21 08:02:54 +02:00
fix and improve device deletion pages
git-svn-id: http://www.observium.org/svn/observer/trunk@2019 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -11,13 +11,11 @@ if ($_REQUEST['id'])
|
||||
echo(delete_device(mres($_REQUEST['id'])));
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<form name="form1" method="post" action="?page=delhost">
|
||||
echo('<form name="form1" method="post" action='.$config['base_url'].'"/delhost/">
|
||||
<h1>Delete Host</h1>
|
||||
<br />
|
||||
<p><select name="id">
|
||||
<?php
|
||||
<p><select name="id">');
|
||||
|
||||
$query = mysql_query("SELECT * FROM `devices` ORDER BY `hostname`");
|
||||
|
||||
|
||||
@@ -65,10 +65,16 @@ if ($updated && $update_message)
|
||||
<tr>
|
||||
<td>
|
||||
<h5>
|
||||
<a href="?page=delhost&id="<?php echo($device['device_id']) ?>">
|
||||
<img src="images/16/server_delete.png" align="absmiddle">
|
||||
Delete
|
||||
</a>
|
||||
<?php
|
||||
|
||||
echo("
|
||||
<form id='delete_host' name='delete_host' method='post' action='".$config['base_url']."/delhost/'>
|
||||
<img src='images/16/server_delete.png' align='absmiddle'>
|
||||
<input type=hidden name=id value='".$device['device_id']."'>
|
||||
<input type=submit class=submit name='Submit' value='Delete Host'>
|
||||
</form>");
|
||||
|
||||
?>
|
||||
</h5>
|
||||
|
||||
<form id="edit" name="edit" method="post" action="">
|
||||
|
||||
Reference in New Issue
Block a user