mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
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:
parent
b29485f3af
commit
0d12b9f38a
@ -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>
|
2012-03-20 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* operation/visual_console/render_view.php
|
* operation/visual_console/render_view.php
|
||||||
|
@ -624,7 +624,7 @@ function visual_map_get_status_element($layoutData) {
|
|||||||
* @param bool $show_links
|
* @param bool $show_links
|
||||||
* @param bool $draw_lines
|
* @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
|
//TODO: USE THE SAME CODE THAT THE VISUAL MAP EDITOR
|
||||||
global $config;
|
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'],
|
echo grafico_modulo_sparse ($layout_data['id_agente_modulo'], $layout_data['period'],
|
||||||
false, ((integer)($proportion * $layout_data['width'])), ((integer)($proportion * $layout_data['height'])),
|
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 {
|
else {
|
||||||
echo grafico_modulo_sparse ($layout_data['id_agente_modulo'], $layout_data['period'],
|
echo grafico_modulo_sparse ($layout_data['id_agente_modulo'], $layout_data['period'],
|
||||||
false, $layout_data['width'], $layout_data['height'],
|
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 "</a>";
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
|
@ -71,7 +71,7 @@ $options = array();
|
|||||||
|
|
||||||
echo "<h1>". $layout_name. "</h1>";
|
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 = array ();
|
||||||
$values[5] = human_time_description_raw (5);
|
$values[5] = human_time_description_raw (5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user