[Mapbender-commits] r1818 - branches/mapbender_sld/http/sld/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Nov 15 11:13:17 EST 2007


Author: mschulz
Date: 2007-11-15 11:13:17 -0500 (Thu, 15 Nov 2007)
New Revision: 1818

Modified:
   branches/mapbender_sld/http/sld/classes/BinaryComparisonOp.php
Log:
made aware of the featuretypes attributes: select list

Modified: branches/mapbender_sld/http/sld/classes/BinaryComparisonOp.php
===================================================================
--- branches/mapbender_sld/http/sld/classes/BinaryComparisonOp.php	2007-11-15 16:11:51 UTC (rev 1817)
+++ branches/mapbender_sld/http/sld/classes/BinaryComparisonOp.php	2007-11-15 16:13:17 UTC (rev 1818)
@@ -80,8 +80,13 @@
 		
 		$temp .= $offset."  <input type=\"hidden\" name=\"".$id."\" value=\"binaryComparisonOp\">\n";
 		$temp .= $offset."  <input type=\"hidden\" name=\"".$id."_name\" value=\"".$this->name."\">\n";
-		
-		$temp .= $offset."  <input name=\"".$id."_ogcpropertyname\" value=\"".$this->ogcPropertyName."\">\n";
+		if (count($_SESSION["sld_objects"][3]->attrs)>0) {
+			$temp .= $offset."  <input type=\"hidden\" id=\"".$id."_ogcpropertyname\" name=\"".$id."_ogcpropertyname\" value=\"".$this->ogcPropertyName."\">\n";
+			$temp_elements = $_SESSION["sld_objects"][3]->generateElementsHtml($id."_ogcpropertyname",$this->ogcPropertyName);
+			$temp .= $offset.$temp_elements;
+		} else {
+			$temp .= $offset."  <input name=\"".$id."_ogcpropertyname\" value=\"".$this->ogcPropertyName."\">\n";
+		}
 		$temp .= $offset." </td>\n";
 		$temp .= $offset." <td style=\"width:50px; text-align: center; font-size: large; \">";
 				



More information about the Mapbender_commits mailing list