From ea946240c9a5a11d337b7afcc8590870bc18cd84 Mon Sep 17 00:00:00 2001 From: xian310 Date: Fri, 21 Dec 2012 19:59:39 +0100 Subject: replace the ajax expand system by a navigation menu Signed-off-by: Pim van den Berg --- detail.php | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) (limited to 'detail.php') diff --git a/detail.php b/detail.php index 503a411..20f250a 100644 --- a/detail.php +++ b/detail.php @@ -21,11 +21,29 @@ $width = GET('x'); $heigth = GET('y'); $seconds = GET('s'); +if (!$plugin) { + $selected_plugins = $CONFIG['overview']; +} +else { + $selected_plugins = array($plugin); +} + html_start(); -printf('

%s

'."\n", - $CONFIG['weburl'].'host.php?h='.htmlentities($host), $host -); +printf('

%s

'."\n", $host); + +$plugins = collectd_plugins($host); + +if(!$plugins) { + echo "Unknown host\n"; + return false; +} + +plugins_list($host, $CONFIG['overview'], $plugins, $selected_plugins); + + +echo '
'; +plugin_header($host, $plugin); $term = array( '2hour' => 3600*2, @@ -38,23 +56,17 @@ $term = array( ); $args = $_GET; -print "
'; html_end(); -- cgit v1.1