diff options
| author | Pim van den Berg | 2009-09-29 19:56:44 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2009-09-29 20:06:19 +0200 |
| commit | 8bf309b808142d21aade10a40466403adf2001d7 (patch) | |
| tree | f584b93a3a8fdd42782c29661fe906455ad15483 /host.php | |
| parent | change webdir/weburl and include/require usage (diff) | |
| download | apt-panopticon_cgp-8bf309b808142d21aade10a40466403adf2001d7.zip apt-panopticon_cgp-8bf309b808142d21aade10a40466403adf2001d7.tar.gz apt-panopticon_cgp-8bf309b808142d21aade10a40466403adf2001d7.tar.bz2 apt-panopticon_cgp-8bf309b808142d21aade10a40466403adf2001d7.tar.xz | |
layout improvement based on daniel's patch
The page is divided into a header, content and footer.
It is styled better and the header links to the main page.
Patch from Daniel von Fange (Leancoder):
http://pommi.nethuis.nl/storage/software/cgp/leancoder-css.cgp-v-0-1.patch
Diffstat (limited to 'host.php')
| -rw-r--r-- | host.php | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -9,7 +9,7 @@ $splugin = $_GET['p']; | |||
| 9 | 9 | ||
| 10 | html_start(); | 10 | html_start(); |
| 11 | 11 | ||
| 12 | printf('<h1><a href="%s">«</a> %s</h1>'."\n", $CONFIG['weburl'], $host); | 12 | printf('<h2><a href="%s">«</a> %s</h2>'."\n", $CONFIG['weburl'], $host); |
| 13 | 13 | ||
| 14 | $plugins = collectd_plugins($host); | 14 | $plugins = collectd_plugins($host); |
| 15 | 15 | ||
| @@ -21,7 +21,7 @@ if(!$plugins) { | |||
| 21 | # first the ones defined in overview | 21 | # first the ones defined in overview |
| 22 | foreach($CONFIG['overview'] as $plugin) { | 22 | foreach($CONFIG['overview'] as $plugin) { |
| 23 | if (in_array($plugin, $plugins)) { | 23 | if (in_array($plugin, $plugins)) { |
| 24 | printf("<h2>[-] %s</h2>\n", $plugin); | 24 | printf("<h3>[-] %s</h3>\n", $plugin); |
| 25 | graphs_from_plugin($host, $plugin); | 25 | graphs_from_plugin($host, $plugin); |
| 26 | } | 26 | } |
| 27 | } | 27 | } |
| @@ -31,10 +31,10 @@ foreach($plugins as $plugin) { | |||
| 31 | if (!in_array($plugin, $CONFIG['overview'])) { | 31 | if (!in_array($plugin, $CONFIG['overview'])) { |
| 32 | $url = sprintf('<a href="%s/host.php?h=%s&p=%s">%s</a>'."\n", $CONFIG['weburl'], $host, $plugin, $plugin); | 32 | $url = sprintf('<a href="%s/host.php?h=%s&p=%s">%s</a>'."\n", $CONFIG['weburl'], $host, $plugin, $plugin); |
| 33 | if ($splugin == $plugin) { | 33 | if ($splugin == $plugin) { |
| 34 | printf("<h2>[-] %s</h2>\n", $url); | 34 | printf("<h3>[-] %s</h3>\n", $url); |
| 35 | graphs_from_plugin($host, $plugin); | 35 | graphs_from_plugin($host, $plugin); |
| 36 | } else { | 36 | } else { |
| 37 | printf("<h2>[+] %s</h2>\n", $url); | 37 | printf("<h3>[+] %s</h3>\n", $url); |
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| 40 | } | 40 | } |
