Next front page improvement

- load all files in include directory
- half-baked attempt to make HTML output more readable
- add top hosts by total bits box
- horrible hack to generate_device_link() to make it possible to insert the device_bits graph
This commit is contained in:
Paul Gear
2013-11-26 14:35:23 +10:00
parent 663c3649a9
commit a5b152cd98
7 changed files with 97 additions and 52 deletions
+6 -6
View File
@@ -26,14 +26,14 @@ $query = "
LIMIT $top
";
echo("<strong>Top $top ports (last $minutes minutes)</strong>");
echo('<table class="simple">');
echo("<strong>Top $top ports (last $minutes minutes)</strong>\n");
echo("<table class='simple'>\n");
foreach (dbFetchRows($query) as $result) {
echo('<tr><td>'.
echo("<tr><td>".
generate_device_link($result, shorthost($result['hostname'])).
'</td><td>'.generate_port_link($result).
'</td><td>'.generate_port_link($result, generate_port_thumbnail($result)).'</td></tr>');
"</td><td>".generate_port_link($result).
"</td><td>".generate_port_link($result, generate_port_thumbnail($result))."</td></tr>\n");
}
echo('</table>');
echo("</table>\n");
?>