Updated the inventory page to use bootstrap more

This commit is contained in:
laf
2014-03-02 15:35:04 +00:00
parent ce4eb65f7b
commit fa7a2d32ff

View File

@ -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>');
?>