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