diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e5ac1039d7..bb73c37e24 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,18 @@ +2009-10-21 Miguel de Dios + + * include/functions_ui.php: add param "style" in the function + "print_agent_name" for set the css style in the agent name return html + string. + Add in the "format_alert_row" the features: show icon policy from + enterprise and css grey disabled alert. + *include/functions_agents.php: add in the function "get_agent_alerts_simple" + and the function "get_agent_alerts_compound" the search "filter" param + posibility "all_enabled". + * operation/agentes/alerts_status, godmode/alerts/alert_list.php: add the + show rows of disabled alert, and add the select the "all (enabled)" (by + default show only alerts enabled). And add the icon of policy in the + enterprise version. + 2009-10-21 Miguel de Dios * include/functions_events.php: tiny fix, the icon for event not validate diff --git a/pandora_console/godmode/alerts/alert_list.php b/pandora_console/godmode/alerts/alert_list.php index c6855b7759..3fc319b19c 100644 --- a/pandora_console/godmode/alerts/alert_list.php +++ b/pandora_console/godmode/alerts/alert_list.php @@ -313,7 +313,7 @@ $table->class = 'alert_list'; $table->width = '90%'; $table->size = array (); $table->head = array (); -$table->head[0] = ''; +$table->head[0] = "" . __('E/D') . ""; if (! $id_agente) { $table->style = array (); $table->style[1] = 'font-weight: bold'; @@ -343,12 +343,18 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { } $table->head[5] = __('Actions'); $table->head[6] = ''; + $table->data = array (); $rowPair = true; $iterator = 0; foreach ($simple_alerts as $alert) { + if ($alert['disabled']) { + $table->rowstyle[$iterator] = 'font-style: italic; color: #aaaaaa;'; + $table->style[$iterator][1] = 'font-style: italic; color: #aaaaaa;'; + } + if ($rowPair) $table->rowclass[$iterator] = 'rowPair'; else @@ -373,8 +379,13 @@ foreach ($simple_alerts as $alert) { if (! $id_agente) { $id_agent = get_agentmodule_agent ($alert['id_agent_module']); $data[1] = ''; + if ($alert['disabled']) + $data[1] .= ''; $data[1] .= get_agent_name ($id_agent); + if ($alert['disabled']) + $data[1] .= ''; $data[1] .= ''; + } $data[2] = get_agentmodule_name ($alert['id_agent_module']); $data[3] = ' ' . + $data[4] = '' . print_image($img,true, array('title' => $policyInfo['name_policy'])) . ''; } @@ -399,7 +410,10 @@ foreach ($simple_alerts as $alert) { $data[5] = '