[Mapbender-commits] r1081 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jan 29 07:48:25 EST 2007


Author: christoph
Date: 2007-01-29 07:48:25 -0500 (Mon, 29 Jan 2007)
New Revision: 1081

Modified:
   trunk/mapbender/http/php/mod_wfs.php
Log:
new columns f_form_element, f_edit and f_mandatory

Modified: trunk/mapbender/http/php/mod_wfs.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs.php	2007-01-29 10:16:08 UTC (rev 1080)
+++ trunk/mapbender/http/php/mod_wfs.php	2007-01-29 12:48:25 UTC (rev 1081)
@@ -90,11 +90,11 @@
 			echo "wfs_conf[".$i."]['wfs_conf_abstract']  = '".$row["wfs_conf_abstract"]."';";
 			echo "wfs_conf[".$i."]['g_label']  = '".$row["g_label"]."';";
 			echo "wfs_conf[".$i."]['g_label_id']  = '".$row["g_label_id"]."';";
-//			echo "wfs_conf[".$i."]['g_style']  = '".$row["g_style"]."';";
+			echo "wfs_conf[".$i."]['g_style']  = \"".str_replace(chr(13), "", str_replace(chr(10), "", $row["g_style"]))."\;";
 			echo "wfs_conf[".$i."]['g_button']  = '".$row["g_button"]."';";
 			echo "wfs_conf[".$i."]['g_button_id']  = '".$row["g_button_id"]."';";
 			echo "wfs_conf[".$i."]['g_buffer']  = '".$row["g_buffer"]."';";
-//			echo "wfs_conf[".$i."]['g_res_style']  = '".$row["g_res_style"]."';";
+			echo "wfs_conf[".$i."]['g_res_style']  = \"".str_replace(chr(13), "", str_replace(chr(10), "", $row["g_res_style"]))."\";";
 			echo "wfs_conf[".$i."]['g_use_wzgraphics']  = '".$row["g_use_wzgraphics"]."';";
 			echo "wfs_conf[".$i."]['fkey_featuretype_id']  = '".$row["fkey_featuretype_id"]."';";
 			echo "wfs_conf[".$i."]['wfs_getfeature']  = '".$row["wfs_getfeature"]."';";
@@ -154,10 +154,10 @@
 			echo "wfs_conf[".$i."]['element'][".$cnt."]['element_type'] = '".$row["element_type"]."';";
 			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_geom'] = '".$row["f_geom"]."';";
 			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_gid'] = '".$row["f_gid"]."';";
-//			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_form_element_html'] = \"".(str_replace(chr(13), "", str_replace(chr(10), "", $row["f_form_element_html"])))."\";";
-			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_form_element_html'] = \"\";";
-//			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_edit'] = '".$row["f_edit"]."';";
-//			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_mandatory'] = '".$row["f_mandatory"]."';";
+			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_form_element_html'] = \"".(str_replace(chr(13), "", str_replace(chr(10), "", $row["f_form_element_html"])))."\";";
+//			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_form_element_html'] = \"\";";
+			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_edit'] = '".$row["f_edit"]."';";
+			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_mandatory'] = '".$row["f_mandatory"]."';";
 			$cnt++;
 		}
 		if($cnt == 0){die("wfs_conf data not available");}		



More information about the Mapbender_commits mailing list