summaryrefslogtreecommitdiffstats
path: root/frontends/php/charts.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-09-04 08:04:06 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-09-04 08:04:06 +0000
commita402ff07022b7542b00cd11fe2ebba564cc69b6c (patch)
treeb9be9ad9ee6fb0ca8c2cc62377a9a3598b2a0a55 /frontends/php/charts.php
parent2fdbb13109f80ea19bf297e5b680991521adfaf1 (diff)
- fix of automatic image scaling under Explorer for charts.php
(Alexei) git-svn-id: svn://svn.zabbix.com/trunk@969 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/charts.php')
-rw-r--r--frontends/php/charts.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/frontends/php/charts.php b/frontends/php/charts.php
index cfea34fb..61a23349 100644
--- a/frontends/php/charts.php
+++ b/frontends/php/charts.php
@@ -123,7 +123,18 @@
if(isset($HTTP_GET_VARS["graphid"]))
{
echo "<script language=\"JavaScript\">";
- echo "document.write(\"<IMG SRC='chart2.php?graphid=".$HTTP_GET_VARS["graphid"]."&period=".$HTTP_GET_VARS["period"]."&from=".$HTTP_GET_VARS["from"]."&width=\"+(document.width-108)+\"'>\")";
+ echo "if (navigator.appName == \"Microsoft Internet Explorer\")";
+ echo "{";
+ echo " document.write(\"<IMG SRC='chart2.php?graphid=".$HTTP_GET_VARS["graphid"]."&period=".$HTTP_GET_VARS["period"]."&from=".$HTTP_GET_VARS["from"]."&width=\"+(document.body.clientWidth-108)+\"'>\");";
+ echo "}";
+ echo "else if (navigator.appName == \"Netscape\")";
+ echo "{";
+ echo " document.write(\"<IMG SRC='chart2.php?graphid=".$HTTP_GET_VARS["graphid"]."&period=".$HTTP_GET_VARS["period"]."&from=".$HTTP_GET_VARS["from"]."&width=\"+(document.width-108)+\"'>\");";
+ echo "}";
+ echo "else";
+ echo "{";
+ echo " document.write(\"<IMG SRC='chart2.php?graphid=".$HTTP_GET_VARS["graphid"]."&period=".$HTTP_GET_VARS["period"]."&from=".$HTTP_GET_VARS["from"]."'>\");";
+ echo "}";
echo "</script>";
}
else