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 /inc/html.inc.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 '')
-rw-r--r-- | inc/html.inc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php index 0a5b342..99ecef2 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php | |||
@@ -15,12 +15,21 @@ function html_start() { | |||
15 | </head> | 15 | </head> |
16 | <body> | 16 | <body> |
17 | 17 | ||
18 | <div id="header"> | ||
19 | <h1><a href="{$CONFIG['weburl']}">Collectd Graph Panel</a></h1> | ||
20 | </div> | ||
21 | |||
22 | <div id="content"> | ||
23 | |||
18 | EOT; | 24 | EOT; |
19 | } | 25 | } |
20 | 26 | ||
21 | function html_end() { | 27 | function html_end() { |
22 | echo <<<EOT | 28 | echo <<<EOT |
29 | </div> | ||
30 | <div id="footer"> | ||
23 | <hr><span class="small">Collectd Graph Panel is distributed under the GNU General Public License (GPL)</span> | 31 | <hr><span class="small">Collectd Graph Panel is distributed under the GNU General Public License (GPL)</span> |
32 | </div> | ||
24 | </body> | 33 | </body> |
25 | </html> | 34 | </html> |
26 | EOT; | 35 | EOT; |