[Mapbender-commits] r1458 - trunk/mapbender/http/print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jun 15 09:13:19 EDT 2007


Author: astrid_emde
Date: 2007-06-15 09:13:19 -0400 (Fri, 15 Jun 2007)
New Revision: 1458

Modified:
   trunk/mapbender/http/print/mod_printPDF.php
Log:
handling legend true/false - no error when legend=false is set

Modified: trunk/mapbender/http/print/mod_printPDF.php
===================================================================
--- trunk/mapbender/http/print/mod_printPDF.php	2007-06-14 09:00:30 UTC (rev 1457)
+++ trunk/mapbender/http/print/mod_printPDF.php	2007-06-15 13:13:19 UTC (rev 1458)
@@ -373,13 +373,17 @@
 	</td>
 </tr>
 <?php
+echo "<tr>";
+echo "<td>";
 if($legend == true){
-	echo "<tr>";
-		echo "<td>";
-		echo "<div><input type='checkbox' class='mycheck' name='mylegendcheckbox' value='false'>".$label_legend."</div>";
-		echo "</td>";
-	echo "</tr>";
+	echo "<div>";
+}else{
+	echo "<div style='visibility:hidden;'>";
 }
+echo "<input type='checkbox' class='mycheck' name='mylegendcheckbox' value='false'>".$label_legend."</div>";
+echo "</td>";
+echo "</tr>";
+
 ?>
 <table>  
 <input type='hidden' name='map_url' value=''>



More information about the Mapbender_commits mailing list