diff options
author | Pim van den Berg | 2013-05-20 22:51:44 +0200 |
---|---|---|
committer | Pim van den Berg | 2013-06-22 12:16:28 +0200 |
commit | 51cd1c4dbdd684dd9a2d487770b6f28d67a25ccc (patch) | |
tree | afead94366494bfad9dcd3193475564cc3ff117f /inc | |
parent | plugin/nut: collectd 5 compatibility for frequency graph (diff) | |
download | apt-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 'inc')
-rw-r--r-- | inc/html.inc.php | 9 |
1 files changed, 6 insertions, 3 deletions
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; | |||
91 | function plugin_header($host, $plugin) { | 91 | function plugin_header($host, $plugin) { |
92 | global $CONFIG; | 92 | global $CONFIG; |
93 | 93 | ||
94 | return printf("<h3><a href='%shost.php?h=%s&p=%s'>%s</a></h3>\n", $CONFIG['weburl'], $host, $plugin, $plugin); | 94 | return printf("<h2><a href='%shost.php?h=%s&p=%s'>%s</a></h2>\n", $CONFIG['weburl'], $host, $plugin, $plugin); |
95 | } | 95 | } |
96 | 96 | ||
97 | function plugins_list($host, $selected_plugins = array()) { | 97 | function plugins_list($host, $selected_plugins = array()) { |
@@ -100,7 +100,7 @@ function plugins_list($host, $selected_plugins = array()) { | |||
100 | $plugins = collectd_plugins($host); | 100 | $plugins = collectd_plugins($host); |
101 | 101 | ||
102 | echo '<div class="plugins">'; | 102 | echo '<div class="plugins">'; |
103 | echo '<h3>Plugins</h3>'; | 103 | echo '<h2>Plugins</h2>'; |
104 | echo '<ul>'; | 104 | echo '<ul>'; |
105 | 105 | ||
106 | printf("<li><a %s href='%shost.php?h=%s'>overview</a></li>\n", | 106 | printf("<li><a %s href='%shost.php?h=%s'>overview</a></li>\n", |
@@ -158,11 +158,13 @@ function selected_timerange($value1, $value2) { | |||
158 | return ''; | 158 | return ''; |
159 | } | 159 | } |
160 | 160 | ||
161 | function host_summary($hosts) { | 161 | function host_summary($cat, $hosts) { |
162 | global $CONFIG; | 162 | global $CONFIG; |
163 | 163 | ||
164 | $rrd = new RRDTool($CONFIG['rrdtool']); | 164 | $rrd = new RRDTool($CONFIG['rrdtool']); |
165 | 165 | ||
166 | printf('<fieldset id="%s">', $cat); | ||
167 | printf('<legend>%s</legend>', $cat); | ||
166 | echo "<table class=\"summary\">\n"; | 168 | echo "<table class=\"summary\">\n"; |
167 | 169 | ||
168 | $row_style = array(0 => "even", 1 => "odd"); | 170 | $row_style = array(0 => "even", 1 => "odd"); |
@@ -198,6 +200,7 @@ function host_summary($hosts) { | |||
198 | } | 200 | } |
199 | 201 | ||
200 | echo "</table>\n"; | 202 | echo "</table>\n"; |
203 | echo "</fieldset>\n"; | ||
201 | } | 204 | } |
202 | 205 | ||
203 | 206 | ||