svn commit: r807 - trunk/mapbender/http/php/mod_meetingPoint.php

astrid_emde at osgeo.org astrid_emde at osgeo.org
Fri Oct 27 05:27:53 EDT 2006


Author: astrid_emde
Date: 2006-10-27 09:27:53+0000
New Revision: 807

Modified:
   trunk/mapbender/http/php/mod_meetingPoint.php

Log:
set image with element var

Modified: trunk/mapbender/http/php/mod_meetingPoint.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_meetingPoint.php?view=diff&rev=807&p1=trunk/mapbender/http/php/mod_meetingPoint.php&p2=trunk/mapbender/http/php/mod_meetingPoint.php&r1=806&r2=807
==============================================================================
--- trunk/mapbender/http/php/mod_meetingPoint.php	(original)
+++ trunk/mapbender/http/php/mod_meetingPoint.php	2006-10-27 09:27:53+0000
@@ -47,13 +47,18 @@
 <html>
 <head>
 <title>meetingPoint</title>
-<link rel="stylesheet" type="text/css" href="../css/meetingPoint.css" />
+
+<?php
+
+$e_id_css = 'meetingPoint';
+include '../include/dyn_css.php';
+?>
 
 <script language='JavaScript'>
 <!--
 <?php
 
-$e_id_css = 'meetingPoint';
+
 include('../include/dyn_js.php');
 
 echo "var mod_meetingPoint_target = '".$e_target."';";
@@ -81,19 +86,21 @@
 	meetingPoint_max_characters = 100;
 }
 
+try{
+	if (meetingPoint_image){}
+}
+catch(e){
+	meetingPoint_image = "../img/button_digitize/point_off.png";
+}
+
 var ie = document.all?1:0;
 var mod_meetingPoint_win = null;
 var mod_meetingPoint_elName = "meetingPoint";
 var mod_meetingPoint_frameName = "meetingPoint";
-<?php $e_src = '../img/button_digitize/point_off.png' ;?>
-var mod_meetingPoint_img_off = "<?php  echo $e_src;  ?>";
-var mod_meetingPoint_img_on = "<?php  echo preg_replace("/_off/","_on",$e_src);  ?>";
-var mod_meetingPoint_img_over = "<?php  echo preg_replace("/_off/","_over",$e_src);  ?>";
-
 
-var mod_meetingPoint_img_on = new Image(); mod_meetingPoint_img_on.src = "<?php  echo preg_replace("/_off/","_on",$e_src);  ?>";
-var mod_meetingPoint_img_off = new Image(); mod_meetingPoint_img_off.src = "<?php  echo $e_src;  ?>";
-var mod_meetingPoint_img_over = new Image(); mod_meetingPoint_img_over.src = "<?php  echo preg_replace("/_off/","_over",$e_src);  ?>";
+var mod_meetingPoint_img_on = new Image(); mod_meetingPoint_img_on.src = meetingPoint_image.replace(/_off/,"_on") ;
+var mod_meetingPoint_img_off = new Image(); mod_meetingPoint_img_off.src = meetingPoint_image;
+var mod_meetingPoint_img_over = new Image(); mod_meetingPoint_img_over.src = meetingPoint_image.replace(/_off/,"_over") ;
 var mod_meetingPoint_fix = "";
 
 
@@ -105,7 +112,7 @@
 	parent.mb_button[ind].status = 0;
 	parent.mb_button[ind].elName = "my_getCoords";
 	parent.mb_button[ind].go = new Function ("mod_meetingPoint_run()");
-	parent.mb_button[ind].stop = new Function ("mod_meetingPoint_disable()");   
+	parent.mb_button[ind].stop = new Function ("mod_meetingPoint_disable()");
 }
 
 function mod_meetingPoint_run(){   




More information about the Mapbender_commits mailing list