From 40faf8719ed2d0c78b1459ac3f366d023b0c03ec Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 29 May 2013 11:25:39 +0000 Subject: [PATCH] 2013-05-29 Miguel de Dios * include/functions_snmp_browser.php: fixed PHP warning with to access out the table array. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8225 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ .../include/functions_snmp_browser.php | 22 +++++++++++++------ 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3e01bb971c..f63b6c63e1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-05-29 Miguel de Dios + + * include/functions_snmp_browser.php: fixed PHP warning with to + access out the table array. + 2013-05-29 Miguel de Dios * operation/agentes/ver_agente.php: cleaned source code style. diff --git a/pandora_console/include/functions_snmp_browser.php b/pandora_console/include/functions_snmp_browser.php index 9a808bb67b..a79910e242 100644 --- a/pandora_console/include/functions_snmp_browser.php +++ b/pandora_console/include/functions_snmp_browser.php @@ -338,7 +338,7 @@ function snmp_browser_get_oid ($target_ip, $community, $target_oid) { * @return string The OID data. */ function snmp_browser_print_oid ($oid = array(), $custom_action = '', $return = false) { - + // OID information table $table->width = '100%'; $table->size = array (); @@ -442,14 +442,22 @@ function snmp_browser_print_container ($return = false, $width = '95%', $height $table2->data = array (); $table2->data[0][0] = html_print_input_text ('search_text', '', '', 25, 0, true); - $table2->data[0][0] .= '' . html_print_image ("images/zoom.png", true, array ('title' => __('Search'), 'style' => 'vertical-align: middle;', 'onclick' => 'searchText();')) . ''; - $table2->data[0][1] = ' ' . '' . html_print_image ("images/go_first.png", true, array ('title' => __('First match'), 'style' => 'vertical-align: middle;', 'onclick' => 'searchFirstMatch();')) . ''; - $table2->data[0][1] .= ' ' . '' . html_print_image ("images/go_previous.png", true, array ('title' => __('Previous match'), 'style' => 'vertical-align: middle;', 'onclick' => 'searchPrevMatch();')) . ''; - $table2->data[0][1] .= ' ' . '' . html_print_image ("images/go_next.png", true, array ('title' => __('Next match'), 'style' => 'vertical-align: middle;', 'onclick' => 'searchNextMatch();')) . ''; - $table2->data[0][1] .= ' ' . '' . html_print_image ("images/go_last.png", true, array ('title' => __('Last match'), 'style' => 'vertical-align: middle;', 'onclick' => 'searchLastMatch();')) . ''; + $table2->data[0][0] .= '' . + html_print_image ("images/zoom.png", true, array ('title' => __('Search'), 'style' => 'vertical-align: middle;', 'onclick' => 'searchText();')) . ''; + $table2->data[0][1] = ' ' . '' . + html_print_image ("images/go_first.png", true, array ('title' => __('First match'), 'style' => 'vertical-align: middle;', 'onclick' => 'searchFirstMatch();')) . ''; + $table2->data[0][1] .= ' ' . '' . + html_print_image ("images/go_previous.png", true, array ('title' => __('Previous match'), 'style' => 'vertical-align: middle;', 'onclick' => 'searchPrevMatch();')) . ''; + $table2->data[0][1] .= ' ' . '' . + html_print_image ("images/go_next.png", true, array ('title' => __('Next match'), 'style' => 'vertical-align: middle;', 'onclick' => 'searchNextMatch();')) . ''; + $table2->data[0][1] .= ' ' . '' . + html_print_image ("images/go_last.png", true, array ('title' => __('Last match'), 'style' => 'vertical-align: middle;', 'onclick' => 'searchLastMatch();')) . ''; $table2->cellstyle[0][1] = 'text-align:center;'; - $table2->data[0][2] .= ' ' . '' . html_print_image ("images/expand.png", true, array ('title' => __('Expand the tree') . ' (' . __('can be slow') . ')', 'style' => 'vertical-align: middle;', 'onclick' => 'expandAll();')) . ''; + $table2->data[0][2] = ' ' . '' . + html_print_image("images/expand.png", true, + array('title' => __('Expand the tree (can be slow)'), + 'style' => 'vertical-align: middle;', 'onclick' => 'expandAll();')) . ''; $table2->data[0][2] .= ' ' . '' . html_print_image ("images/collapse.png", true, array ('title' => __('Collapse the tree'), 'style' => 'vertical-align: middle;', 'onclick' => 'collapseAll();')) . ''; $table2->cellstyle[0][2] = 'text-align:center;';