From c2e22dd1ac57eeada6bd6c341430643bd8eecc0e Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 1 Aug 2012 22:07:32 +0530 Subject: [PATCH] Fix footer fieldset of zoom search and simplify some code --- libraries/TableSearch.class.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/libraries/TableSearch.class.php b/libraries/TableSearch.class.php index 7c171634bb..acfb1817e9 100644 --- a/libraries/TableSearch.class.php +++ b/libraries/TableSearch.class.php @@ -1112,12 +1112,11 @@ EOT; */ public function getSelectionForm($goto, $dataLabel = null) { - $html_output = ''; $url_params = array(); $url_params['db'] = $this->_db; $url_params['table'] = $this->_table; - $html_output .= $this->getCommonFunctions()->getHtmlTabs( + $html_output = $this->getCommonFunctions()->getHtmlTabs( $this->_getSubTabs(), $url_params, 'topmenu2' ); $html_output .= $this->_getFormTag($goto); @@ -1148,6 +1147,7 @@ EOT; */ if ($this->_searchType == 'zoom') { $html_output .= $this->_getOptionsZoom($dataLabel); + $html_output .= ''; } else { $html_output .= '
' . '' @@ -1164,12 +1164,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; }