2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: added links to services in the items in the view of visualmap. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3882 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7cc8e631c8
commit
6e251e7812
|
@ -1,3 +1,8 @@
|
|||
2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_visual_map.php: added links to services in the items in
|
||||
the view of visualmap.
|
||||
|
||||
2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/ajax/visual_console_builder.ajax.php: fixed other safe_ouput in
|
||||
|
|
|
@ -514,8 +514,25 @@ function print_pandora_visual_map ($id_layout, $show_links = true, $draw_lines =
|
|||
if ($show_links) {
|
||||
if (($id_agent > 0) && ($layout_data['id_layout_linked'] == "" || $layout_data['id_layout_linked'] == 0)) {
|
||||
|
||||
// Link to an agent
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agent.'">';
|
||||
//Extract id service if it is a prediction module.
|
||||
$id_service = get_db_value_filter('custom_integer_1',
|
||||
'tagente_modulo',
|
||||
array('id_agente_modulo' => $layout_data['id_agente_modulo'],
|
||||
'prediction_module' => 1));
|
||||
|
||||
if ($id_service === false) {
|
||||
$id_service = 0;
|
||||
}
|
||||
|
||||
if ($id_service != 0) {
|
||||
//Link to an service page
|
||||
echo '<a href="index.php?sec=services&sec2=enterprise/operation/services/services&id_service=' .
|
||||
$id_service . '&offset=0">';
|
||||
}
|
||||
else {
|
||||
// Link to an agent
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agent.'">';
|
||||
}
|
||||
} elseif ($layout_data['id_layout_linked'] > 0) {
|
||||
|
||||
// Link to a map
|
||||
|
|
Loading…
Reference in New Issue