diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-10-31 18:58:16 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-10-31 18:58:16 +0000 |
| commit | 79141fb64177d0570cac795215f736222f49665f (patch) | |
| tree | 3a543e2b4621f2de7aae9131d543de5c52573e88 /frontends/php/chart2.php | |
| parent | 50c35499c6c632a40028f983e10535db7f7c2854 (diff) | |
| download | zabbix-79141fb64177d0570cac795215f736222f49665f.tar.gz zabbix-79141fb64177d0570cac795215f736222f49665f.tar.xz zabbix-79141fb64177d0570cac795215f736222f49665f.zip | |
- support fo JavaScript required now (Alexei)
- automatic resize of user-defined graphs depending on screen size (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@551 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart2.php')
| -rw-r--r-- | frontends/php/chart2.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php index 9c9e83a2..2dd2652e 100644 --- a/frontends/php/chart2.php +++ b/frontends/php/chart2.php @@ -30,7 +30,14 @@ $result=DBselect("select name,width,height from graphs where graphid=".$HTTP_GET_VARS["graphid"]); $name=DBget_field($result,0,0); - $width=DBget_field($result,0,1); + if(isset($HTTP_GET_VARS["x"])) + { + $width=$HTTP_GET_VARS["x"]; + } + else + { + $width=DBget_field($result,0,1); + } $height=DBget_field($result,0,2); $sizeX=$width; |
