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 --- detail.php | 4 +++- host.php | 5 ++++- inc/html.inc.php | 9 ++++++--- index.php | 6 ++---- layout/style.css | 20 ++++++++++++++------ rrd.php | 4 +++- 6 files changed, 32 insertions(+), 16 deletions(-) diff --git a/detail.php b/detail.php index c7df632..5bf2883 100644 --- a/detail.php +++ b/detail.php @@ -23,7 +23,8 @@ $selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); html_start(); -printf('

%s

'."\n", $host); +printf('
', $host); +printf('%s', $host); $plugins = collectd_plugins($host); @@ -54,6 +55,7 @@ if ($CONFIG['graph_type'] == 'canvas') { printf(''."\n", $CONFIG['weburl'], build_url('graph.php', $_GET)); } echo ''; +echo "
\n"; html_end(); diff --git a/host.php b/host.php index 453cfb4..34cc03c 100644 --- a/host.php +++ b/host.php @@ -11,7 +11,9 @@ $selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); html_start(); -printf('

%s

'."\n", $host); +printf("
", $host); +printf("%s", $host); + $plugins = collectd_plugins($host); @@ -30,6 +32,7 @@ foreach ($selected_plugins as $selected_plugin) { } } echo ''; +printf("
"); html_end(); diff --git a/inc/html.inc.php b/inc/html.inc.php index a0e2c8d..0a33da5 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -91,7 +91,7 @@ EOT; function plugin_header($host, $plugin) { global $CONFIG; - return printf("

%s

\n", $CONFIG['weburl'], $host, $plugin, $plugin); + return printf("

%s

\n", $CONFIG['weburl'], $host, $plugin, $plugin); } function plugins_list($host, $selected_plugins = array()) { @@ -100,7 +100,7 @@ function plugins_list($host, $selected_plugins = array()) { $plugins = collectd_plugins($host); echo '
'; - echo '

Plugins

'; + echo '

Plugins

'; echo '