Cleaned the javascript call
This commit is contained in:
parent
3c609b4d6d
commit
d7ca703c99
|
@ -538,11 +538,7 @@ function mainAgentsModules()
|
|||
echo "<td style='text-align: center;'>";
|
||||
$win_handle = dechex(crc32($module_id.$module['name']));
|
||||
$graph_type = return_graphtype(modules_get_agentmodule_type($module_id));
|
||||
$link = "winopeng('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&'.'id='.$module_id.'&'.'label='.rawurlencode(
|
||||
urlencode(
|
||||
base64_encode($module['name'])
|
||||
)
|
||||
).'&'.'refresh='.SECONDS_10MINUTES."', 'day_".$win_handle."')";
|
||||
$link = "winopeng('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&'.'id='.$module_id.'&'.'refresh='.SECONDS_10MINUTES."', 'day_".$win_handle."')";
|
||||
|
||||
echo '<a href="javascript:'.$link.'">';
|
||||
switch ($status) {
|
||||
|
|
|
@ -1141,11 +1141,7 @@ if (check_login()) {
|
|||
$draw_events = 0;
|
||||
}
|
||||
|
||||
$link = "winopeng_var('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&id='.$module['id_agente_modulo'].'&label='.rawurlencode(
|
||||
urlencode(
|
||||
base64_encode($module['nombre'])
|
||||
)
|
||||
).'&refresh='.SECONDS_10MINUTES.'&'."draw_events=$draw_events', 'day_".$win_handle."', 1000, 700)";
|
||||
$link = "winopeng_var('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&id='.$module['id_agente_modulo'].'&refresh='.SECONDS_10MINUTES.'&'."draw_events=$draw_events', 'day_".$win_handle."', 1000, 700)";
|
||||
if (!is_snapshot_data($module['datos'])) {
|
||||
$data[8] .= '<a href="javascript:'.$link.'">'.html_print_image('images/chart_curve.png', true, ['border' => '0', 'alt' => '']).'</a> ';
|
||||
}
|
||||
|
|
|
@ -652,7 +652,6 @@ class Tree
|
|||
'type' => $graphType,
|
||||
'period' => SECONDS_1DAY,
|
||||
'id' => $module['id'],
|
||||
'label' => base64_encode($module['name']),
|
||||
'refresh' => SECONDS_10MINUTES,
|
||||
];
|
||||
|
||||
|
|
|
@ -4083,7 +4083,6 @@ function events_page_details($event, $server='')
|
|||
'type' => $graph_type,
|
||||
'period' => SECONDS_1DAY,
|
||||
'id' => $module['id_agente_modulo'],
|
||||
'label' => base64_encode($module['nombre']),
|
||||
'refresh' => SECONDS_10MINUTES,
|
||||
];
|
||||
|
||||
|
|
|
@ -53,7 +53,6 @@ $id = get_parameter('id');
|
|||
$id_agent = db_get_value('id_agente', 'tagente_modulo', 'id_agente_modulo', $id);
|
||||
$alias = db_get_value('alias', 'tagente', 'id_agente', $id_agent);
|
||||
$label = db_get_value('nombre', 'tagente_modulo', 'id_agente_modulo', $id);
|
||||
$label_graph = $label;
|
||||
// $agent = agents_get_agent_with_ip ("192.168.50.31");
|
||||
// $label = rawurldecode(urldecode(base64_decode(get_parameter('label', ''))));
|
||||
?>
|
||||
|
@ -117,7 +116,6 @@ $label_graph = $label;
|
|||
|
||||
$period = get_parameter('period');
|
||||
$id = get_parameter('id', 0);
|
||||
$label = get_parameter('label', '');
|
||||
$start_date = get_parameter('start_date', date('Y/m/d'));
|
||||
$start_time = get_parameter('start_time', date('H:i:s'));
|
||||
$draw_events = get_parameter('draw_events', 0);
|
||||
|
@ -189,7 +187,7 @@ $label_graph = $label;
|
|||
'agent_module_id' => $id,
|
||||
'period' => $period,
|
||||
'show_events' => $draw_events,
|
||||
'title' => $label_graph,
|
||||
'title' => $label,
|
||||
'unit_name' => $unit,
|
||||
'show_alerts' => $draw_alerts,
|
||||
'date' => $date,
|
||||
|
|
|
@ -1501,7 +1501,6 @@ if (!empty($result)) {
|
|||
'type' => $graph_type,
|
||||
'period' => SECONDS_1DAY,
|
||||
'id' => $row['id_agente_modulo'],
|
||||
'label' => base64_encode($row['module_name']),
|
||||
'refresh' => SECONDS_10MINUTES,
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue