Working in the new type of report availability.

This commit is contained in:
mdtrooper 2015-03-31 18:30:51 +02:00
parent 88115eb9d9
commit 4345ec6fa3
2 changed files with 10 additions and 1 deletions

View File

@ -5311,6 +5311,12 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
case 'network_interfaces_report':
reporting_network_interfaces_table($content, $report, $mini, $item_title, $table);
break;
case 'availability':
if (empty($item_title)) {
$item_title = __('Availability');
}
reporting_header_content($mini, $content, $report, $table, $item_title);
break;
case 'general':
if (empty($item_title)) {
$item_title = __('General');
@ -5330,6 +5336,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
array_push($table->data, $data_desc);
}
switch ($group_by_agent) {
//0 means not group by agent
case 0:

View File

@ -576,7 +576,8 @@ function reports_get_report_types ($template = false, $not_editor = false) {
'name' => __('Top n'));
$types['network_interfaces_report'] = array('optgroup' => __('Grouped'),
'name' => __('Network interfaces'));
$types['availability'] = array('optgroup' => __('Grouped'),
'name' => __('Availability'));
$types['text'] = array('optgroup' => __('Text/HTML '),