2011-02-16 Ramon Novoa <rnovoa@artica.es>

* include/functions_menu.php, operation/menu.php: Added a title to GIS
	  maps and Visual console maps in the menu. Fixes bug #3182148.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3884 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2011-02-16 17:41:52 +00:00
parent 6e251e7812
commit 952ca218b5
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-02-16 Ramon Novoa <rnovoa@artica.es>
* include/functions_menu.php, operation/menu.php: Added a title to GIS
maps and Visual console maps in the menu. Fixes bug #3182148.
2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: added links to services in the items in

View File

@ -119,7 +119,7 @@ function print_menu (&$menu) {
if (isset ($sub["type"]) && $sub["type"] == "direct") {
//This is an external link
$submenu_output .= '<li class="'.$class.'"><a href="'.$subsec2.'">'.$sub["text"]."</a></li>";
$submenu_output .= '<li class="'.$class.'"><a href="'.$subsec2.'"' . $title . '>'.$sub["text"]."</a></li>";
}
else {
//This is an internal link
@ -157,7 +157,12 @@ function print_menu (&$menu) {
$extensionInMenu = '';
}
$submenu_output .= '<a href="index.php?'.$extensionInMenu.'sec='.$secUrl.'&amp;sec2='.$subsec2.($main["refr"] ? '&amp;refr=0' : '').$link_add.'">'.$sub["text"].'</a>';
if (isset ($sub["title"])) {
$title = ' title="' . $sub["title"] . ' "';
} else {
$title = '';
}
$submenu_output .= '<a href="index.php?'.$extensionInMenu.'sec='.$secUrl.'&amp;sec2='.$subsec2.($main["refr"] ? '&amp;refr=0' : '').$link_add.'"' . $title . '>'.$sub["text"].'</a>';
$submenu_output .= '</li>';
}
}

View File

@ -84,6 +84,7 @@ if (give_acl ($config['id_user'], 0, "AR")) {
continue;
}
$sub["operation/gis_maps/render_view&amp;map_id=".$gisMap["id_tgis_map"]]["text"] = mb_substr ($gisMap["map_name"], 0, 15);
$sub["operation/gis_maps/render_view&amp;map_id=".$gisMap["id_tgis_map"]]["title"] = $gisMap["map_name"];
$sub["operation/gis_maps/render_view&amp;map_id=".$gisMap["id_tgis_map"]]["refr"] = 0;
}
@ -122,6 +123,7 @@ if (give_acl ($config['id_user'], 0, "AR")) {
continue;
}
$sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["text"] = mb_substr ($name, 0, 15);
$sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["title"] = $name;
$sub["operation/visual_console/render_view&amp;id=".$layout["id"]]["refr"] = 0;
}