From 51cd1c4dbdd684dd9a2d487770b6f28d67a25ccc Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 20 May 2013 22:51:44 +0200 Subject: start using fieldset + legend for showing data --- index.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 18d8313..41e710f 100644 --- a/index.php +++ b/index.php @@ -11,8 +11,7 @@ $h = array(); # show all categorized hosts if (is_array($CONFIG['cat'])) { foreach($CONFIG['cat'] as $cat => $hosts) { - printf("

%s

\n", $cat); - host_summary($hosts); + host_summary($cat, $hosts); $h = array_merge($h, $hosts); } } @@ -24,8 +23,7 @@ $uhosts = array_diff($chosts, $h); # show all uncategorized hosts if ($uhosts) { - echo "

uncategorized

\n"; - host_summary($uhosts); + host_summary('uncategorized', $uhosts); } html_end(); -- cgit v1.1