[Mapbender-commits] r3102 - in branches/noframes: . http/classes http/html http/javascripts http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Oct 3 06:37:34 EDT 2008


Author: nimix
Date: 2008-10-03 06:37:33 -0400 (Fri, 03 Oct 2008)
New Revision: 3102

Modified:
   branches/noframes/http/classes/class_map.php
   branches/noframes/http/html/mod_treefolderPlain.php
   branches/noframes/http/javascripts/map.js
   branches/noframes/http/javascripts/map_obj.js
   branches/noframes/http/javascripts/mapnf.php
   branches/noframes/http/javascripts/mod_dragMapSize.php
   branches/noframes/http/javascripts/mod_pan.php
   branches/noframes/http/php/mod_map1.php
   branches/noframes/http/php/mod_mapOV.php
   branches/noframes/noframeGui.sql
Log:
identify mapframe bei their elementName and not by Frame

Modified: branches/noframes/http/classes/class_map.php
===================================================================
--- branches/noframes/http/classes/class_map.php	2008-10-03 08:54:26 UTC (rev 3101)
+++ branches/noframes/http/classes/class_map.php	2008-10-03 10:37:33 UTC (rev 3102)
@@ -69,6 +69,13 @@
 	}
 
 	/**
+	 * @param $value String
+	 */
+	public function setElementName ($value) {
+		$this->elementName = $value;
+	}
+
+	/**
 	 * 
 	 * @return String
 	 */
@@ -336,7 +343,7 @@
 		}
 		$registerMapString = "mb_registerMapObj('" . 
 			$this->frameName . "', " . 
-			"'maps', " . 
+			"'".$this->elementName."', " . 
 			$wmsIndex . ", " . 
 			$this->width . ", " . 
 			$this->height . ");"; 
@@ -394,6 +401,7 @@
 			$currentMap->setWidth($row["e_width"]);
 			$currentMap->setHeight($row["e_height"]);
 			$currentMap->setFrameName($row["e_id"]);
+			$currentMap->setElementName($row["e_id"]);
 			
 			// get the WMS 
 			$wmsArray = wms::selectMyWmsByApplication($appId);

Modified: branches/noframes/http/html/mod_treefolderPlain.php
===================================================================
--- branches/noframes/http/html/mod_treefolderPlain.php	2008-10-03 08:54:26 UTC (rev 3101)
+++ branches/noframes/http/html/mod_treefolderPlain.php	2008-10-03 10:37:33 UTC (rev 3102)
@@ -25,12 +25,8 @@
 Fenster1.focus();
 }
 <?php
-   $sql = "SELECT e_target FROM gui_element WHERE e_id = $1 AND fkey_gui_id = $2";
-   $v = array($_REQUEST['e_id_css'],$_SESSION["mb_user_gui"]);
-   $t = array('s','s');
-   $res = db_prep_query($sql,$v,$t);
-   $e_target = db_result($res,0,"e_target");   
-   echo "mod_treeGDE_map = '".$e_target."';";   
+
+   echo "mod_treeGDE_map = '".$e_target[0]."';";   
 session_write_close();
 ?>
 var msgObj = {};
@@ -206,30 +202,29 @@
 
 function updateScale(){
 	if(!initialized)return;
-	for(var i=0; i< mb_mapObj.length; i++){
-		var scale = parseInt( mb_getScale(mod_treeGDE_map));
-		if( mb_mapObj[i].frameName == mod_treeGDE_map){ 
-			for(var ii=0; ii< mb_mapObj[i].wms.length; ii++){
-				for(var iii=1; iii< mb_mapObj[i].wms[ii].objLayer.length; iii++){
-					if(scale < parseInt( mb_mapObj[i].wms[ii].objLayer[iii].gui_layer_minscale) && parseInt( mb_mapObj[i].wms[ii].objLayer[iii].gui_layer_minscale) != 0){                    
-						if(iii==0)
-						   	setNodeColor(arrNodes[0][0]+"|wms_"+ mb_mapObj[i].wms[ii].wms_id, '#999999');
-						else
-						   	setNodeColor(arrNodes[0][0]+"|wms_"+ mb_mapObj[i].wms[ii].wms_id+"|"+ mb_mapObj[i].wms[ii].objLayer[iii].layer_id, '#999999');
-					}
-					else if(scale > parseInt( mb_mapObj[i].wms[ii].objLayer[iii].gui_layer_maxscale) && parseInt( mb_mapObj[i].wms[ii].objLayer[iii].gui_layer_maxscale) != 0){
-						if(iii==0)
-						   	setNodeColor(arrNodes[0][0]+"|wms_"+ mb_mapObj[i].wms[ii].wms_id, '#999999');
-						else
-						   	setNodeColor(arrNodes[0][0]+"|wms_"+ mb_mapObj[i].wms[ii].wms_id+"|"+ mb_mapObj[i].wms[ii].objLayer[iii].layer_id, '#999999');
-					}
-					else{
-						if(iii==0)
-						   	setNodeColor(arrNodes[0][0]+"|wms_"+ mb_mapObj[i].wms[ii].wms_id, '');
-						else
-						   	setNodeColor(arrNodes[0][0]+"|wms_"+ mb_mapObj[i].wms[ii].wms_id+"|"+ mb_mapObj[i].wms[ii].objLayer[iii].layer_id, '');
-					}
+	myMapObj = getMapObjByName(mod_treeGDE_map);
+	if(myMapObj){
+		var scale = parseInt(mb_getScale(mod_treeGDE_map));
+		for(var ii=0; ii< myMapObj.wms.length; ii++){
+			for(var iii=1; iii< myMapObj.wms[ii].objLayer.length; iii++){
+				if(scale < parseInt( myMapObj.wms[ii].objLayer[iii].gui_layer_minscale) && parseInt( myMapObj.wms[ii].objLayer[iii].gui_layer_minscale) != 0){                    
+					if(iii==0)
+					   	setNodeColor(arrNodes[0][0]+"|wms_"+ myMapObj.wms[ii].wms_id, '#999999');
+					else
+					   	setNodeColor(arrNodes[0][0]+"|wms_"+ myMapObj.wms[ii].wms_id+"|"+ myMapObj.wms[ii].objLayer[iii].layer_id, '#999999');
 				}
+				else if(scale > parseInt( myMapObj.wms[ii].objLayer[iii].gui_layer_maxscale) && parseInt( myMapObj.wms[ii].objLayer[iii].gui_layer_maxscale) != 0){
+					if(iii==0)
+					   	setNodeColor(arrNodes[0][0]+"|wms_"+ myMapObj.wms[ii].wms_id, '#999999');
+					else
+					   	setNodeColor(arrNodes[0][0]+"|wms_"+ myMapObj.wms[ii].wms_id+"|"+ myMapObj.wms[ii].objLayer[iii].layer_id, '#999999');
+				}
+				else{
+					if(iii==0)
+					   	setNodeColor(arrNodes[0][0]+"|wms_"+ myMapObj.wms[ii].wms_id, '');
+					else
+					   	setNodeColor(arrNodes[0][0]+"|wms_"+ myMapObj.wms[ii].wms_id+"|"+ myMapObj.wms[ii].objLayer[iii].layer_id, '');
+				}
 			}
 		}
 	}	

Modified: branches/noframes/http/javascripts/map.js
===================================================================
--- branches/noframes/http/javascripts/map.js	2008-10-03 08:54:26 UTC (rev 3101)
+++ branches/noframes/http/javascripts/map.js	2008-10-03 10:37:33 UTC (rev 3102)
@@ -47,7 +47,7 @@
 eventAfterInit.register(function () {
 	// performs a map request for each map frame
 	for (var i = 0; i < mb_mapObj.length; i++){
-		setMapRequest(mb_mapObj[i].frameName);
+		setMapRequest(mb_mapObj[i].elementName);
 	}      	
 });
 
@@ -179,7 +179,7 @@
 	var myMapId = [];
 	for (var i=0; i < mb_mapObj.length; i++){
 		var currentMapObject = mb_mapObj[i];
-		if (currentMapObject.frameName != frameName) {
+		if (currentMapObject.elementName != frameName) {
 			continue;
 		}
 		
@@ -194,7 +194,7 @@
 			newMapRequest += getLayerHtmlCode(frameName, i, ii);
 			
 		}
-		writeTag(mb_mapObj[i].frameName, mb_mapObj[i].elementName, newMapRequest);
+		writeTag(mb_mapObj[i].frameName, mb_mapObj[i].elementName+"_maps", newMapRequest);
 	}
 	eventAfterMapRequest.trigger({
 		"frameName": frameName,
@@ -654,16 +654,16 @@
 }
 
 // function for object-identification 
-function getMapObjIndexByName(frameName){
+function getMapObjIndexByName(elementName){
 	for(var i=0; i<mb_mapObj.length; i++){
-		if(mb_mapObj[i].frameName == frameName){
+		if(mb_mapObj[i].elementName == elementName){
 			return i;
 		}
 	}   
 }
-function getMapObjByName(frameName){
+function getMapObjByName(elementName){
 	for(var i=0; i<mb_mapObj.length; i++){
-		if(mb_mapObj[i].frameName == frameName){
+		if(mb_mapObj[i].elementName == elementName){
 			return mb_mapObj[i];
 		}
 	}

Modified: branches/noframes/http/javascripts/map_obj.js
===================================================================
--- branches/noframes/http/javascripts/map_obj.js	2008-10-03 08:54:26 UTC (rev 3101)
+++ branches/noframes/http/javascripts/map_obj.js	2008-10-03 10:37:33 UTC (rev 3102)
@@ -75,12 +75,16 @@
 	this.epsg = wms[0].gui_wms_epsg;
 	this.extent = setExtent(this.width,this.height,this.epsg);
 	this.mapURL = [];
-	if(this.frameName)
-		var styleTag = window.frames[this.frameName].document.getElementById(this.elementName).style;
-	else
-		var styleTag = document.getElementById(this.elementName).style;
-	styleTag.width = this.width;
-	styleTag.height = this.height;   
+	console.log(this.frameName);
+	console.log(this.elementName);
+	if(this.frameName){
+		this.domElement = window.frames[this.frameName].document.getElementById(this.elementName);
+	}
+	else{
+		this.domElement = document.getElementById(this.elementName);
+	}
+	this.domElement.style.width = this.width;
+	this.domElement.style.height = this.height;   
    
 	/**
 	 * get the width of the mapObj
@@ -403,5 +407,9 @@
 		return true;
 	};
 	
+	this.getDomElement = function(){
+		return this.domElement;
+	}
+	
 	eventAfterMapObjectConstruction.trigger();
 }
\ No newline at end of file

Modified: branches/noframes/http/javascripts/mapnf.php
===================================================================
--- branches/noframes/http/javascripts/mapnf.php	2008-10-03 08:54:26 UTC (rev 3101)
+++ branches/noframes/http/javascripts/mapnf.php	2008-10-03 10:37:33 UTC (rev 3102)
@@ -1 +1 @@
-mb_registerMapObj('', 'maps', null,500, 500);
\ No newline at end of file
+mb_registerMapObj('', 'mapframe1', null,500, 500);
\ No newline at end of file

Modified: branches/noframes/http/javascripts/mod_dragMapSize.php
===================================================================
--- branches/noframes/http/javascripts/mod_dragMapSize.php	2008-10-03 08:54:26 UTC (rev 3101)
+++ branches/noframes/http/javascripts/mod_dragMapSize.php	2008-10-03 10:37:33 UTC (rev 3102)
@@ -94,10 +94,16 @@
 	var pos =  makeClickPos2RealWorldPos(mod_dragMapSize_target, (parseFloat(mb_mapObj[ind].width) + parseFloat(dif_x)), (parseFloat(mb_mapObj[ind].height) + parseFloat(dif_y)));
 	mb_mapObj[ind].width = parseFloat(mb_mapObj[ind].width) + parseFloat(dif_x);
 	mb_mapObj[ind].height = parseFloat(mb_mapObj[ind].height) + parseFloat(dif_y);
-	document.getElementById(mod_dragMapSize_target).style.width = mb_mapObj[ind].width;
-	document.getElementById(mod_dragMapSize_target).style.height = mb_mapObj[ind].height;
-	window.frames[mod_dragMapSize_target].document.getElementById("maps").style.width = mb_mapObj[ind].width;
-	window.frames[mod_dragMapSize_target].document.getElementById("maps").style.height = mb_mapObj[ind].height;
+
+	targetObject = getMapObjByName(mod_dragMapSize_target);
+	if(targetObject.frameName){
+		document.getElementById(targetObject.frameName).style.width = mb_mapObj[ind].width;
+		document.getElementById(targetObject.frameName).style.height = mb_mapObj[ind].height;
+	}
+	var el = targetObject.getDomElement();
+	el.style.width = mb_mapObj[ind].width;
+	el.style.height = mb_mapObj[ind].height;
+	
 	var mybbox = mb_mapObj[ind].extent.split(",");
 	mb_mapObj[ind].extent = mybbox[0] + "," + pos[1] + "," + pos[0] + "," +  mybbox[3];
 	setMapRequest(mod_dragMapSize_target);

Modified: branches/noframes/http/javascripts/mod_pan.php
===================================================================
--- branches/noframes/http/javascripts/mod_pan.php	2008-10-03 08:54:26 UTC (rev 3101)
+++ branches/noframes/http/javascripts/mod_pan.php	2008-10-03 10:37:33 UTC (rev 3102)
@@ -22,8 +22,8 @@
 ?>
 var mod_pan_elName = "pan1";
 var mod_pan_frameName = "";
+var mod_pan_MapObj = null;
 
-
 var mod_pan_img_on = new Image(); mod_pan_img_on.src = "<?php  echo preg_replace("/_off/","_on",$e_src);  ?>";
 var mod_pan_img_off = new Image(); mod_pan_img_off.src = "<?php  echo $e_src;  ?>";
 var mod_pan_img_over = new Image(); mod_pan_img_over.src = "<?php  echo preg_replace("/_off/","_over",$e_src);  ?>";
@@ -32,6 +32,7 @@
 var mb_panActive = false;
 
 function init_mod_pan(ind){
+	mod_pan_MapObj = getMapObjByName(mod_pan_target);
 	mb_button[ind] = document.getElementById(mod_pan_elName);
 	mb_button[ind].img_over = mod_pan_img_over.src;
 	mb_button[ind].img_on = mod_pan_img_on.src;
@@ -43,32 +44,27 @@
 	mb_button[ind].stop = new Function ("mod_pan_disable()");
 }
 function mod_pan_click(){   
-	//var p = window.frames[mod_pan_target].document.getElementById("maps");
-	//p.style.cursor = "pointer";
+	var p = mod_pan_MapObj.getDomElement();
+	p.style.cursor = "pointer";
 	
-	if(mod_pan_target)
-		var el = window.frames[mod_pan_target].document; 
-	else
-		var el = document.getElementById("mapDiv");
-	el.onmousedown = mod_pan_start;
-	el.onmouseup = mod_pan_stop;
-	el.onmousemove = mod_pan_run;
+	p.onmousedown = mod_pan_start;
+	p.onmouseup = mod_pan_stop;
+	p.onmousemove = mod_pan_run;
 }
 function mod_pan_disable(){
-	//var p = window.frames[mod_pan_target].document.getElementById("maps");
-	//p.style.cursor = "";
-	
-	if(mod_pan_target)
-		var el = window.frames[mod_pan_target].document; 
-	else
-		var el = document.getElementById("mapDiv");
-	el.onmousedown = null;
-	el.onmouseup = null;
-	el.onmousemove = null;
+	var p = mod_pan_MapObj.getDomElement();
+	p.style.cursor = "pointer";
+
+	p.onmousedown = null;
+	p.onmouseup = null;
+	p.onmousemove = null;
 }
 function mod_pan_start(e){
 	mb_panActive = true;
 	mb_getMousePos(e,mod_pan_target);
+	var el = mod_pan_MapObj.getDomElement();
+	mb_element_x = parseInt(el.style.left);
+	mb_element_y = parseInt(el.style.top);
 	mb_start_x=clickX;
 	mb_start_y=clickY;
 	mb_end_x = clickX;
@@ -77,7 +73,7 @@
 }
 function mod_pan_run(e){
 	if(mb_panActive){
-		mb_getMousePos(e,mod_pan_target);
+		mb_getMousePos(e,mod_pan_MapObj.frameName);
 		mb_end_x = clickX;
 		mb_end_y = clickY;
 		mod_pan_move_map();
@@ -93,27 +89,27 @@
 	mb_panActive = false;
 	var dif_x = mb_end_x - mb_start_x;
 	var dif_y = mb_end_y - mb_start_y;
-	for(var i=0; i<mb_mapObj.length; i++){
-		if(mb_mapObj[i].frameName == mod_pan_target){
-			var width = mb_mapObj[i].width;
-			var height = mb_mapObj[i].height;      
-		}
-	} 
+	var width = mod_pan_MapObj.width;
+	var height = mod_pan_MapObj.height;      
+
+	var el = mod_pan_MapObj.getDomElement();
 	var center_x = (width / 2)  - dif_x;
 	var center_y = (height / 2) - dif_y;
 	var real_center = makeClickPos2RealWorldPos(mod_pan_target,center_x, center_y);   
-	mb_arrangeElement(mod_pan_target, "maps", 0, 0);
+
+	mb_arrangeElement(mod_pan_MapObj.frameName, mod_pan_target+"_maps", 0, 0);
 	for(var i=0; i<mb_PanSubElements.length; i++){
-		mb_arrangeElement(mod_pan_target, mb_PanSubElements[i], 0, 0);
-	}
+		mb_arrangeElement(mod_pan_MapObj.frameName, mb_PanSubElements[i], 0, 0);
+	} 
    zoom(mod_pan_target,false, 1.0, real_center[0], real_center[1]);   
 }
 function mod_pan_move_map(){
 	var dif_x = mb_end_x - mb_start_x;
 	var dif_y = mb_end_y - mb_start_y;
-	mb_arrangeElement(mod_pan_target, "maps", dif_x, dif_y);
+	
+	mb_arrangeElement(mod_pan_MapObj.frameName, mod_pan_target+"_maps", dif_x, dif_y);
 	for(var i=0; i<mb_PanSubElements.length; i++){
-		mb_arrangeElement(mod_pan_target, mb_PanSubElements[i], dif_x, dif_y);
+		mb_arrangeElement(mod_pan_MapObj.frameName, mb_PanSubElements[i], dif_x, dif_y);
 	} 
 	return false;  
 }
\ No newline at end of file

Modified: branches/noframes/http/php/mod_map1.php
===================================================================
--- branches/noframes/http/php/mod_map1.php	2008-10-03 08:54:26 UTC (rev 3101)
+++ branches/noframes/http/php/mod_map1.php	2008-10-03 10:37:33 UTC (rev 3102)
@@ -66,7 +66,7 @@
 function init () {
 	
 	parent.eventInitMap.register(function init_mod_map1(){
-		parent.mb_registerMapObj('mapframe1', 'maps', null,mod_map1_width, mod_map1_height);
+		parent.mb_registerMapObj('mapframe1', 'mapframe1', null,mod_map1_width, mod_map1_height);
 		
 		parent.$(document, window.frames['mapframe1']).mousewheel(function (event, delta) {
 			if (sum_delta == 0) {
@@ -121,8 +121,9 @@
 </script>
 </head>
 <body leftmargin='0' topmargin='0' onload="init()" bgcolor='#ffffff'>
+<div id='mapframe1' name='mapframe1' style ='position: absolute; left: 0px; top: 0px; width: 0px; height: 0px; z-index:2;'>
 <div id='markResult' name='maps' style ='position: absolute; left: 0px; top: 0px; width: 0px; height: 0px; z-index:26'> </div>
-<div id='maps' name='maps' style ='position: absolute; left: 0px; top: 0px; width: 0px; height: 0px; z-index:2;'> </div>
+<div id='mapframe1_maps' name='maps' style ='position: absolute; left: 0px; top: 0px; width: 0px; height: 0px; z-index:2;'> </div>
 <div id='highlight' style="position:absolute;top:-10px;left:-10px;width:14px;height:14px;z-index:3;visibility:visible"><img src="../img/redball.gif"/></div>
 <div id='l_right' name='l_right' style="position:absolute;top:0px;left:0px;width:0px;height:0px;overflow:hidden;z-index:10;visibility:hidden;background-color:#ff0000;cursor: crosshair;"></div>
 <div id='l_bottom'  name='l_bottom' style="position:absolute;top:0px;left:0px;width:0px;height:0px;overflow:hidden;z-index:11;visibility:hidden;background-color:#ff0000;cursor: crosshair;"></div>
@@ -141,5 +142,6 @@
 <div id='um_draw' name='um_draw' style="LEFT:0px;OVERFLOW:visible;POSITION:absolute;TOP:0px;z-index:99;"></div>
 <img id='um_img' name='um_img' style ='position: absolute; left: 0px; top: 0px; width: 0px; height: 0px; border:0;z-index:100' src='../img/transparent.gif' useMap='#um'>
 <map name='um' id='um'></map>
+</div>
 </body>
 </html>

Modified: branches/noframes/http/php/mod_mapOV.php
===================================================================
--- branches/noframes/http/php/mod_mapOV.php	2008-10-03 08:54:26 UTC (rev 3101)
+++ branches/noframes/http/php/mod_mapOV.php	2008-10-03 10:37:33 UTC (rev 3102)
@@ -63,7 +63,7 @@
 
 function init () {
 	parent.eventInitMap.register(function init_mod_mapOV(){
-		parent.mb_registerMapObj('overview', 'maps', mod_overview_rank, mod_overview_width, mod_overview_height);
+		parent.mb_registerMapObj('overview', 'overview', mod_overview_rank, mod_overview_width, mod_overview_height);
 		document.onmouseover = mod_ov_setHandler;
 		document.onmousedown = parent.mod_box_start;
 		document.onmouseup = mod_ov_getExtent;
@@ -136,11 +136,13 @@
 </script>
 </head>
 <body leftmargin='0' topmargin='0' onload="init()"  bgcolor='#ffffff'>
-<div id='maps' name='maps' style =' position:absolute;left:0px;top:0px;width:0px;height:0px;' ></div>
+<div id='overview' name='overview' style =' position:absolute;left:0px;top:0px;width:0px;height:0px;' >
+<div id='overview_maps' name='maps' style =' position:absolute;left:0px;top:0px;width:0px;height:0px;' ></div>
 <div id='l_top' name='l_top' style="position:absolute;top:0px;left:0px;width:0px;height:0px;overflow:hidden;z-index:11;visibility:hidden;background-color:red;cursor: crosshair;"></div>
 <div id='l_right' name='l_right' style="position:absolute;top:0px;left:0px;width:0px;height:0px;overflow:hidden;z-index:12;visibility:hidden;background-color:red;cursor: crosshair;"></div>
 <div id='l_bottom'  name='l_bottom' style="position:absolute;top:0px;left:0px;width:0px;height:0px;overflow:hidden;z-index:13;visibility:hidden;background-color:red;cursor: crosshair;"></div>
 <div id='l_left' name='l_left' style="position:absolute;top:0px;left:0px;width:0px;height:0px;overflow:hidden;z-index:14;visibility:hidden;background-color:red;cursor: crosshair;"></div>
 <div id='highlight' style="position:absolute;top:-10px;left:-10px;width:14px;height:14px;z-index:3;visibility:visible"><img src="../img/redball.gif" width="14" height="14" /></div>
+</div>
 </body>
 </html>

Modified: branches/noframes/noframeGui.sql
===================================================================
--- branches/noframes/noframeGui.sql	2008-10-03 08:54:26 UTC (rev 3101)
+++ branches/noframes/noframeGui.sql	2008-10-03 10:37:33 UTC (rev 3102)
@@ -1,14 +1,14 @@
 INSERT INTO gui (gui_id, gui_name, gui_description, gui_public) VALUES ('noframe','noframe','gui without frames',1);
 INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','body',1,1,'body (obligatory)','','body','','onload="init()"',NULL ,NULL ,NULL ,NULL ,NULL ,'','','','','','','','');
 INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','btpopup',2,1,'','','a','','href="javascript:e=new mb_popup({title:''test'',html:''hallo Welt'',maxRight:''window'',maxBottom:''window''});e.show();"',800,10,NULL ,NULL ,NULL ,'','Popup','a','','','','','');
-INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','mapDiv',2,1,'Frame for a map','Mapframe','div','','',220,105,625,400,2,'overflow:hidden;','<div id=''maps'' style="position:absolute;left:0px;right:0px;"></div>','div','mapnf.php','map_obj.js,map.js,wms.js,wfs_obj.js,initWms.php','','','http://www.mapbender.org/index.php/Mapframe');
-INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','pan1',2,1,'pan','Pan','img','../img/button_blink_red/pan_off.png','onmouseover = "mb_regButton(''init_mod_pan'')"',260,60,24,24,1,'','','','mod_pan.php','','','','http://www.mapbender.org/index.php/Pan');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','mapframe1',1,1,'Frame for a map','Mapframe','div','','',220,105,625,400,2,'overflow:hidden;','<div id=''mapframe1_maps'' style="position:absolute;left:0px;right:0px;"></div>','div','mapnf.php','map_obj.js,map.js,wms.js,wfs_obj.js,initWms.php','','','http://www.mapbender.org/index.php/Mapframe');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','pan1',2,1,'pan','Pan','img','../img/button_blink_red/pan_off.png','onmouseover = "mb_regButton(''init_mod_pan'')"',260,60,24,24,1,'','','','mod_pan.php','','mapframe1','','http://www.mapbender.org/index.php/Pan');
 INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','popup',6,1,'popup replacement','','div','','',NULL ,NULL ,NULL ,NULL ,NULL ,'','','div','popup.js','','','','');
-INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','selArea1',2,1,'zoombox','Zoom by rectangle','img','../img/button_blink_red/selArea_off.png','onmouseover = "mb_regButton(''init_selArea1'')"',285,60,24,24,1,'','','','mod_selArea1.php','mod_box1.js','','','http://www.mapbender.org/index.php/SelArea1');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','selArea1',2,1,'zoombox','Zoom by rectangle','img','../img/button_blink_red/selArea_off.png','onmouseover = "mb_regButton(''init_selArea1'')"',285,60,24,24,1,'','','','mod_selArea1.php','mod_box1.js','mapframe1','','http://www.mapbender.org/index.php/SelArea1');
 INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','treeGDE',2,1,'new treegde2 - directory tree, checkbox for visible, checkbox for querylayer
-for more infos have a look at http://www.mapbender.org/index.php/TreeGDE2','Maps','div','','frameborder = "0" ',10,220,200,300,NULL ,'visibility:visible;overflow:scroll','','div','../html/mod_treefolderPlain.php','jsTree.js','','','');
-INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','zoomIn1',2,1,'zoomIn button','Zoom in','img','../img/button_blink_red/zoomIn2_off.png','onclick=''mod_zoomIn1()'' onmouseover=''mod_zoomIn1_init(this)'' ',210,60,24,24,1,'','','','mod_zoomIn1.php','','','','http://www.mapbender.org/index.php/ZoomIn');
-INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','zoomOut1',2,1,'zoomOut button','Zoom out','img','../img/button_blink_red/zoomOut2_off.png','onclick=''mod_zoomOut1()'' onmouseover=''mod_zoomOut1_init(this)'' ',235,60,24,24,1,'','','','mod_zoomOut1.php','','','','http://www.mapbender.org/index.php/ZoomOut');
+for more infos have a look at http://www.mapbender.org/index.php/TreeGDE2','Maps','div','','frameborder = "0" ',10,220,200,300,NULL ,'visibility:visible;overflow:scroll','','div','../html/mod_treefolderPlain.php','jsTree.js','mapframe1','','');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','zoomIn1',2,1,'zoomIn button','Zoom in','img','../img/button_blink_red/zoomIn2_off.png','onclick=''mod_zoomIn1()'' onmouseover=''mod_zoomIn1_init(this)'' ',210,60,24,24,1,'','','','mod_zoomIn1.php','','mapframe1','','http://www.mapbender.org/index.php/ZoomIn');
+INSERT INTO gui_element (fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element,e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires,e_url) VALUES ('noframe','zoomOut1',2,1,'zoomOut button','Zoom out','img','../img/button_blink_red/zoomOut2_off.png','onclick=''mod_zoomOut1()'' onmouseover=''mod_zoomOut1_init(this)'' ',235,60,24,24,1,'','','','mod_zoomOut1.php','','mapframe1','','http://www.mapbender.org/index.php/ZoomOut');
 INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('noframe', 'body', 'css_class_bg', 'body{ background-color: #ffffff; }', 'to define the color of the body', 'text/css');
 INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('noframe', 'body', 'css_file_body', '../css/mapbender.css', 'file/css', 'file/css');
 INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value, context, var_type) VALUES ('noframe', 'body', 'popupcss', '../css/popup.css', 'file css', 'file/css');



More information about the Mapbender_commits mailing list