2011-08-17 Sancho Lerena <slerena@artica.es>
* operation/snmpconsole/snmp_view.php: SQL optimization and added space between icons. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4759 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
ade85fe547
commit
b95fea3f52
|
@ -1,5 +1,8 @@
|
|||
2011-08-17 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* 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).
|
||||
|
||||
|
|
|
@ -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 '<form name="eventtable" method="POST" action="index.php?sec=snmpconsole&se
|
|||
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->width = '95%';
|
||||
$table->width = '99%';
|
||||
$table->class = "databox";
|
||||
$table->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] .= '<a href="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&check='.$trap["id_trap"].'">' . html_print_image("images/ok.png", true, array("border" => '0', "title" => __('Validate'))) . '</a>';
|
||||
$data[8] .= '<a href="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&check='.$trap["id_trap"].'">' . html_print_image("images/ok.png", true, array("border" => '0', "title" => __('Validate'))) . '</a> ';
|
||||
}
|
||||
if (check_acl ($config["id_user"], 0, "IM")) {
|
||||
$data[8] .= '<a href="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&delete='.$trap["id_trap"].'&offset='.$offset.'" onClick="javascript:return confirm(\''.__('Are you sure?').'\')">' . html_print_image("images/cross.png", true, array("border" => "0", "title" => __('Delete'))) . '</a>';
|
||||
$data[8] .= '<a href="index.php?sec=snmpconsole&sec2=operation/snmpconsole/snmp_view&delete='.$trap["id_trap"].'&offset='.$offset.'" onClick="javascript:return confirm(\''.__('Are you sure?').'\')">' . html_print_image("images/cross.png", true, array("border" => "0", "title" => __('Delete'))) . '</a> ';
|
||||
}
|
||||
$data[8] .= '<a href="javascript: toggleVisibleExtendedInfo(' . $trap["id_trap"] . ');">' . html_print_image("images/eye.png", true, array("alt" => __('Show more'), "title" => __('Show more'))) .'</a>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue