This commit is contained in:
parent
33506128a3
commit
6c5c6d264c
|
@ -1881,6 +1881,8 @@ function agents_delete_agent ($id_agents, $disableACL = false) {
|
||||||
//And at long last, the agent
|
//And at long last, the agent
|
||||||
db_process_delete_temp ("tagente", "id_agente", $id_agent);
|
db_process_delete_temp ("tagente", "id_agente", $id_agent);
|
||||||
|
|
||||||
|
db_process_sql ("delete from ttag_module where id_agente_modulo = (select id_agente_modulo from tagente_modulo where id_agente = ".$id_agent.")");
|
||||||
|
|
||||||
db_pandora_audit( "Agent management",
|
db_pandora_audit( "Agent management",
|
||||||
"Deleted agent '$agent_name'");
|
"Deleted agent '$agent_name'");
|
||||||
|
|
||||||
|
|
|
@ -548,8 +548,37 @@ class Modules {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$row[7] = $row[__('Data')] =
|
|
||||||
'<span style="white-space: nowrap;">' .
|
$is_snapshot = is_snapshot_data($module["datos"]);
|
||||||
|
|
||||||
|
$handle = "snapshot" . "_" . $module["id_agente_modulo"];
|
||||||
|
$url = 'include/procesos.php?agente=' . $module["id_agente_modulo"];
|
||||||
|
|
||||||
|
$link = "window.open('../operation/agentes/snapshot_view.php?" .
|
||||||
|
"id=" . $module["id_agente_modulo"] .
|
||||||
|
"&refr=" . $module["module_interval"]."','".$handle."','width=700, height=480')";
|
||||||
|
|
||||||
|
if ($is_snapshot) {
|
||||||
|
|
||||||
|
if (is_image_data($module["datos"])) {
|
||||||
|
$row[7] = $row[__('Data')] = '<a href="javascript:' . $link . '">' .
|
||||||
|
html_print_image("images/photo.png", true,
|
||||||
|
array("border" => '0',
|
||||||
|
"alt" => "",
|
||||||
|
"title" => __("Snapshot view"))) . '</a> ';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$row[7] = $row[__('Data')] = '<a href="javascript:' . $link . '">' .
|
||||||
|
html_print_image("images/default_list.png", true,
|
||||||
|
array("border" => '0',
|
||||||
|
"alt" => "",
|
||||||
|
"title" => __("Snapshot view"))) . '</a> ';
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
|
||||||
|
$row[7] = $row[__('Data')] = '<span style="white-space: nowrap;">' .
|
||||||
'<span style="display: none;" class="show_collapside">' .
|
'<span style="display: none;" class="show_collapside">' .
|
||||||
$row[__('Status')] . ' </span>' .
|
$row[__('Status')] . ' </span>' .
|
||||||
'<a data-ajax="false" class="ui-link" ' .
|
'<a data-ajax="false" class="ui-link" ' .
|
||||||
|
@ -557,6 +586,19 @@ class Modules {
|
||||||
$module['id_agente_modulo'] . '&id_agent=' .
|
$module['id_agente_modulo'] . '&id_agent=' .
|
||||||
$this->id_agent . '">' . $output . '</a>' . '</span>';
|
$this->id_agent . '">' . $output . '</a>' . '</span>';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
'<span style="white-space: nowrap;">' .
|
||||||
|
'<span style="display: none;" class="show_collapside">' .
|
||||||
|
$row[__('Status')] . ' </span>' .
|
||||||
|
'<a data-ajax="false" class="ui-link" ' .
|
||||||
|
'href="index.php?page=module_graph&id=' .
|
||||||
|
$module['id_agente_modulo'] . '&id_agent=' .
|
||||||
|
$this->id_agent . '">' . $output . '</a>' . '</span>';*/
|
||||||
|
|
||||||
if (!$ajax) {
|
if (!$ajax) {
|
||||||
if ($this->columns['agent']) {
|
if ($this->columns['agent']) {
|
||||||
unset($row[0]);
|
unset($row[0]);
|
||||||
|
|
Loading…
Reference in New Issue