Add total evens count in reports header - #3162

This commit is contained in:
enriquecd 2016-12-07 15:45:30 +01:00
parent 802e257fa9
commit 0b1454f0e8
2 changed files with 7 additions and 3 deletions

View File

@ -1389,6 +1389,8 @@ function reporting_event_report_group($report, $content,
metaconsole_restore_db(); metaconsole_restore_db();
} }
$return['total_events'] = count($return['data']);
return reporting_check_structure_content($return); return reporting_check_structure_content($return);
} }
@ -1433,6 +1435,8 @@ function reporting_event_report_module($report, $content) {
metaconsole_restore_db(); metaconsole_restore_db();
} }
$return['total_events'] = count($return['data']);
return reporting_check_structure_content($return); return reporting_check_structure_content($return);
} }
@ -2278,6 +2282,8 @@ function reporting_event_report_agent($report, $content,
metaconsole_restore_db(); metaconsole_restore_db();
} }
$return['total_events'] = count($return['data']);
return reporting_check_structure_content($return); return reporting_check_structure_content($return);
} }

View File

@ -130,10 +130,8 @@ function reporting_html_print_report($report, $mini = false) {
$item['date']['to'], $item['date']['to'],
$label); $label);
if ($item["description"] != "") { $table->data['description_row']['description'] = $item["description"]." - Total events: ".$item["total_events"];
$table->data['description_row']['description'] = $item["description"];
$table->colspan['description_row']['description'] = 3; $table->colspan['description_row']['description'] = 3;
}
switch ($item['type']) { switch ($item['type']) {
case 'availability': case 'availability':