From e6eed5e471227b3eb7cae933c17092384198b956 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 17 Feb 2023 11:54:48 +0100 Subject: [PATCH] fix visual module graph and monitor details more details --- pandora_console/include/ajax/module.php | 23 +++++++++---------- pandora_console/include/styles/pandora.css | 5 ++++ .../operation/agentes/stat_win.php | 15 +++++++----- .../operation/agentes/status_monitor.php | 4 ++-- 4 files changed, 27 insertions(+), 20 deletions(-) diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index 4af0ace687..9913438275 100755 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -225,8 +225,7 @@ if (check_login()) { SECONDS_2YEARS => __('2 years'), SECONDS_3YEARS => __('3 years'), ]; - - $formtable->data[0][0] = html_print_radio_button_extended( + $formtable->data[0][0] = '
'.html_print_radio_button_extended( 'selection_mode', 'fromnow', '', @@ -235,8 +234,9 @@ if (check_login()) { '', 'class="mrgn_right_15px"', true - ).__('Choose a time from now'); - $formtable->data[0][1] = html_print_select( + ).__('Choose a time from now').'
'; + $formtable->colspan[0][0] = 2; + $formtable->data[0][2] = html_print_select( $periods, 'period', $period, @@ -247,12 +247,11 @@ if (check_login()) { false, false ); - $formtable->data[0][2] = ''; $formtable->data[0][3] = "".html_print_image('images/refresh.png', true, ['style' => 'vertical-align: middle;', 'border' => '0', 'class' => 'invert_filter' ]).''; $formtable->rowspan[0][3] = 2; $formtable->cellstyle[0][3] = 'vertical-align: middle;'; - $formtable->data[1][0] = html_print_radio_button_extended( + $formtable->data[1][0] = '
'.html_print_radio_button_extended( 'selection_mode', 'range', '', @@ -262,9 +261,9 @@ if (check_login()) { 'class="mrgn_right_15px"', true ).__('Specify time range'); - $formtable->data[1][1] = __('Timestamp from:'); + $formtable->data[1][1] = ''.__('Timestamp from:').'
'; - $formtable->data[1][2] = html_print_input_text( + $formtable->data[1][2] = '
'.html_print_input_text( 'date_from', $date_from, '', @@ -277,12 +276,12 @@ if (check_login()) { $time_from, '', 9, - 7, + 8, true ); $formtable->data[1][1] .= '
'; - $formtable->data[1][1] .= __('Timestamp to:'); + $formtable->data[1][1] .= ''.__('Timestamp to:').''; $formtable->data[1][2] .= '
'; $formtable->data[1][2] .= html_print_input_text( @@ -298,9 +297,9 @@ if (check_login()) { $time_to, '', 9, - 7, + 8, true - ); + ).'
'; $freesearch_object = ''; if (preg_match('/_string/', $moduletype_name)) { diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 102580c5c8..a974146259 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -10558,6 +10558,7 @@ tr.bring_next_field { vertical-align: middle; text-align: left; min-width: 150px !important; + z-index: 10002; } .select2-container .select2-selection--single, @@ -11200,3 +11201,7 @@ form#satellite_conf_edit > fieldset.full-column { .action-buttons > button { margin: 10px; } + +.inputs_date_details > input { + margin: 5px; +} diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index 72c5c55c7a..d1e39ef0bf 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -118,12 +118,12 @@ ui_print_message_dialog( - + width = '100%'; $table->id = 'stat_win_form_div'; - $table->style[0] = 'text-align:left;'; - $table->style[1] = 'text-align:left;'; - $table->style[2] = 'text-align:left;font-weight: bold;'; - $table->style[3] = 'text-align:left;'; + $table->style[0] = 'text-align:left;font-weight: bold;font-size:8.5pt;line-height:30pt;'; + $table->style[1] = 'text-align:left;font-weight: bold;line-height:30pt;'; + $table->style[2] = 'text-align:left;font-weight: bold;line-height:30pt;'; + $table->style[3] = 'text-align:left;font-weight: bold;line-height:30pt;'; $table->class = 'table_modal_alternate'; $table->data = []; @@ -451,7 +451,10 @@ ui_print_message_dialog( __('Reload'), 'submit', false, - 'class="sub upd"', + [ + 'icon' => 'Icon search secondary mini', + 'class' => 'float-right', + ], true ); $form_table .= ''; diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 2f465314d5..5040629bea 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -2106,7 +2106,7 @@ if (!empty($result)) { // End Build List Result. -echo "
"; +echo "
"; // Load filter div for dialog. echo ''; @@ -2252,7 +2252,7 @@ function show_module_detail_dialog(module_id, id_agent, server_name, offset, per opacity: 0.5, background: "black" }, - width: 620, + width: 700, height: 500 }) .show ();