From c2fdcbb1d837d18ca01e013e3a7b1a6e0734f4fe Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 5 May 2015 13:15:10 +0200 Subject: [PATCH] Working in the refactoring the code of reports (SLA_monthly). --- pandora_console/include/functions_reporting.php | 8 ++++++++ pandora_console/include/functions_reporting_html.php | 7 +++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index df5c2c352b..3cffabf170 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -421,6 +421,14 @@ function reporting_make_reporting_data($id_report, $date, $time, $force_width_chart, $force_height_chart); break; + case 'SLA_monthly': + $report['contents'][] = reporting_enterprise_sla_monthly_refactoriced( + $report, + $content); + break; + case 'SLA_services': + + break; } } diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index dec0a34429..81a53319e3 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -258,6 +258,9 @@ function reporting_html_print_report($report, $mini = false) { case 'SLA': reporting_html_SLA($table, $item, $mini); break; + case 'SLA_monthly': + reporting_enterprise_html_SLA_monthly($table, $item, $mini); + break; } if ($item['type'] == 'agent_module') @@ -4045,10 +4048,6 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f $item_title = $content['name']; switch ($content["type"]) { - case 'SLA_monthly': - if (function_exists("reporting_enterprise_sla_monthly")) - reporting_enterprise_sla_monthly($mini, $content, $report, $table, $item_title); - break; case 'SLA_services': if (function_exists("reporting_enterprise_sla_services")) reporting_enterprise_sla_services($mini, $content, $report, $table, $item_title);