diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-08-01 10:50:06 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-08-01 10:50:06 +0000 |
| commit | ef7cf9e621fc88cf13cd5fd5659fe70a75b2fc57 (patch) | |
| tree | 3d671f381f1b9352ab6c62d3ea69aa6cd0bbd9d2 /frontends/php | |
| parent | eea896574dba5f9c78106bf9ca2f7b889f91848f (diff) | |
| download | zabbix-ef7cf9e621fc88cf13cd5fd5659fe70a75b2fc57.tar.gz zabbix-ef7cf9e621fc88cf13cd5fd5659fe70a75b2fc57.tar.xz zabbix-ef7cf9e621fc88cf13cd5fd5659fe70a75b2fc57.zip | |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@155 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
| -rw-r--r-- | frontends/php/trend.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/frontends/php/trend.html b/frontends/php/trend.html index 7585e22d..cf6bbfd9 100644 --- a/frontends/php/trend.html +++ b/frontends/php/trend.html @@ -26,6 +26,11 @@ $period=4*3600; $label_format="H:i"; } + else if($type == "12hours") + { + $period=12*3600; + $label_format="H:i"; + } else { $period=3600; @@ -36,7 +41,7 @@ $sizeY=200; $shiftX=10; - $shiftY=10; + $shiftY=15; $nodata=1; @@ -54,6 +59,7 @@ $yellow=ImageColorAllocate($im,255,255,0); $cyan=ImageColorAllocate($im,0,255,255); $black=ImageColorAllocate($im,0,0,0); + $gray=ImageColorAllocate($im,150,150,150); $x=imagesx($im); $y=imagesy($im); @@ -159,6 +165,8 @@ ImageString($im, 2,$sizeX/2 -50, $sizeY+$shiftY+3, "NO DATA FOR THIS PERIOD" , $red); } + ImageString($im,0,$shiftX+$sizeX-85,$sizeY+$shiftYup+28, "http://zabbix.sourceforge.net", $gray); + ImagePng($im); ImageDestroy($im); ?> |
