mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -1,5 +1,3 @@
|
|||||||
<h1>Delete Host</h1>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ($_SESSION['userlevel'] < 10) {
|
if ($_SESSION['userlevel'] < 10) {
|
||||||
@@ -27,6 +25,7 @@ else {
|
|||||||
print_error("Are you sure you want to delete device " . $device['hostname'] . "?");
|
print_error("Are you sure you want to delete device " . $device['hostname'] . "?");
|
||||||
?>
|
?>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<form name="form1" method="post" action="" class="form-horizontal" role="form">
|
<form name="form1" method="post" action="" class="form-horizontal" role="form">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
@@ -46,37 +45,39 @@ else {
|
|||||||
else {
|
else {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="form1" method="post" action="" class="form-horizontal" role="form">
|
<form name="form1" method="post" action="" class="form-horizontal" role="form">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-sm-offset-2 col-sm-7">
|
<div class="col-sm-offset-2 col-sm-7">
|
||||||
<?php print_error("Warning, this will remove the device from being monitered!</p>
|
<div><h2>Delete Device</h2></div>
|
||||||
<p>It will also remove historical data about this device such as <mark>Syslog</mark>, <mark>Eventlog</mark> and <mark>Alert log</mark> data.</p>");?>
|
<div class="alert alert-danger" role="alert">
|
||||||
</div>
|
<center>
|
||||||
</div>
|
<p>Warning, this will remove the device from being monitered!</p>
|
||||||
<div class="form-group">
|
<p>It will also remove historical data about this device such as <mark>Syslog</mark>, <mark>Eventlog</mark> and <mark>Alert log</mark> data.</p>
|
||||||
<label for="id" class="col-sm-2 control-label">Device:</label>
|
</center>
|
||||||
<div class="col-sm-7">
|
</div>
|
||||||
<select name="id" class="form-control" id="id">
|
<div class="well">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="id" class="col-sm-2 control-label">Device:</label>
|
||||||
|
<div class="col-sm-7">
|
||||||
|
<select name="id" class="form-control" id="id">
|
||||||
|
<?php
|
||||||
|
foreach (dbFetchRows("SELECT * FROM `devices` ORDER BY `hostname`") as $data) {
|
||||||
|
echo("<option value='".$data['device_id']."'>".$data['hostname']."</option>");
|
||||||
|
}
|
||||||
|
|
||||||
<?php
|
?>
|
||||||
|
</select>
|
||||||
foreach (dbFetchRows("SELECT * FROM `devices` ORDER BY `hostname`") as $data) {
|
<hr>
|
||||||
echo("<option value='".$data['device_id']."'>".$data['hostname']."</option>");
|
<input id="confirm" type="hidden" name="confirm" value="0" />
|
||||||
}
|
<center><button id="confirm_delete" type="submit" class="btn btn-default">Delete Device</button></center>
|
||||||
|
</div>
|
||||||
?>
|
</div>
|
||||||
</select>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<!-- <tr>
|
<!-- <tr>
|
||||||
<td>Remove RRDs (Data files): </td>
|
<td>Remove RRDs (Data files): </td>
|
||||||
<td><input type="checkbox" name="remove_rrd" value="yes"></td>
|
<td><input type="checkbox" name="remove_rrd" value="yes"></td>
|
||||||
</tr>-->
|
</tr>-->
|
||||||
<div class="col-sm-offset-2 col-sm-8">
|
|
||||||
<input id="confirm" type="hidden" name="confirm" value="0" />
|
|
||||||
<button id="confirm_delete" type="submit" class="btn btn-default">Delete Device</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user