mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Refreshed visually the Device overview page
This commit is contained in:
@@ -6,11 +6,18 @@ $mempools = dbFetchRows("SELECT * FROM `mempools` WHERE device_id = ?", array($d
|
||||
|
||||
if (count($mempools))
|
||||
{
|
||||
echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
|
||||
echo("<p style='padding: 0px 5px 5px;' class=sectionhead>");
|
||||
echo('<a class="sectionhead" href="device/device='.$device['device_id'].'/tab=health/metric=mempool/">');
|
||||
echo("<img align='absmiddle' src='images/icons/memory.png'> Memory Pools</a></p>");
|
||||
echo("<table width=100% cellspacing=0 cellpadding=5>");
|
||||
echo('<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-default panel-condensed">
|
||||
<div class="panel-heading">
|
||||
');
|
||||
echo('<a href="device/device='.$device['device_id'].'/tab=health/metric=mempool/">');
|
||||
echo("<img src='images/icons/memory.png'> Memory Pools</a>");
|
||||
echo('
|
||||
</div>
|
||||
<table class="table table-hover table-condensed table-striped">
|
||||
');
|
||||
|
||||
foreach ($mempools as $mempool)
|
||||
{
|
||||
@@ -50,16 +57,20 @@ if (count($mempools))
|
||||
|
||||
$minigraph = generate_graph_tag($graph_array);
|
||||
|
||||
echo("<tr class=device-overview>
|
||||
<td class=tablehead>".overlib_link($link, $text_descr, $overlib_content)."</td>
|
||||
<td width=90>".overlib_link($link, $minigraph, $overlib_content)."</td>
|
||||
<td width=200>".overlib_link($link, print_percentage_bar (200, 20, $percent, NULL, "ffffff", $background['left'], $percent . "%", "ffffff", $background['right']), $overlib_content)."
|
||||
echo("<tr>
|
||||
<td>".overlib_link($link, $text_descr, $overlib_content)."</td>
|
||||
<td>".overlib_link($link, $minigraph, $overlib_content)."</td>
|
||||
<td>".overlib_link($link, print_percentage_bar (200, 20, $percent, NULL, "ffffff", $background['left'], $percent . "%", "ffffff", $background['right']), $overlib_content)."
|
||||
</a></td>
|
||||
</tr>");
|
||||
}
|
||||
|
||||
echo("</table>");
|
||||
echo("</div>");
|
||||
echo('</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>');
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user