";
echo __('Alerts');
echo "";
} else {
echo "
";
echo __('Pandora agents'). " » ".__('Alerts');
echo print_help_icon ('alert_validation', true);
echo "
";
}
echo '';
$table->width = '90%';
$table->class = "databox";
$table->size = array ();
$table->size[0] = '20px';
$table->size[1] = '25%';
$table->size[2] = '50%';
$table->size[3] = '25%';
$table->size[4] = '20px';
$table->size[5] = '60px';
$table->head = array ();
$table->head[0] = '';
$table->head[1] = ''; //Placeholder for name
$table->head[2] = __('Template');
$table->head[3] = __('Last fired');
$table->head[4] = __('Status');
$table->head[5] = __('Validate');
$table->title = __('Single alerts');
if ($print_agent == 0) {
$table->head[1] = __('Module');
} else {
$table->head[1] = __('Agent');
}
$table->align = array ();
$table->align[4] = 'center';
$table->align[5] = 'center';
$table->data = array ();
$total = 0;
$printed = 0;
$rowPair = true;
$iterator = 0;
foreach ($alerts_simple as $alert) {
if ($rowPair)
$table->rowclass[$iterator] = 'rowPair';
else
$table->rowclass[$iterator] = 'rowOdd';
$rowPair = !$rowPair;
$iterator++;
$total++;
if (empty ($alert) || $printed >= $config["block_size"] || $total <= $offset) {
continue;
}
$printed++;
array_push ($table->data, format_alert_row ($alert, false, $print_agent, $url));
}
echo '';
?>