diff --git a/libraries/Menu.class.php b/libraries/Menu.class.php index d6de4af77e..adbc5081fa 100644 --- a/libraries/Menu.class.php +++ b/libraries/Menu.class.php @@ -273,6 +273,10 @@ class PMA_Menu $tabs['search']['icon'] = 'b_search.png'; $tabs['search']['text'] = __('Search'); $tabs['search']['link'] = 'tbl_select.php'; + $tabs['search']['active'] = in_array( + basename($GLOBALS['PMA_PHP_SELF']), + array('tbl_select.php', 'tbl_zoom_select.php') + ); if (! $db_is_information_schema) { $tabs['insert']['icon'] = 'b_insrow.png'; diff --git a/libraries/TableSearch.class.php b/libraries/TableSearch.class.php index 158f712799..be354cadea 100644 --- a/libraries/TableSearch.class.php +++ b/libraries/TableSearch.class.php @@ -834,7 +834,7 @@ EOT; ); unset($choices); - $html_output .= '
'; + $html_output .= '
'; return $html_output; } @@ -1112,48 +1112,41 @@ EOT; */ public function getSelectionForm($goto, $dataLabel = null) { - $html_output = ''; - $html_output .= '
'; $url_params = array(); $url_params['db'] = $this->_db; $url_params['table'] = $this->_table; - $html_output .= $this->getCommonFunctions()->getHtmlTabs( - $this->_getSubTabs(), $url_params, 'topmenu2' - ); + $html_output = ''; + $html_output .= '
'; + $html_output .= $this->_getFormTag($goto); - $html_output .= '
'; - $html_output .= ($this->_searchType == 'zoom' - ? '' : '
'); - - // Set caption for fieldset if ($this->_searchType == 'zoom') { + $html_output .= ''; } else { + $html_output .= ''; $html_output .= $this->_getOptions(); + $html_output .= '
'; } /** @@ -1165,12 +1158,7 @@ EOT; . ($this->_searchType == 'zoom' ? '" id="inputFormSubmitId"' : '" ') . 'value="' . __('Go') . '" />'; $html_output .= '
'; - if ($this->_searchType == 'zoom') { - $html_output = '
' - . $html_output . '
'; - } else { - $html_output .= '
'; - } + $html_output .= '
'; return $html_output; }