diff options
Diffstat (limited to 'frontends/php/charts.php')
-rw-r--r-- | frontends/php/charts.php | 13 |
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); } |