svn commit: r420 - trunk/mapbender/http/php/mod_WMSpreferences.php
astrid_emde at osgeo.org
astrid_emde at osgeo.org
Mon Jun 12 08:34:08 EDT 2006
Author: astrid_emde
Date: 2006-06-12 12:34:08+0000
New Revision: 420
Modified:
trunk/mapbender/http/php/mod_WMSpreferences.php
Log:
changes in function swap for moving wms up or down
but still work to do in function swap, because
window.opener.frames[mod_WMSpreferences_target2].document.location.reload();
reloads the treeGDE and ignores the choosed layers
Modified: trunk/mapbender/http/php/mod_WMSpreferences.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_WMSpreferences.php?view=diff&rev=420&p1=trunk/mapbender/http/php/mod_WMSpreferences.php&p2=trunk/mapbender/http/php/mod_WMSpreferences.php&r1=419&r2=420
==============================================================================
--- trunk/mapbender/http/php/mod_WMSpreferences.php (original)
+++ trunk/mapbender/http/php/mod_WMSpreferences.php 2006-06-12 12:34:08+0000
@@ -18,6 +18,8 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once("../../conf/mapbender.conf");
+$con = db_connect($DBSERVER,$OWNER,$PW);
+db_select_db(DB,$con);
session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -78,9 +80,7 @@
-->
</STYLE>
<?php
-require_once("../../conf/mapbender.conf");
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
+
$sql = "SELECT * FROM gui_element WHERE e_id = 'WMS_preferences' AND fkey_gui_id = '".$_SESSION["mb_user_gui"]."'";
$res = db_query($sql);
$cnt = 0;
@@ -147,6 +147,7 @@
if (window.opener.mb_swapWmsByIndex(ind, index1, index2) == true) {
loadWMS();
window.opener.zoom(mod_WMSpreferences_target1, true, 1.0);
+ window.opener.frames[mod_WMSpreferences_target2].document.location.reload();
}
}
More information about the Mapbender_commits
mailing list