diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index f4d19352c9..bc72f565bd 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -661,6 +661,22 @@ switch ($sortField) { break; } break; + case 'data': + switch ($sort) { + case 'up': + $selectTimestampUp = $selected; + $order = array( + 'field' => 'tagente_estado.datos', + 'order' => 'ASC'); + break; + case 'down': + $selectTimestampDown = $selected; + $order = array( + 'field' => 'tagente_estado.datos', + 'order' => 'DESC'); + break; + } + break; default: $selectAgentNameUp = $selected; $selectAgentNameDown = ''; @@ -958,6 +974,10 @@ $table->align[8] = "left"; $table->head[9] = __('Data'); $table->align[9] = "left"; +if ( defined ('METACONSOLE') ) { +$table->head[9] .= ' ' . html_print_image("images/sort_up.png", true, array("style" => $selectStatusUp, "alt" => "up")) . '' . + '' . html_print_image("images/sort_down.png", true, array("style" => $selectStatusDown, "alt" => "down")) . ''; +} $table->head[10] = __('Timestamp'); if (! defined ('METACONSOLE')) {