" . __("Zero results found") . "
\n"; } else { $table->cellpadding = 4; $table->cellspacing = 4; $table->width = "98%"; $table->class = "databox"; $table->head = array (); $table->head[0] = '' . ' ' . '' . html_print_image("images/sort_up.png", true, array("style" => $selectDisabledUp)) . '' . '' . html_print_image("images/sort_down.png", true, array("style" => $selectDisabledDown)) . ''; $table->head[1] = __('Agent') . ' ' . '' . html_print_image("images/sort_up.png", true, array("style" => $selectAgentUp)) . '' . '' . html_print_image("images/sort_down.png", true, array("style" => $selectAgentDown)) . ''; $table->head[2] = __('Module') . ' ' . '' . html_print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '' . '' . html_print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . ''; $table->head[3] = __('Template') . ' ' . '' . html_print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '' . '' . html_print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . ''; $table->head[4] = __('Action'); $table->align = array (); $table->align[0] = "center"; $table->align[1] = "left"; $table->align[2] = "left"; $table->align[3] = "left"; $table->align[4] = "left"; $table->valign = array (); $table->valign[0] = "top"; $table->valign[1] = "top"; $table->valign[2] = "top"; $table->valign[3] = "top"; $table->valign[4] = "top"; $table->data = array (); foreach ($alerts as $alert) { if ($alert['disabled']) $disabledCell = html_print_image ('images/lightbulb_off.png', true, array('title' => 'disable', 'alt' => 'disable')); else $disabledCell = html_print_image ('images/lightbulb.png', true, array('alt' => 'enable', 'title' => 'enable')); $actionCell = ''; if (strlen($alert["actions"]) > 0) { $arrayActions = explode(',', $alert["actions"]); $actionCell = ''; } array_push($table->data, array( $disabledCell, ui_print_agent_name($alert["id_agente"], true), $alert["module_name"], $alert["template_name"],$actionCell )); } echo "
";ui_pagination ($totalAlerts); html_print_table ($table); unset($table); ui_pagination ($totalAlerts); } ?>