From 1eb1120c6ea0f45122aff74bd6d8eaa9b2f3aa40 Mon Sep 17 00:00:00 2001 From: Tatiana Llorente Date: Mon, 27 May 2019 16:18:10 +0200 Subject: [PATCH] Rename class events_show_more_table to table_modal_alternate - #4102 --- pandora_console/include/ajax/events_extended.php | 2 +- pandora_console/include/functions_events.php | 12 ++++++------ pandora_console/include/styles/pandora.css | 10 +++++----- .../agentes/interface_traffic_graph_win.php | 2 +- pandora_console/operation/agentes/stat_win.php | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pandora_console/include/ajax/events_extended.php b/pandora_console/include/ajax/events_extended.php index 9c6ea27482..1fb3e94c63 100644 --- a/pandora_console/include/ajax/events_extended.php +++ b/pandora_console/include/ajax/events_extended.php @@ -84,7 +84,7 @@ if ($get_extended_info == 1) { $table->head = []; $table->cellspacing = 2; $table->cellpadding = 2; - $table->class = 'events_show_more_table'; + $table->class = 'table_modal_alternate'; $output = []; $output[] = ''.__('Timestamp').''; diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index f501586e13..fc874f2841 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1989,7 +1989,7 @@ function events_page_responses($event, $childrens_ids=[]) $table_responses->head = []; $table_responses->style[0] = 'height:30px'; $table_responses->style[2] = 'text-align:right;'; - $table_responses->class = 'events_show_more_table'; + $table_responses->class = 'table_modal_alternate'; if (tags_checks_event_acl($config['id_user'], $event['id_grupo'], 'EM', $event['clean_tags'], $childrens_ids)) { // Owner. @@ -2523,7 +2523,7 @@ function events_page_custom_fields($event) $table->width = '100%'; $table->data = []; $table->head = []; - $table->class = 'events_show_more_table'; + $table->class = 'table_modal_alternate'; $all_customs_fields = (bool) check_acl( $config['id_user'], @@ -2673,7 +2673,7 @@ function events_page_details($event, $server='') $table_details->head = []; $table_details->cellspacing = 0; $table_details->cellpadding = 0; - $table_details->class = 'events_show_more_table'; + $table_details->class = 'table_modal_alternate'; /* * Useless switch. @@ -2984,7 +2984,7 @@ function events_page_custom_data($event) $table->width = '100%'; $table->data = []; $table->head = []; - $table->class = 'events_show_more_table'; + $table->class = 'table_modal_alternate'; $json_custom_data = base64_decode($event['custom_data']); $custom_data = json_decode($json_custom_data); @@ -3139,7 +3139,7 @@ function events_page_general($event) $table_general->width = '100%'; $table_general->data = []; $table_general->head = []; - $table_general->class = 'events_show_more_table'; + $table_general->class = 'table_modal_alternate'; $data = []; $data[0] = __('Event ID'); @@ -3322,7 +3322,7 @@ function events_page_comments($event, $childrens_ids=[]) $table_comments->width = '100%'; $table_comments->data = []; $table_comments->head = []; - $table_comments->class = 'events_show_more_table'; + $table_comments->class = 'table_modal_alternate'; $event_comments = $event['user_comment']; $event_comments = str_replace(["\n", ' '], '
', $event_comments); diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 86a461485e..f003802d72 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -3630,27 +3630,27 @@ div.simple_value > a > span.text p { cursor: pointer; } -.events_show_more_table { +.table_modal_alternate { border-spacing: 0px; text-align: left; } /* Modal window - Show More */ -table.events_show_more_table tr:nth-child(odd) td { +table.table_modal_alternate tr:nth-child(odd) td { background-color: #ffffff; } -table.events_show_more_table tr:nth-child(even) td { +table.table_modal_alternate tr:nth-child(even) td { background-color: #f5f5f5; border-top: 1px solid #cacaca; border-bottom: 1px solid #cacaca; } -table.events_show_more_table tr td { +table.table_modal_alternate tr td { height: 22px; padding: 4px; } -table.events_show_more_table tr td:first-child { +table.table_modal_alternate tr td:first-child { width: 35%; font-weight: bold; padding-left: 20px; diff --git a/pandora_console/operation/agentes/interface_traffic_graph_win.php b/pandora_console/operation/agentes/interface_traffic_graph_win.php index e00ed0d254..a7d1257576 100644 --- a/pandora_console/operation/agentes/interface_traffic_graph_win.php +++ b/pandora_console/operation/agentes/interface_traffic_graph_win.php @@ -185,7 +185,7 @@ if ($date > $now) { $table->style[0] = 'text-align:left;'; $table->style[1] = 'text-align:left;'; $table->styleTable = 'margin-bottom: 20px;'; - $table->class = 'events_show_more_table'; + $table->class = 'table_modal_alternate'; $data = []; $data[0] = __('Refresh time'); diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index ef4a448360..a280318108 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -238,7 +238,7 @@ $alias = db_get_value('alias', 'tagente', 'id_agente', $id_agent); $table->style[0] = 'text-align:left;'; $table->style[1] = 'text-align:left;'; $table->styleTable = 'margin-bottom: 20px;'; - $table->class = 'events_show_more_table'; + $table->class = 'table_modal_alternate'; $data = []; $data[0] = __('Refresh time');