diff --git a/pandora_console/godmode/alerts/alert_list.list.php b/pandora_console/godmode/alerts/alert_list.list.php index 6689219692..d8d90bc05b 100644 --- a/pandora_console/godmode/alerts/alert_list.list.php +++ b/pandora_console/godmode/alerts/alert_list.list.php @@ -363,13 +363,12 @@ $table->align[1] = 'left'; $table->align[2] = 'left'; $table->align[3] = 'left'; $table->align[4] = 'left'; -$table->align[5] = 'left'; $table->head = array (); if (! $id_agente) { $table->style = array (); - $table->style[0] = 'font-weight: bold'; + $table->style[0] = 'font-weight: bold;'; $table->head[0] = __('Agent') . ' ' . '' . html_print_image("images/sort_up.png", true, array("style" => $selectAgentUp)) . '' . '' . html_print_image("images/sort_down.png", true, array("style" => $selectAgentDown)) . ''; @@ -378,7 +377,6 @@ if (! $id_agente) { $table->size[2] = '8%'; $table->size[3] = '4%'; $table->size[4] = '4%'; - $table->size[5] = '4%'; /* if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { $table->size[4] = '8%'; @@ -394,7 +392,6 @@ else { } */ $table->size[3] = '1%'; $table->size[4] = '1%'; - $table->size[5] = '10%'; } $table->head[1] = __('Module') . ' ' . @@ -404,16 +401,14 @@ $table->head[1] = __('Module') . ' ' . '' . html_print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '' . '' . html_print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . ''; $table->head[2] = __('Actions'); -$table->head[3] = ''; -$table->head[4] = __('Status'); -$table->head[5] = "" . __('Op.') . ""; +$table->head[3] = __('Status'); +$table->head[4] = "" . __('Op.') . ""; $table->valign[0] = 'middle'; $table->valign[1] = 'middle'; $table->valign[2] = 'middle'; $table->valign[3] = 'middle'; $table->valign[4] = 'middle'; -$table->valign[5] = 'middle'; $table->data = array (); @@ -502,7 +497,6 @@ foreach ($simple_alerts as $alert) { $data[2] .= ""; $data[2] .= ""; } -$data[3] = ""; foreach ($actions as $action_id => $action) { $data[2] .= ""; $data[2] .= "
"; @@ -540,23 +534,19 @@ $data[3] = ""; // Is possible manage actions if have LW permissions in the agent group of the alert module if (check_acl ($config['id_user'], $agent_group, "LW")) { - $data[3] .= ""; + $data[2] .= ''; + $data[2] .= html_print_input_image ('delete', + 'images/cross.png', 1, 'padding:0px;', true, + array('title' => __('Delete action'))); + $data[2] .= html_print_input_hidden ('delete_action', 1, true); + $data[2] .= html_print_input_hidden ('id_alert', $alert['id'], true); + $data[2] .= html_print_input_hidden ('id_action', $action_id, true); + $data[2] .= ''; } $data[2] .= ""; $data[2] .= ""; } - $data[3] .= '
"; - $data[3] .= ''; - $data[3] .= "
'; $data[2] .= '
'; // Is possible manage actions if have LW permissions in the agent group of the alert module if (check_acl ($config['id_user'], $agent_group, "LW")) { @@ -638,33 +628,33 @@ $data[3] = ""; $title = __('Alert not fired'); } - $data[4] = ui_print_status_image($status, $title, true); + $data[3] = ui_print_status_image($status, $title, true); - $data[5] = ''; + $data[4] = ''; if ($alert['disabled']) { - $data[5] .= html_print_input_image ('enable', 'images/lightbulb_off.png', 1, 'padding:0px', true); - $data[5] .= html_print_input_hidden ('enable_alert', 1, true); + $data[4] .= html_print_input_image ('enable', 'images/lightbulb_off.png', 1, 'padding:0px', true); + $data[4] .= html_print_input_hidden ('enable_alert', 1, true); } else { - $data[5] .= html_print_input_image ('disable', 'images/lightbulb.png', 1, 'padding:0px;', true); - $data[5] .= html_print_input_hidden ('disable_alert', 1, true); + $data[4] .= html_print_input_image ('disable', 'images/lightbulb.png', 1, 'padding:0px;', true); + $data[4] .= html_print_input_hidden ('disable_alert', 1, true); } - $data[5] .= html_print_input_hidden ('id_alert', $alert['id'], true); - $data[5] .= ''; + $data[4] .= html_print_input_hidden ('id_alert', $alert['id'], true); + $data[4] .= ''; // To manage alert is necessary LW permissions in the agent group if(check_acl ($config['id_user'], $agent_group, "LW")) { - $data[5] .= '  '; + $data[4] .= '  '; if (!$alert['standby']) { - $data[5] .= html_print_input_image ('standby_off', 'images/bell.png', 1, 'padding:0px;', true); - $data[5] .= html_print_input_hidden ('standbyon_alert', 1, true); + $data[4] .= html_print_input_image ('standby_off', 'images/bell.png', 1, 'padding:0px;', true); + $data[4] .= html_print_input_hidden ('standbyon_alert', 1, true); } else { - $data[5] .= html_print_input_image ('standby_on', 'images/bell_pause.png', 1, 'padding:0px;', true); - $data[5] .= html_print_input_hidden ('standbyoff_alert', 1, true); + $data[4] .= html_print_input_image ('standby_on', 'images/bell_pause.png', 1, 'padding:0px;', true); + $data[4] .= html_print_input_hidden ('standbyoff_alert', 1, true); } - $data[5] .= html_print_input_hidden ('id_alert', $alert['id'], true); - $data[5] .= ''; + $data[4] .= html_print_input_hidden ('id_alert', $alert['id'], true); + $data[4] .= ''; } // To access to policy page is necessary have AW permissions in the agent @@ -672,11 +662,11 @@ $data[3] = "
"; if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { $policyInfo = policies_is_alert_in_policy2($alert['id'], false); if ($policyInfo === false) - $data[4] .= ''; + $data[3] .= ''; else { $img = 'images/policies.png'; - - $data[4] .= '  ' . + + $data[3] .= '  ' . html_print_image($img, true, array('title' => $policyInfo['name'])) . ''; } @@ -685,27 +675,27 @@ $data[3] = "
"; // To manage alert is necessary LW permissions in the agent group if(check_acl ($config['id_user'], $agent_group, "LW")) { - $data[5] .= '  '; + $data[4] .= '  '; if ($alert['disabled']) { - $data[5] .= html_print_image('images/add.disabled.png', + $data[4] .= html_print_image('images/add.disabled.png', true, array('title' => __("Add action"))); } else { - $data[5] .= ''; - $data[5] .= html_print_image('images/add.png', true, array('title' => __("Add action"))); - $data[5] .= ''; + $data[4] .= ''; + $data[4] .= html_print_image('images/add.png', true, array('title' => __("Add action"))); + $data[4] .= ''; } - $data[5] .= html_print_input_image ('delete', 'images/cross.png', 1, '', true, array('title' => __('Delete'))); - $data[5] .= html_print_input_hidden ('delete_alert', 1, true); - $data[5] .= html_print_input_hidden ('id_alert', $alert['id'], true); - $data[5] .= ''; + $data[4] .= html_print_input_image ('delete', 'images/cross.png', 1, '', true, array('title' => __('Delete'))); + $data[4] .= html_print_input_hidden ('delete_alert', 1, true); + $data[4] .= html_print_input_hidden ('id_alert', $alert['id'], true); + $data[4] .= ''; } if(check_acl ($config['id_user'], $agent_group, "LM")) { - $data[5] .= ''; - $data[5] .= html_print_input_image ('view_alert', 'images/eye.png', 1, '', true, array('title' => __('View alert advanced details'))); - $data[5] .= html_print_input_hidden ('id_alert', $alert['id'], true); - $data[5] .= ''; + $data[4] .= ''; + $data[4] .= html_print_input_image ('view_alert', 'images/eye.png', 1, '', true, array('title' => __('View alert advanced details'))); + $data[4] .= html_print_input_hidden ('id_alert', $alert['id'], true); + $data[4] .= ''; } array_push ($table->data, $data); }