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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 8 10:19:51 EST 2007


Author: christoph
Date: 2007-02-08 10:19:44 -0500 (Thu, 08 Feb 2007)
New Revision: 1098

Removed:
   trunk/mapbender/http/javascripts/mod_digitize_js.php
Log:
deprecated


Deleted: trunk/mapbender/http/javascripts/mod_digitize_js.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_js.php	2007-02-08 15:06:54 UTC (rev 1097)
+++ trunk/mapbender/http/javascripts/mod_digitize_js.php	2007-02-08 15:19:44 UTC (rev 1098)
@@ -1,63 +0,0 @@
-<?php
-# $Id$
-# http://www.mapbender.org/index.php/mod_digitize_js.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.
-
-$gui_id = $_REQUEST["gui_id"];
-require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
-$con = db_connect($DBSERVER,$OWNER,$PW);
-db_select_db(DB,$con);
-$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = 'digitize' AND fkey_gui_id = $1";
-$v = array($gui_id);
-$t = array('s');
-$res = db_prep_query($sql, $v, $t);
-$cnt = 0;
-while($row = db_fetch_array($res)){ 
-	$e_src = $row["e_src"];
-	$e_target = explode(",",$row["e_target"]);
-	$cnt++;
-}
-if($cnt > 1){ 
-echo "alert('digitize_button: ID not unique!');";
-}
-echo "var mod_digitize_target = '".$e_target[0]."';";
-echo "var mod_digitize_frame = '".$e_target[1]."';";?>
-
-var mod_digitize_elName = "digitize";
-var mod_digitize_frameName = "";
-var mod_digitize_img_on = new Image(); mod_digitize_img_on.src = "<?php  echo preg_replace("/_off/","_on",$e_src);  ?>";
-var mod_digitize_img_off = new Image(); mod_digitize_img_off.src = "<?php  echo $e_src;  ?>";
-var mod_digitize_img_over = new Image(); mod_digitize_img_over.src = "<?php  echo preg_replace("/_off/","_over",$e_src);  ?>";
-var mod_digitize_status = 0;
-
-function init_mod_digitize(ind){
-	if(mod_digitize_status == 0){
-		document.getElementById("digitize_frame").src = "../php/mod_digitize.php?target=" + mod_digitize_frame;
-		mod_digitize_status = 1;
-	}
-	mb_button[ind] = document.getElementById("digitize");
-	mb_button[ind].img_over = mod_digitize_img_over.src;
-	mb_button[ind].img_on = mod_digitize_img_on.src;
-	mb_button[ind].img_off = mod_digitize_img_off.src;
-	mb_button[ind].status = 0;
-	mb_button[ind].elName = mod_digitize_elName;
-	mb_button[ind].fName = mod_digitize_frameName;
-	mb_button[ind].go = new Function ("window.frames[mod_digitize_target].mod_digitize_go()");
-	mb_button[ind].stop = new Function ("window.frames[mod_digitize_target].mod_digitize_disable()");
-	mb_registerSubFunctions("window.frames[mod_digitize_target].drawDashedLine()");
-	mb_registerPanSubElement("digitize");
-}



More information about the Mapbender_commits mailing list