[Mapbender-commits] r4771 - in trunk/mapbender: http/javascripts resources/db/pgsql/UTF-8/update

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Oct 4 16:18:39 EDT 2009


Author: marc
Date: 2009-10-04 16:18:38 -0400 (Sun, 04 Oct 2009)
New Revision: 4771

Modified:
   trunk/mapbender/http/javascripts/mod_navFrame.php
   trunk/mapbender/resources/db/pgsql/UTF-8/update/update_2.6_to_2.7rc1_pgsql_UTF-8.sql
Log:
http://trac.osgeo.org/mapbender/ticket/540

Modified: trunk/mapbender/http/javascripts/mod_navFrame.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_navFrame.php	2009-10-04 11:52:10 UTC (rev 4770)
+++ trunk/mapbender/http/javascripts/mod_navFrame.php	2009-10-04 20:18:38 UTC (rev 4771)
@@ -19,6 +19,7 @@
 
 require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
 include '../include/dyn_js.php';
+include '../include/dyn_php.php';
 ?>
 (function () {
 
@@ -26,8 +27,12 @@
 echo "var mod_navFrame_target = '".$e_target[0]."';";
 echo "var mod_navFrame_id = '".$e_id."';";
 echo "var mod_navFrame_src = '".$e_src."';";
+echo "var backGroundColor = '".$backGroundColor."';";
+echo "var backGroundHoverColor = '".$backGroundHoverColor."';";
+
 ?>
 
+
 try{
 	if (mod_navFrame_ext){}
 }
@@ -37,29 +42,29 @@
 
 <?php
 $html = <<<HTML
-<div id="mbN_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;">
-<img id="arrow_n_$e_id" style="position:relative;top:0;left:0" src="../img/arrows/arrow_n.gif" width="15" height="10">
+<div id="mbN_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:$backGroundColor;" >
+<img id="arrow_n_$e_id" title="move map to north" style="position:relative;top:0;left:0;cursor:pointer;" src="../img/arrows/arrow_n.gif" width="15" height="10" onmouseover="getElementById(\'mbN_$e_id\').style.backgroundColor=\'$backGroundHoverColor\'" onmouseout="getElementById(\'mbN_$e_id\').style.backgroundColor=\'$backGroundColor\'" />
 </div> 
-<div id="mbNE_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;">
-<img id="arrow_ne_$e_id" style="position:relative;top:0;left:0" src="../img/arrows/arrow_ne.gif" width="10" height="10">
+<div id="mbNE_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:$backGroundColor;">
+<img id="arrow_ne_$e_id" title="move map to north-east" style="position:relative;top:0;left:0;cursor:pointer;" src="../img/arrows/arrow_ne.gif" width="10" height="10" onmouseover="getElementById(\'mbNE_$e_id\').style.backgroundColor=\'$backGroundHoverColor\'" onmouseout="getElementById(\'mbNE_$e_id\').style.backgroundColor=\'$backGroundColor\'" />
 </div> 
-<div id="mbE_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;">
-<img id="arrow_e_$e_id" style="position:relative;top:0;left:0" src="../img/arrows/arrow_e.gif" width="10" height="15">
+<div id="mbE_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:$backGroundColor;">
+<img id="arrow_e_$e_id" title="move map to east"style="position:relative;top:0;left:0;cursor:pointer;" src="../img/arrows/arrow_e.gif" width="10" height="15" onmouseover="getElementById(\'mbE_$e_id\').style.backgroundColor=\'$backGroundHoverColor\'" onmouseout="getElementById(\'mbE_$e_id\').style.backgroundColor=\'$backGroundColor\'" />
 </div> 
-<div id="mbSE_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;">
-<img id="arrow_se_$e_id" style="position:relative;top:0;left:0" src="../img/arrows/arrow_se.gif" width="10" height="10">
+<div id="mbSE_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:$backGroundColor;">
+<img id="arrow_se_$e_id" title="move map to south-east" style="position:relative;top:0;left:0;cursor:pointer;" src="../img/arrows/arrow_se.gif" width="10" height="10" onmouseover="getElementById(\'mbSE_$e_id\').style.backgroundColor=\'$backGroundHoverColor\'" onmouseout="getElementById(\'mbSE_$e_id\').style.backgroundColor=\'$backGroundColor\'" />
 </div> 
-<div id="mbS_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;">
-<img id="arrow_s_$e_id" style="position:relative;top:0;left:0" src="../img/arrows/arrow_s.gif" width="15" height="10">
+<div id="mbS_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:$backGroundColor;">
+<img id="arrow_s_$e_id" title="move map to south" style="position:relative;top:0;left:0;cursor:pointer;" src="../img/arrows/arrow_s.gif" width="15" height="10" onmouseover="getElementById(\'mbS_$e_id\').style.backgroundColor=\'$backGroundHoverColor\'" onmouseout="getElementById(\'mbS_$e_id\').style.backgroundColor=\'$backGroundColor\'" />
 </div> 
-<div id="mbSW_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;">
-<img id="arrow_sw_$e_id" style="position:relative;top:0;left:0" src="../img/arrows/arrow_sw.gif" width="10" height="10">
+<div id="mbSW_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:$backGroundColor;">
+<img id="arrow_sw_$e_id" title="move map to south-west" style="position:relative;top:0;left:0;cursor:pointer;" src="../img/arrows/arrow_sw.gif" width="10" height="10" onmouseover="getElementById(\'mbSW_$e_id\').style.backgroundColor=\'$backGroundHoverColor\'" onmouseout="getElementById(\'mbSW_$e_id\').style.backgroundColor=\'$backGroundColor\'" />
 </div>
-<div id="mbW_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;">
-<img id="arrow_w_$e_id" style="position:relative;top:0;left:0" src="../img/arrows/arrow_w.gif" width="10" height="15">
+<div id="mbW_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:$backGroundColor;">
+<img id="arrow_w_$e_id" title="move map to west" style="position:relative;top:0;left:0;cursor:pointer;" src="../img/arrows/arrow_w.gif" width="10" height="15" onmouseover="getElementById(\'mbW_$e_id\').style.backgroundColor=\'$backGroundHoverColor\'" onmouseout="getElementById(\'mbW_$e_id\').style.backgroundColor=\'$backGroundColor\'" />
 </div> 
-<div id="mbNW_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;">
-<img id="arrow_nw_$e_id" style="position:relative;top:0;left:0" src="../img/arrows/arrow_nw.gif" width="10" height="10">
+<div id="mbNW_$e_id" style="position:absolute;width:0;height:0;top:0;left:0;background-color:$backGroundColor;">
+<img id="arrow_nw_$e_id" title="move map to north-west" style="position:relative;top:0;left:0;cursor:pointer;" src="../img/arrows/arrow_nw.gif" width="10" height="10" onmouseover="getElementById(\'mbNW_$e_id\').style.backgroundColor=\'$backGroundHoverColor\'" onmouseout="getElementById(\'mbNW_$e_id\').style.backgroundColor=\'$backGroundColor\'" />
 </div>
 HTML;
 echo "var html = '" . str_replace("\n", "\\n", $html) . "';";
@@ -115,4 +120,4 @@
 	document.getElementById(el).style.width = width;
 	document.getElementById(el).style.height = height;
 }
-}());
\ No newline at end of file
+}());

Modified: trunk/mapbender/resources/db/pgsql/UTF-8/update/update_2.6_to_2.7rc1_pgsql_UTF-8.sql
===================================================================
--- trunk/mapbender/resources/db/pgsql/UTF-8/update/update_2.6_to_2.7rc1_pgsql_UTF-8.sql	2009-10-04 11:52:10 UTC (rev 4770)
+++ trunk/mapbender/resources/db/pgsql/UTF-8/update/update_2.6_to_2.7rc1_pgsql_UTF-8.sql	2009-10-04 20:18:38 UTC (rev 4771)
@@ -470,4 +470,20 @@
 UPDATE gui_element SET e_attributes = '' WHERE e_id = 'printPDF' AND e_element = 'iframe';
 
 
+-- New NavFrame element-vars (color and hoverColor) see http://trac.osgeo.org/mapbender/ticket/540
+INSERT INTO gui_element_vars (fkey_gui_id,fkey_e_id,var_name,var_value,context,var_type) VALUES('gui','navFrame','backGroundColor','#c6ced6','set the background-color of the NavFrame' ,'php_var');
+INSERT INTO gui_element_vars (fkey_gui_id,fkey_e_id,var_name,var_value,context,var_type) VALUES('gui','navFrame','backGroundHoverColor','#9cacbc','set the background-hover-color of the NavFrame' ,'php_var');
 
+INSERT INTO gui_element_vars (fkey_gui_id,fkey_e_id,var_name,var_value,context,var_type) VALUES('gui1','navFrame','backGroundColor','#c6ced6','set the background-color of the NavFrame' ,'php_var');
+INSERT INTO gui_element_vars (fkey_gui_id,fkey_e_id,var_name,var_value,context,var_type) VALUES('gui1','navFrame','backGroundHoverColor','#9cacbc','set the background-hover-color of the NavFrame' ,'php_var');
+
+
+INSERT INTO gui_element_vars (fkey_gui_id,fkey_e_id,var_name,var_value,context,var_type) VALUES('gui2','navFrame','backGroundColor','#799FEB','set the background-color of the NavFrame' ,'php_var');
+INSERT INTO gui_element_vars (fkey_gui_id,fkey_e_id,var_name,var_value,context,var_type) VALUES('gui2','navFrame','backGroundHoverColor','#577dc9','set the background-hover-color of the NavFrame' ,'php_var');
+
+INSERT INTO gui_element_vars (fkey_gui_id,fkey_e_id,var_name,var_value,context,var_type) VALUES('gui_digitize','navFrame','backGroundColor','#c6ced6','set the background-color of the NavFrame' ,'php_var');
+INSERT INTO gui_element_vars (fkey_gui_id,fkey_e_id,var_name,var_value,context,var_type) VALUES('gui_digitize','navFrame','backGroundHoverColor','#9cacbc','set the background-hover-color of the NavFrame' ,'php_var');
+
+
+
+



More information about the Mapbender_commits mailing list