diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 3381e3fd5f..bcf6a403a7 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -3971,6 +3971,7 @@ function html_print_image( 'onkeypress', 'onkeydown', 'onkeyup', + 'onload', 'pos_tree', ]; diff --git a/pandora_console/operation/agentes/log_sources_status.php b/pandora_console/operation/agentes/log_sources_status.php index c7cac9dd35..9e4dd50518 100644 --- a/pandora_console/operation/agentes/log_sources_status.php +++ b/pandora_console/operation/agentes/log_sources_status.php @@ -13,9 +13,36 @@ // GNU General Public License for more details. global $config; -// Login check +// Login check. check_login(); +?> + + +'.html_print_image('images/zoom.png', true, ['title' => __('Review in log viewer'), 'alt' => '', 'onclick' => "send_form('".$log['source'].'-'.$agent_id."')"]).''; - $row['last_contact'] = human_time_comparation($log['last_contact']); + $row['last_contact'] = html_print_image( + 'images/spinner.gif', + true, + [ + 'id' => 'img-'.$log['source'], + 'border' => '0', + 'width' => '20px', + 'heigth' => '20px', + 'onload' => "get_last_contact('".$log['source']."', '".$agent_id."')", + ] + ); - $table->data[] = $row; + $table->data[$log['source']] = $row; } ob_start();