From 53bd63a7d54aa145a970e8731dfd5dd541506552 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Mon, 8 May 2023 14:26:28 +0200 Subject: [PATCH] #11124 Visual changes are made to the detailed list of agents --- pandora_console/include/functions_ui.php | 15 ++++++++++++--- .../operation/agentes/estado_agente.php | 16 +++++++++------- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 4dcf94edf1..457c5e7e62 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -988,7 +988,10 @@ function ui_print_type_agent_icon( $output = html_print_image( 'images/satellite@os.svg', true, - ['class' => 'main_menu_icon invert_filter'], + [ + 'class' => 'main_menu_icon invert_filter', + 'style' => 'padding-right: 10px;', + ], false, false, false, @@ -1000,7 +1003,10 @@ function ui_print_type_agent_icon( $output = html_print_image( 'images/network-server@os.svg', true, - ['class' => 'main_menu_icon invert_filter'], + [ + 'class' => 'main_menu_icon invert_filter', + 'style' => 'padding-right: 10px;', + ], false, false, false, @@ -1012,7 +1018,10 @@ function ui_print_type_agent_icon( $output = html_print_image( 'images/data-server@svg.svg', true, - ['class' => 'main_menu_icon invert_filter'], + [ + 'class' => 'main_menu_icon invert_filter', + 'style' => 'padding-right: 10px;', + ], false, false, false, diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 6fffdb00ae..3e7aa3b96b 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -1039,9 +1039,10 @@ $tableAgents->head[2] = ''.__('OS').''; $tableAgents->head[2] .= ui_get_sorting_arrows($url_up_os, $url_down_os, $selectOsUp, $selectOsDown); $tableAgents->size[2] = '5%'; -$tableAgents->head[3] = ''.__('Interval').''; -$tableAgents->head[3] .= ui_get_sorting_arrows($url_up_interval, $url_down_interval, $selectIntervalUp, $selectIntervalDown); -$tableAgents->size[3] = '7%'; +/* + $tableAgents->head[3] = ''.__('Interval').''; + $tableAgents->head[3] .= ui_get_sorting_arrows($url_up_interval, $url_down_interval, $selectIntervalUp, $selectIntervalDown); +$tableAgents->size[3] = '7%';*/ $tableAgents->head[4] = ''.__('Group').''; $tableAgents->head[4] .= ui_get_sorting_arrows($url_up_group, $url_down_group, $selectGroupUp, $selectGroupDown); @@ -1073,7 +1074,7 @@ $tableAgents->size[11] = '6%'; $tableAgents->align = []; $tableAgents->align[2] = 'left'; -$tableAgents->align[3] = 'left'; +// $tableAgents->align[3] = 'left'; $tableAgents->align[4] = 'left'; $tableAgents->align[5] = 'left'; $tableAgents->align[6] = 'left'; @@ -1166,7 +1167,7 @@ foreach ($agents as $agent) { $data[0] .= ''; - $data[1] = ''.ui_print_truncate_text($agent['description'], 'description', false, true, true, '[…]').''; + $data[1] = ''.ui_print_truncate_text($agent['description'], 'description', false, true, true, '[…]', 'font-size:6.5pt').''; $data[2] = ''; @@ -1177,9 +1178,10 @@ foreach ($agents as $agent) { true ); - $data[3] = ''.human_time_description_raw( + /* + $data[3] = ''.human_time_description_raw( $agent['intervalo'] - ).''; + ).'';*/ $data[4] = ''; $data[4] .= ui_print_group_icon( $agent['id_grupo'],