diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0332aef064..57a271f804 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,14 @@ +2013-07-23 Sergio Martin + + * include/functions_reporting.php: Few improvements + of monitor item and top n item on the reports for + bug #2331 + + * godmode/users/user_list.php: Change the default + order of the user list to user id, and hide the + useless first and second name from the view + (this data is not editable) + 2013-07-22 Ramon Novoa * include/help/es/help_field_match_snmp.php, diff --git a/pandora_console/godmode/users/user_list.php b/pandora_console/godmode/users/user_list.php index e3052b9ebb..1298e43f94 100644 --- a/pandora_console/godmode/users/user_list.php +++ b/pandora_console/godmode/users/user_list.php @@ -83,17 +83,16 @@ switch ($sortField) { } break; default: - $selectUserIDUp = ''; + $selectUserIDUp = $selected; $selectUserIDDown = ''; - $selectFullnameUp = $selected; + $selectFullnameUp = ''; $selectFullnameDown = ''; $selectLastConnectUp = ''; $selectLastConnectDown = ''; - $order = array('field' => 'fullname', 'order' => 'ASC'); + $order = array('field' => 'id_user', 'order' => 'ASC'); break; } - $buttons[$tab]['active'] = true; // Header @@ -312,9 +311,9 @@ foreach ($info as $user_id => $user_info) { $data[0] = ''.$user_id.''; $data[1] = ''; diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index b132aef681..24320f471a 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -3557,13 +3557,13 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f else { $monitor_value = format_numeric ($monitor_value); } - $data[0] = '

'; - $data[0] .= $monitor_value.' % ' . html_print_image("images/b_green.png", true, array("height" => "32", "width" => "32")) . '

'; + $data[0] = '

'; + $data[0] .= html_print_image("images/module_ok.png", true) . ' ' . __('OK') . ': ' . $monitor_value.' %

'; if ($monitor_value !== __('Unknown')) { $monitor_value = format_numeric (100 - $monitor_value, 2) ; } - $data[1] = '

'; - $data[1] .= $monitor_value.' % ' . html_print_image("images/b_red.png", true, array("height" => "32", "width" => "32")) . '

'; + $data[1] = '

'; + $data[1] .= html_print_image("images/module_critical.png", true) . ' ' .__('Not OK') . ': ' .$monitor_value.' % ' . '

'; array_push ($table->data, $data); break; @@ -4950,7 +4950,7 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f } reporting_header_content($mini, $content, $report, $table, - __('Top').' '.$content['top_n_value'] . '
' . $type_top_n); + 'Top '.$content['top_n_value'] . '
' . $type_top_n); $order_uptodown = $content['order_uptodown'];