[Mapbender-commits] r1196 - trunk/mapbender/http/html

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Mar 7 05:01:38 EST 2007


Author: christoph
Date: 2007-03-07 05:01:38 -0500 (Wed, 07 Mar 2007)
New Revision: 1196

Modified:
   trunk/mapbender/http/html/mod_treefolder.php
Log:
fixed bug (checkboxes vanished after add wms)

Modified: trunk/mapbender/http/html/mod_treefolder.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolder.php	2007-03-06 13:39:55 UTC (rev 1195)
+++ trunk/mapbender/http/html/mod_treefolder.php	2007-03-07 10:01:38 UTC (rev 1196)
@@ -1,39 +1,36 @@
 <?php
 session_start();
+$gui_id = $_SESSION["mb_user_gui"];
+
 require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);
-$gui_id = $_SESSION["mb_user_gui"];
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
 <HTML>
 <HEAD>
+<TITLE>Treefolder</TITLE>
 <META NAME="Generator" CONTENT="Cosmo Create 1.0.3">
 <?php
 echo '<meta http-equiv="Content-Type" content="text/html; charset='.CHARSET.'">';	
+include '../include/dyn_css.php';
 ?>
-<TITLE>Treefolder</TITLE>
-<?php
- include '../include/dyn_css.php';
-?>
 
-
 <script language='JavaScript'>
-function pop_up(name, einstellungen)
-{
+function pop_up(name, einstellungen) {
 	window.open ('',name,einstellungen);
 }
-</script>
 <?php
-echo "<script language='JavaScript'>";
    $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 "</script>";
 ?>
+</script>
+
   <SCRIPT language="JavaScript1.2">
   <!--  
   /*
@@ -293,9 +290,9 @@
       }  
       else{
       	linkedName = "";
-//        linkedName =  '<IMG SRC="'+imagedir+'/1w.gif" BORDER="0" WIDTH="3">';
+        linkedName =  '<IMG SRC="'+imagedir+'/1w.gif" BORDER="0" WIDTH="3">';
         if(switchwms == 'true'){
-//        	linkedName += '<input type="checkbox" onclick="if(this.checked){switchWMS(\''+treeWMS[i]+'\',1)}else{switchWMS(\''+treeWMS[i]+'\',0)}">';
+        	linkedName += '<input type="checkbox" onclick="if(this.checked){switchWMS(\''+treeWMS[i]+'\',1)}else{switchWMS(\''+treeWMS[i]+'\',0)}">';
         }
         linkedName += treeName[i];
       }
@@ -611,14 +608,6 @@
 									else {
 										Note((parseInt(temp.layer_id)+1),parentObj,temp.layer_title,'',temp.gui_layer_selectable,temp.gui_layer_visible,temp.gui_layer_queryable,temp.gui_layer_querylayer,parent.mb_mapObj[i].wms[ii].wms_id,temp.layer_name);
 									}
-
-/*
-									if(temp.layer_metadataurl!=''){
-										Note((parseInt(temp.layer_id)+1),parentObj,temp.layer_title,temp.layer_metadataurl,temp.gui_layer_selectable,temp.gui_layer_visible,temp.gui_layer_queryable,temp.gui_layer_querylayer,parent.mb_mapObj[i].wms[ii].wms_id,temp.layer_name);
-									}else{
-										Note((parseInt(temp.layer_id)+1),parentObj,temp.layer_title,'../metadata/'+temp.layer_name+".html",temp.gui_layer_selectable,temp.gui_layer_visible,temp.gui_layer_queryable,temp.gui_layer_querylayer,parent.mb_mapObj[i].wms[ii].wms_id,temp.layer_name);
-									}
-*/
 								}
 							}
 						}
@@ -631,32 +620,7 @@
 		treeWasOn[0] = true
 	}       
 } 
-/*
-  function initArray_()
-  {
-    Note(0,-1,'','')	  
-    Note(1,0,'Tutorials','')	  	  
-    Note(8,1,'HTML','')
-    Note(10,8,'SelfHtml','http://www.teamone.de/selfaktuell/') 
-	  Note(9,1,'willi','')
-    Note(100,9,'SelfHtml','http://www.teamone.de/selfaktuell/')       
-	  Note(3,1,'JavaScript','')
-    Note(4,3, 'Netscape Guide 1.3','http://developer.netscape.com/docs/manuals/js/client/jsguide/index.htm')
-    Note(7,3, 'Introduction to Javascript','http://rummelplatz.uni-mannheim.de/~skoch/js/script.htm')	  
-    Note(12,1, 'Perl','')
-    Note(14,12, 'Perl Tutorial','http://www.awu.id.ethz.ch/~didi/perl/perl_start.html')
-    Note(13,1,'SQL','')
-    Note(15,13, 'Introduction to SQL','http://w3.one.net/~jhoffman/sqltut.htm')
-	  Note(111,1, 'Introduction to SQL','http://w3.one.net/~jhoffman/sqltut.htm')
-    Note(2,0, 'Reference Manuals','')
-    Note(11,2, 'HTML Version 3.2 Referenz','http://www.cls-online.de/htmlref/index.htm')
-    Note(6,2,'Netscape Reference 1.3','http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm')
-    Note(17,2,'PHP Manual','http://www.php.net/manual/html/')	  
-    treeTyp[0] = 'f'
-    treeIsOn[0] = true
-    treeWasOn[0] = true
-  }
-*/
+
   var idx=0
   initArray()
   initIndex()



More information about the Mapbender_commits mailing list