diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5a33d09c25..38e6b1d6fb 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,5 +1,8 @@ 2011-08-17 Sancho Lerena + * operation/snmpconsole/snmp_view.php: SQL optimization and + added space between icons. + * snmp_wizard.png: New icon for new feature SNMP Wizard in agent godmode (taken from enterprise massive SNMP module). diff --git a/pandora_console/operation/snmpconsole/snmp_view.php b/pandora_console/operation/snmpconsole/snmp_view.php index 8c82c470b6..f82cfdac46 100644 --- a/pandora_console/operation/snmpconsole/snmp_view.php +++ b/pandora_console/operation/snmpconsole/snmp_view.php @@ -316,7 +316,7 @@ ui_toggle($filter, __('Toggle filter(s)')); unset ($table); // Prepare index for pagination -$trapcount = db_get_sql ("SELECT COUNT(*) FROM ttrap " . $whereSubquery); +$trapcount = db_get_sql ("SELECT COUNT(id_trap) FROM ttrap " . $whereSubquery); $urlPagination = "index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&filter_agent=" . $filter_agent . "&filter_oid=" . $filter_oid . "&filter_severity=" . $filter_severity @@ -328,7 +328,7 @@ echo '
head = array (); $table->size = array (); @@ -461,10 +461,10 @@ if ($traps !== false) { $data[8] = ""; if (empty ($trap["status"]) && check_acl ($config["id_user"], 0, "IW")) { - $data[8] .= '' . html_print_image("images/ok.png", true, array("border" => '0', "title" => __('Validate'))) . ''; + $data[8] .= '' . html_print_image("images/ok.png", true, array("border" => '0', "title" => __('Validate'))) . ' '; } if (check_acl ($config["id_user"], 0, "IM")) { - $data[8] .= '' . html_print_image("images/cross.png", true, array("border" => "0", "title" => __('Delete'))) . ''; + $data[8] .= '' . html_print_image("images/cross.png", true, array("border" => "0", "title" => __('Delete'))) . ' '; } $data[8] .= '' . html_print_image("images/eye.png", true, array("alt" => __('Show more'), "title" => __('Show more'))) .'';