librenms-librenms/html/pages/public.inc.php

48 lines
1.2 KiB
PHP
Raw Normal View History

<script class="code" type="text/javascript">
$(document).ready(function() {
$("#ToggleLogon").click( function()
{
document.getElementById('public-logon').style.display="block";
document.getElementById('public-status').style.display="none";
});
$("#ToggleStatus").click( function()
{
document.getElementById('public-logon').style.display="none";
document.getElementById('public-status').style.display="block";
});
});
</script>
2014-06-21 09:50:24 -04:00
<?php
// Set Defaults here
$sql_param = array();
$pagetitle[] = "Public Devices";
$query = "SELECT * FROM `devices` WHERE 1 AND disabled='0' AND `ignore`='0' ORDER BY hostname";
2014-06-21 09:50:24 -04:00
?>
<div class="well"><h3>System Status<button class="btn btn-default" type="submit" style="float:right;" id="ToggleLogon">Logon</button></h3></div>
<div class="panel panel-default panel-condensed">
<div class="table-responsive">
<table class="table table-condensed">
<tr>
<th></th>
<th></th>
<th>Device</th>
<th></th>
<th>Platform</th>
<th>Uptime/Location</th>
</tr>
<?php
foreach (dbFetchRows($query, $sql_param) as $device)
2014-06-21 09:50:24 -04:00
{
include("includes/hostbox-public.inc.php");
2014-06-21 09:50:24 -04:00
}
?>
</table>
</div>
</div>