[Mapbender-commits] r1007 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 16 06:06:10 EST 2007


Author: christoph
Date: 2007-01-16 06:06:10 -0500 (Tue, 16 Jan 2007)
New Revision: 1007

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
added select box support in wfs save dialogue

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-01-16 11:04:12 UTC (rev 1006)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-01-16 11:06:10 UTC (rev 1007)
@@ -720,16 +720,24 @@
 				if (parseInt(c['f_geom']) != 1) {
 					str += "\t\t<tr>\n\t\t\t<td>\n";
 					str += "\t\t\t\t" + wfsElementName + "\n\t\t\t</td>\n\t\t\t<td colspan = 2>\n";
-					str += "\t\t\t\t<input name='" + wfsElementName + "' type='text' size=20 ";
-		
-					if (parseInt(memberIndex) != -1) {
-						for (var j = 0 ; j < memEl.count() ; j ++) {
-							if (memEl.getName(j) == c['element_name']) {
-								str += "value = '" + memEl.getValue(j) + "' ";
+
+					if (c['f_box'] == "") {
+						var elementValue;
+						if (parseInt(memberIndex) != -1) {
+							for (var j = 0 ; j < memEl.count() ; j ++) {
+								if (memEl.getName(j) == c['element_name']) {
+									elementValue = memEl.getValue(j);
+								}
 							}
 						}
+	
+						str += "\t\t\t\t<input name='" + wfsElementName + "' type='text' size=20 value = '" + elementValue + "'>\n";
 					}
-					str += ">\n\t\t\t</td>\n\t\t</tr>\n";
+					else {
+						box = c['f_box']; 
+						str += box;
+					}
+					str += "\t\t\t</td>\n\t\t</tr>\n";
 				}
 				else geom = wfsElementName;
 			}



More information about the Mapbender_commits mailing list