summaryrefslogtreecommitdiffstats
path: root/frontends/php/charts.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-06-29 13:57:25 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-06-29 13:57:25 +0000
commita601b443e31a4b13d3d19279e1d20215936d55d7 (patch)
tree689e6782926c3fd45b339d6b0bda7109c6278e00 /frontends/php/charts.php
parentb0cb81d651f0bba1b2a75eddea37a7c0bcaa8946 (diff)
downloadzabbix-a601b443e31a4b13d3d19279e1d20215936d55d7.tar.gz
zabbix-a601b443e31a4b13d3d19279e1d20215936d55d7.tar.xz
zabbix-a601b443e31a4b13d3d19279e1d20215936d55d7.zip
- some adjusts to pass XHTML validation (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4401 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/charts.php')
-rw-r--r--frontends/php/charts.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/frontends/php/charts.php b/frontends/php/charts.php
index 4a3c0d95..483ec332 100644
--- a/frontends/php/charts.php
+++ b/frontends/php/charts.php
@@ -210,11 +210,14 @@ include_once "include/page_header.php";
if($_REQUEST["graphid"] > 0)
{
- $row = "\n<script language=\"JavaScript\">\n".
- "if(window.innerWidth) width=window.innerWidth; else width=document.body.clientWidth;\n".
- "document.write(\"<IMG SRC='chart2.php?graphid=".$_REQUEST["graphid"].url_param("stime").url_param("from").
- "&period=".$effectiveperiod."&width=\"+(width-108)+\"'>\")\n".
- "</script>";
+ $row = "\n".'<script language="javascript" type="text/javascript">
+ <!--
+ if(window.innerWidth) width=window.innerWidth;
+ else width=document.body.clientWidth;
+ document.write(\'<img src="chart2.php?graphid='.$_REQUEST['graphid'].url_param('stime').url_param('from').
+ '&period='.$effectiveperiod.'&width=\'+(width-108)+\'" />\');
+ -->
+ </script>'."\n";
$table->AddRow($row);
}