Change group items url links in metaconsole - #1253

This commit is contained in:
enriquecd 2017-11-14 13:51:33 +01:00
parent 6a71b9a359
commit 36c3f1fef6
1 changed files with 19 additions and 15 deletions

View File

@ -524,19 +524,23 @@ function visual_map_print_item($mode = "read", $layoutData,
if ($layoutData['id_layout_linked'] != 0) { if ($layoutData['id_layout_linked'] != 0) {
$is_a_link_to_other_visualconsole = true; $is_a_link_to_other_visualconsole = true;
} }
if ($is_a_link_to_other_visualconsole) { if ($is_a_link_to_other_visualconsole) {
if (empty($layout_data['id_metaconsole'])) { if (METACONSOLE == 1) {
$url = $config['homeurl'] . "index.php?sec=reporting&sec2=operation/visual_console/render_view&pure=" . $config["pure"] . "&id=" . $layoutData["id_layout_linked"]; $url = $config['homeurl'] . "index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=0&id_visualmap=".$layoutData["id_layout_linked"]."&refr=300";
} }
else { else {
$url = "index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=1&id_visualmap=" . $layoutData["id_layout_linked"] . "&refr=0"; $url = $config['homeurl'] . "index.php?sec=reporting&sec2=operation/visual_console/render_view&pure=" . $config["pure"] . "&id=" . $layoutData["id_layout_linked"];
} }
} }
else {
if (METACONSOLE == 1) {
$url = $config['homeurl'] .
'index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=0&ag_group='.$layoutData['id_group'].'&ag_freestring=&module_option=1&ag_modulename=&moduletype=&datatype=&status=-1&sort_field=&sort=none&pure=';
}
else { else {
$url = $config['homeurl'] . $url = $config['homeurl'] .
'index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=' . 'index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id='.$layoutData['id_group'];
$layoutData['id_group']; }
} }
break; break;
case LABEL: case LABEL: