mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated the inventory page to use bootstrap more
This commit is contained in:
@ -89,14 +89,24 @@ if (isset($_POST['device']) && is_numeric($_POST['device']))
|
||||
$param[] = $_POST['device'];
|
||||
}
|
||||
|
||||
echo('<table class="table table-condensed">');
|
||||
echo('<div class="container-fluid">');
|
||||
echo('<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default panel-condensed">
|
||||
<div class="panel-heading">
|
||||
<strong>Inventory</strong>
|
||||
</div>
|
||||
<table class="table table-hover table-condensed table-striped">');
|
||||
echo("<tr><th>Hostname</th><th>Description</th><th>Name</th><th>Part No</th><th>Serial No</th></tr>");
|
||||
|
||||
foreach (dbFetchRows($sql, $param) as $entry)
|
||||
{
|
||||
echo('<tr class="inventory"><td>' . generate_device_link($entry, shortHost($entry['hostname'])) . '</td><td>' . $entry['entPhysicalDescr'] .
|
||||
echo('<tr"><td>' . generate_device_link($entry, shortHost($entry['hostname'])) . '</td><td>' . $entry['entPhysicalDescr'] .
|
||||
'</td><td>' . $entry['entPhysicalName'] . '</td><td>' . $entry['entPhysicalModelName'] . '</td><td>' . $entry['entPhysicalSerialNum'] . '</td></tr>');
|
||||
}
|
||||
echo("</table>");
|
||||
|
||||
echo('</div>');
|
||||
echo('</div>');
|
||||
echo('</div>');
|
||||
echo('</div>');
|
||||
?>
|
||||
|
Reference in New Issue
Block a user