From 79141fb64177d0570cac795215f736222f49665f Mon Sep 17 00:00:00 2001 From: hugetoad Date: Thu, 31 Oct 2002 18:58:16 +0000 Subject: - 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 --- frontends/php/chart2.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'frontends/php/chart2.php') 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; -- cgit