Merge branch '1367-radial-dinamic-details-dev' into 'develop'
Added 3 and 4 points See merge request artica/pandorafms!882
This commit is contained in:
commit
197e9a4a30
|
@ -3284,11 +3284,11 @@ function grafico_eventos_grupo ($width = 300, $height = 200, $url = "", $meta =
|
|||
}
|
||||
else {
|
||||
if ($meta) {
|
||||
$name = mb_substr (io_safe_output($row['agent_name']), 0, 14)." (".$row["count"].")";
|
||||
$name = mb_substr (io_safe_output($row['agent_name']), 0, 25)." (".$row["count"].")";
|
||||
}
|
||||
else {
|
||||
$alias = agents_get_alias($row["id_agente"]);
|
||||
$name = mb_substr($alias, 0, 14)." #".$row["id_agente"]." (".$row["count"].")";
|
||||
$name = mb_substr($alias, 0, 25)." #".$row["id_agente"]." (".$row["count"].")";
|
||||
}
|
||||
$data[$name] = $row["count"];
|
||||
}
|
||||
|
@ -5754,7 +5754,7 @@ function graph_monitor_wheel ($width = 550, $height = 600, $filter = false) {
|
|||
|
||||
if (!empty($data_groups)) {
|
||||
$filter = array('id_grupo' => array_keys($data_groups));
|
||||
$fields = array('id_agente', 'id_parent', 'id_grupo', 'nombre');
|
||||
$fields = array('id_agente', 'id_parent', 'id_grupo', 'alias');
|
||||
$agents = agents_get_agents($filter, $fields);
|
||||
|
||||
if (!empty($agents)) {
|
||||
|
@ -5787,7 +5787,7 @@ function graph_monitor_wheel ($width = 550, $height = 600, $filter = false) {
|
|||
if (!isset($data_agents[$agent_id])) {
|
||||
$data_agents[$agent_id] = array();
|
||||
$data_agents[$agent_id]['id'] = $agent_id;
|
||||
$data_agents[$agent_id]['name'] = io_safe_output($agents[$agent_id]['nombre']);
|
||||
$data_agents[$agent_id]['name'] = io_safe_output($agents[$agent_id]['alias']);
|
||||
$data_agents[$agent_id]['group'] = (int) $agents[$agent_id]['id_grupo'];
|
||||
$data_agents[$agent_id]['type'] = 'agent';
|
||||
$data_agents[$agent_id]['size'] = 30;
|
||||
|
@ -5960,7 +5960,7 @@ function graph_monitor_wheel ($width = 550, $height = 600, $filter = false) {
|
|||
if (!isset($data_agents[$id])) {
|
||||
$data_agents[$id] = array();
|
||||
$data_agents[$id]['id'] = (int) $id;
|
||||
$data_agents[$id]['name'] = io_safe_output($agent['nombre']);
|
||||
$data_agents[$id]['name'] = io_safe_output($agent['alias']);
|
||||
$data_agents[$id]['type'] = 'agent';
|
||||
$data_agents[$id]['color'] = COL_NOTINIT;
|
||||
}
|
||||
|
|
|
@ -69,6 +69,41 @@ require_once ('include/functions_networkmap.php');
|
|||
|
||||
$strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']);
|
||||
|
||||
$networkmap = db_get_row('tmap', 'id', $id);
|
||||
$pure = (int) get_parameter ('pure', 0);
|
||||
|
||||
/* Main code */
|
||||
if ($pure == 1) {
|
||||
$buttons['screen'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=network&' .
|
||||
'sec2=operation/agentes/networkmap.dinamic&' .
|
||||
'activeTab=radial_dynamic&id_networkmap=' . $id . '">' .
|
||||
html_print_image("images/normal_screen.png", true,
|
||||
array ('title' => __('Normal screen'))) .
|
||||
'</a>');
|
||||
}
|
||||
else {
|
||||
if (!$dash_mode) {
|
||||
$buttons['screen'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=network&' .
|
||||
'sec2=operation/agentes/networkmap.dinamic&' .
|
||||
'pure=1&activeTab=radial_dynamic&id_networkmap=' . $id . '">' .
|
||||
html_print_image("images/full_screen.png", true,
|
||||
array ('title' => __('Full screen'))) .
|
||||
'</a>');
|
||||
$buttons['list'] = array('active' => false,
|
||||
'text' => '<a href="index.php?sec=networkmapconsole&' .
|
||||
'sec2=operation/agentes/pandora_networkmap">' .
|
||||
html_print_image("images/list.png", true,
|
||||
array ('title' => __('List of networkmap'))) .
|
||||
'</a>');
|
||||
}
|
||||
}
|
||||
|
||||
ui_print_page_header(io_safe_output($networkmap['name']),
|
||||
"images/bricks.png", false, "network_map_enterprise",
|
||||
false, $buttons, false, '', $config['item_title_size_text']);
|
||||
|
||||
global $width;
|
||||
global $height;
|
||||
|
||||
|
|
Loading…
Reference in New Issue