[Mapbender-commits] r2325 - branches/nimix_dev/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Apr 2 03:55:12 EDT 2008


Author: nimix
Date: 2008-04-02 03:55:12 -0400 (Wed, 02 Apr 2008)
New Revision: 2325

Modified:
   branches/nimix_dev/http/php/mod_WMSpreferences.php
Log:
fix wms_preference error

Modified: branches/nimix_dev/http/php/mod_WMSpreferences.php
===================================================================
--- branches/nimix_dev/http/php/mod_WMSpreferences.php	2008-04-02 07:53:52 UTC (rev 2324)
+++ branches/nimix_dev/http/php/mod_WMSpreferences.php	2008-04-02 07:55:12 UTC (rev 2325)
@@ -59,6 +59,20 @@
 </STYLE>
 <?php
 echo '<script type="text/javascript">';
+$sql = "SELECT * FROM gui_element WHERE e_id = 'WMS_preferences' AND fkey_gui_id = $1";
+$v = array($_SESSION["mb_user_gui"]);
+$t = array("s");
+$res = db_prep_query($sql, $v, $t);
+$cnt = 0;
+$vis = "";
+$wmsid = "";
+
+while($row = db_fetch_array($res)){
+   $e_target = $row["e_target"];
+   $cnt++;
+}
+if($cnt > 1){ echo "alert('WMS_preferences: ID not unique!');";}
+$e_target = explode(",", $e_target);
 echo "var mod_WMSpreferences_target1 = '".trim($e_target[0])."';";
 echo "var mod_WMSpreferences_target2 = '".trim($e_target[1])."';";
 echo "</script>";



More information about the Mapbender_commits mailing list