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

View File

@@ -6,11 +6,16 @@ $processors = dbFetchRows("SELECT * FROM `processors` WHERE device_id = ?", arra
if (count($processors))
{
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=processor/">');
echo("<img align='absmiddle' src='images/icons/processor.png'> Processors</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=processor/">');
echo("<img src='images/icons/processor.png'> <strong>Processors</strong></a>");
echo('</div>
<table class="table table-hover table-condensed table-striped">');
foreach ($processors as $proc)
{
@@ -42,16 +47,20 @@ if (count($processors))
$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>');
}
?>