fix layout of about page with long apache version strings, add humidity to stats

git-svn-id: http://www.observium.org/svn/observer/trunk@1251 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-06-23 16:33:23 +00:00
parent 51dca8cb37
commit c9d1cb6f2a
2 changed files with 35 additions and 29 deletions
+2 -2
View File
@@ -172,7 +172,7 @@ function generate_port_thumbnail($args)
function print_optionbar_start ($height = 20, $width = 0)
{
echo("
<div style='text-align: center; margin-top: 0px; margin-bottom: 0px; " . ($width ? 'max-width: ' . $width . 'px; ' : '') . "'>
<div style='text-align: center; margin-top: 0px; margin-bottom: 0px; " . ($width ? 'max-width: ' . $width . (strstr($width,'%') ? '' : 'px') . '; ' : '') . "'>
<b class='rounded'>
<b class='rounded1'><b></b></b>
<b class='rounded2'><b></b></b>
@@ -180,7 +180,7 @@ function print_optionbar_start ($height = 20, $width = 0)
<b class='rounded4'></b>
<b class='rounded5'></b></b>
<div class='roundedfg' style='padding: 0px 5px;'>
<div style='margin: auto; text-align: left; padding: 2px 5px; padding-left: 11px; clear: both; display:block; height:" . $height . "px;'>");
<div style='margin: auto; text-align: left; padding: 2px 5px; padding-left: 11px; clear: both; display:block; " . ($height ? 'height:' . $height . 'px;' : '') . "'>");
}