[Mapbender-commits] r2527 - branches/beck_dev/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jun 20 11:43:25 EDT 2008


Author: christoph
Date: 2008-06-20 11:43:25 -0400 (Fri, 20 Jun 2008)
New Revision: 2527

Added:
   branches/beck_dev/mapbender/http/javascripts/initOpenLayersWms.php
Log:
openlayers support

Added: branches/beck_dev/mapbender/http/javascripts/initOpenLayersWms.php
===================================================================
--- branches/beck_dev/mapbender/http/javascripts/initOpenLayersWms.php	                        (rev 0)
+++ branches/beck_dev/mapbender/http/javascripts/initOpenLayersWms.php	2008-06-20 15:43:25 UTC (rev 2527)
@@ -0,0 +1,34 @@
+<?php
+# $Id: mod_createJSObjFromDB.php 2144 2008-02-26 23:16:14Z christoph $
+# http://www.mapbender.org/index.php/mod_createJSObjectFromDB.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.
+
+require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
+require_once(dirname(__FILE__)."/../classes/class_wms.php");
+
+$sql = "SELECT fkey_wms_id FROM gui_wms WHERE fkey_gui_id = $1 ORDER BY gui_wms_position";
+$v = array($_SESSION["mb_user_gui"]);
+$t = array('s');
+$res = db_prep_query($sql,$v,$t);
+
+$cnt=0;
+while($row = db_fetch_array($res)){
+	$mywms = new wms();
+	$mywms->createObjFromDB($_SESSION["mb_user_gui"],$row["fkey_wms_id"]);
+	$mywms->createOlObjFromWMS($cnt==0);
+	$cnt++;
+}?>
\ No newline at end of file



More information about the Mapbender_commits mailing list