svn commit: r286 - trunk/mapbender/http/javascripts/mod_tab.php

vera_schulze at osgeo.org vera_schulze at osgeo.org
Mon May 15 07:54:54 EDT 2006


Author: vera_schulze
Date: 2006-05-15 11:54:54+0000
New Revision: 286

Modified:
   trunk/mapbender/http/javascripts/mod_tab.php   (contents, props changed)

Log:
Code cleaning ready

Modified: trunk/mapbender/http/javascripts/mod_tab.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_tab.php?view=diff&rev=286&p1=trunk/mapbender/http/javascripts/mod_tab.php&p2=trunk/mapbender/http/javascripts/mod_tab.php&r1=285&r2=286
==============================================================================
--- trunk/mapbender/http/javascripts/mod_tab.php	(original)
+++ trunk/mapbender/http/javascripts/mod_tab.php	2006-05-15 11:54:54+0000
@@ -1,5 +1,21 @@
-//$Id: mod_tab.php,v 1.12 2006/01/23 16:17:48 astrid_emde Exp $
-//$Header: /cvsroot/mapbender/mapbender/http/javascripts/mod_tab.php,v 1.12 2006/01/23 16:17:48 astrid_emde Exp $
+# $Id$
+# http://www.mapbender.org/index.php/mod_tab.php
+# Copyright (C) 2002 CCGIS 
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
 /********** Configuration*************************************************/
 <?php
 $gui_id = $_REQUEST["gui_id"];
@@ -20,7 +36,7 @@
 	if (open_tab){}
 }
 catch(e){
-    open_tab = false;
+	open_tab = false;
 }
 
 /********** Configuration*************************************************/
@@ -32,24 +48,24 @@
 	tab_width = parseInt(obj.width);
 	tab_height = parseInt(obj.height);
 	var str = "";
-	
+
 	for(var i = 0; i<tab_ids.length; i++){
 		document.getElementById(tab_ids[i]).style.visibility = 'hidden';
 		tab_titles[i] = tab_prefix + tab_titles[i];
 		var newId = "tab_" + i;
-        str += "<div id='"+newId+"' ";
-        str += "style='";
-        str += tab_style;
-        str += "width:"+tab_width+"px;";
-        str += "height:"+tab_height+"px;";        
-   		str += "top:" + ((i * tab_height)) + "px;";
-        str += "'";
-        str += " onclick='tab_set("+i+")'>";
-        str += tab_titles[i];
-        str += "</div>";
+		str += "<div id='"+newId+"' ";
+		str += "style='";
+		str += tab_style;
+		str += "width:"+tab_width+"px;";
+		str += "height:"+tab_height+"px;";        
+		str += "top:" + ((i * tab_height)) + "px;";
+		str += "'";
+		str += " onclick='tab_set("+i+")'>";
+		str += tab_titles[i];
+		str += "</div>";
 	}
 	document.getElementById("tabs").innerHTML = str;
-	
+
 	if (open_tab != 'false'){
 		tab_set(open_tab);
 	}
@@ -140,4 +156,4 @@
 		}
 		return;
 	}
-}
+}
\ No newline at end of file




More information about the Mapbender_commits mailing list