From d852df413c64382f83b96b322965a6741aeddeac Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 15 Dec 2016 10:25:34 +0100 Subject: [PATCH] add legend SLA reports (cherry picked from commit a678177020ab242709a5c134a3544c10b4657d8f) --- .../include/functions_reporting_html.php | 39 ++++++++++++------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index 2d1ab39b47..b318b15c23 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -616,23 +616,36 @@ function reporting_html_SLA($table, $item, $mini) { $table1 = new stdClass(); $table1->width = '99%'; $table1->data = array (); - $table1->data[0][0] = '
'; - $table1->data[0][0] .= ''.__('OK') . ''; + $table1->size = array (); + $table1->size[0] = '2%'; + $table1->data[0][0] = ''; + $table1->size[1] = '14%'; + $table1->data[0][1] = ''.__('OK') . ''; - $table1->data[0][1] = '
'; - $table1->data[0][1] .= ''.__('Critical'). ''; + $table1->size[2] = '2%'; + $table1->data[0][2] = ''; + $table1->size[3] = '14%'; + $table1->data[0][3] = ''.__('Critical'). ''; - $table1->data[0][2] = '
'; - $table1->data[0][2] .= ''.__('Unknow'). ''; + $table1->size[4] = '2%'; + $table1->data[0][4] = ''; + $table1->size[5] = '14%'; + $table1->data[0][5] = ''.__('Unknow'). ''; - $table1->data[0][3] = '
'; - $table1->data[0][3] .= ''.__('Not Init'). ''; + $table1->size[6] = '2%'; + $table1->data[0][6] = ''; + $table1->size[7] = '14%'; + $table1->data[0][7] = ''.__('Not Init'). ''; - $table1->data[0][4] = '
'; - $table1->data[0][4] .= ''.__('Downtimes'). ''; - - $table1->data[0][5] = '
'; - $table1->data[0][5] .= ''.__('Ignore time'). ''; + $table1->size[8] = '2%'; + $table1->data[0][8] = ''; + $table1->size[9] = '14%'; + $table1->data[0][9] = ''.__('Downtimes'). ''; + + $table1->size[10] = '2%'; + $table1->data[0][10] = ''; + $table1->size[11] = '15%'; + $table1->data[0][11] = ''.__('Ignore time'). ''; $table->colspan['legend']['cell'] = 2; $table->data['legend']['cell'] = html_print_table($table1, true);