[fusion-commits] r1455 - trunk/MapGuide/php
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Aug 12 15:03:25 EDT 2008
Author: zjames
Date: 2008-08-12 15:03:25 -0400 (Tue, 12 Aug 2008)
New Revision: 1455
Modified:
trunk/MapGuide/php/SaveMapFrame.php
Log:
closes #52: SaveMap DWF enhancements IE fix
Modified: trunk/MapGuide/php/SaveMapFrame.php
===================================================================
--- trunk/MapGuide/php/SaveMapFrame.php 2008-08-08 19:49:29 UTC (rev 1454)
+++ trunk/MapGuide/php/SaveMapFrame.php 2008-08-12 19:03:25 UTC (rev 1455)
@@ -46,14 +46,27 @@
include('Common.php');
$szLayout="";
-if (isset($_REQUEST['layout']) && $_REQUEST['layout'] != "")
+if (isset($_REQUEST['layout']) && $_REQUEST['layout'] != "") {
$szLayout = "&layout=".$_REQUEST['layout'];
-
+}
$szScale="";
-if (isset($_REQUEST['scale']) && $_REQUEST['scale'] != "")
+if (isset($_REQUEST['scale']) && $_REQUEST['scale'] != "") {
$szScale = "&scale=".$_REQUEST['scale'];
+}
+$szPageHeight="";
+if (isset($_REQUEST['pageheight']) && $_REQUEST['pageheight'] != "") {
+ $szPageHeight = "&pageheight=".$_REQUEST['pageheight'];
+}
+$szPageWidth="";
+if (isset($_REQUEST['pagewidth']) && $_REQUEST['pagewidth'] != "") {
+ $szPageWidth = "&pagewidth=".$_REQUEST['pagewidth'];
+}
+$szPageMargins="";
+if (isset($_REQUEST['margins']) && $_REQUEST['margins'] != "") {
+ $szPageMargins = "&margins=".$_REQUEST['margins'];
+}
-echo "<iframe style='visibility: hidden;' id='theImage' src='SaveMap.php?format=".trim($_REQUEST['format'])."&mapname=".$_REQUEST['mapname']."&session=".$_REQUEST['session']. $szLayout . $szScale."'></iframe>";
+echo "<iframe style='visibility: hidden;' id='theImage' src='SaveMap.php?format=".trim($_REQUEST['format'])."&mapname=".$_REQUEST['mapname']."&session=".$_REQUEST['session']. $szLayout . $szScale . $szPageHeight . $szPageWidth . $szPageMargins . "'></iframe>";
?>
</body>
</html>
More information about the fusion-commits
mailing list