Refreshed visually the Device overview page

This commit is contained in:
laf
2014-02-26 22:33:45 +00:00
parent 997dc3dad3
commit 54c3b7bc14
16 changed files with 279 additions and 180 deletions
+22 -11
View File
@@ -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>');
}
?>