2012-03-20 Sergio Martin <sergio.martin@artica.es>

* include/functions_visual_map.php
	operation/visual_console/public_console.php: Fixed the
	public visual console graphs adding homeurl



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5792 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2012-03-20 11:03:06 +00:00
parent c85719a82d
commit 99a189d468
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2012-03-20 Sergio Martin <sergio.martin@artica.es>
* include/functions_visual_map.php
operation/visual_console/public_console.php: Fixed the
public visual console graphs adding homeurl
2012-03-20 Sergio Martin <sergio.martin@artica.es>
* operation/visual_console/render_view.php

View File

@ -624,7 +624,7 @@ function visual_map_get_status_element($layoutData) {
* @param bool $show_links
* @param bool $draw_lines
*/
function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_lines = true, $width = null, $height = null) {
function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_lines = true, $width = null, $height = null, $home_url = '') {
//TODO: USE THE SAME CODE THAT THE VISUAL MAP EDITOR
global $config;
@ -1233,12 +1233,12 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
echo grafico_modulo_sparse ($layout_data['id_agente_modulo'], $layout_data['period'],
false, ((integer)($proportion * $layout_data['width'])), ((integer)($proportion * $layout_data['height'])),
'', null, false, 1, false, 0, '', 0, 0, true, true);
'', null, false, 1, false, 0, '', 0, 0, true, true, $home_url);
}
else {
echo grafico_modulo_sparse ($layout_data['id_agente_modulo'], $layout_data['period'],
false, $layout_data['width'], $layout_data['height'],
'', null, false, 1, false, 0, '', 0, 0, true, true);
'', null, false, 1, false, 0, '', 0, 0, true, true, $home_url);
}
echo "</a>";
echo "</div>";

View File

@ -71,7 +71,7 @@ $options = array();
echo "<h1>". $layout_name. "</h1>";
visual_map_print_visual_map ($id_layout);
visual_map_print_visual_map ($id_layout, true, true, null, null, '../../');
$values = array ();
$values[5] = human_time_description_raw (5);