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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Apr 12 03:57:14 EDT 2007


Author: christoph
Date: 2007-04-12 03:57:14 -0400 (Thu, 12 Apr 2007)
New Revision: 1256

Modified:
   trunk/mapbender/http/javascripts/mod_loadwmc.php
Log:
* changed $DB etc to DB
* added parameter e_id


Modified: trunk/mapbender/http/javascripts/mod_loadwmc.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_loadwmc.php	2007-04-12 07:53:11 UTC (rev 1255)
+++ trunk/mapbender/http/javascripts/mod_loadwmc.php	2007-04-12 07:57:14 UTC (rev 1256)
@@ -22,7 +22,7 @@
 
 $gui_id = $_REQUEST["gui_id"];
 
-$con = db_connect($DBSERVER,$OWNER,$PW);
+$con = db_connect(DBSERVER, OWNER, PW);
 db_select_db(DB,$con);
 $sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'savewmc' AND fkey_gui_id = $1";
 $v = array($gui_id);
@@ -66,11 +66,11 @@
 }
 //mb_registerInitFunctions('load_wmc_session()');
 
-var mod_loadwmc_img = new Image(); mod_loadwmc_img.src = "<?php  echo $e_src;  ?>";
-//var mod_loadwmc_img_over = new Image(); mod_loadwmc_img_over.src = "<?php  echo preg_replace("/_off/","_over",$e_src);  ?>";
+var mod_loadwmc_img = new Image(); mod_loadwmc_img.src = "<?php echo $e_src; ?>";
+//var mod_loadwmc_img_over = new Image(); mod_loadwmc_img_over.src = "<?php echo preg_replace("/_off/","_over",$e_src);  ?>";
 
 function mod_loadwmc(obj){
-	windowWmc = window.open("../php/mb_listWMCs.php?<?php echo SID;?>","displayWmc","width=500, height=600, scrollbars=yes, dependent=yes");
+	windowWmc = window.open("../php/mb_listWMCs.php?<?php echo "e_id=".$e_id . "&" . SID;?>","displayWmc","width=500, height=600, scrollbars=yes, dependent=yes");
 	//windowWmc.focus();
 }
 function mod_loadwmc_init(obj){



More information about the Mapbender_commits mailing list