aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/index.php
diff options
context:
space:
mode:
authorPim van den Berg2013-05-20 22:51:44 +0200
committerPim van den Berg2013-06-22 12:16:28 +0200
commit51cd1c4dbdd684dd9a2d487770b6f28d67a25ccc (patch)
treeafead94366494bfad9dcd3193475564cc3ff117f /index.php
parentplugin/nut: collectd 5 compatibility for frequency graph (diff)
downloadapt-panopticon_cgp-51cd1c4dbdd684dd9a2d487770b6f28d67a25ccc.zip
apt-panopticon_cgp-51cd1c4dbdd684dd9a2d487770b6f28d67a25ccc.tar.gz
apt-panopticon_cgp-51cd1c4dbdd684dd9a2d487770b6f28d67a25ccc.tar.bz2
apt-panopticon_cgp-51cd1c4dbdd684dd9a2d487770b6f28d67a25ccc.tar.xz
start using fieldset + legend for showing data
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/index.php b/index.php
index 18d8313..41e710f 100644
--- a/index.php
+++ b/index.php
@@ -11,8 +11,7 @@ $h = array();
11# show all categorized hosts 11# show all categorized hosts
12if (is_array($CONFIG['cat'])) { 12if (is_array($CONFIG['cat'])) {
13 foreach($CONFIG['cat'] as $cat => $hosts) { 13 foreach($CONFIG['cat'] as $cat => $hosts) {
14 printf("<h2>%s</h2>\n", $cat); 14 host_summary($cat, $hosts);
15 host_summary($hosts);
16 $h = array_merge($h, $hosts); 15 $h = array_merge($h, $hosts);
17 } 16 }
18} 17}
@@ -24,8 +23,7 @@ $uhosts = array_diff($chosts, $h);
24 23
25# show all uncategorized hosts 24# show all uncategorized hosts
26if ($uhosts) { 25if ($uhosts) {
27 echo "<h2>uncategorized</h2>\n"; 26 host_summary('uncategorized', $uhosts);
28 host_summary($uhosts);
29} 27}
30 28
31html_end(); 29html_end();