diff --git a/tbl_select.php b/tbl_select.php index 8212a6c0a8..2209e309d6 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -123,7 +123,7 @@ function PMA_tblSearchBuildSqlQuery($table, $fields, $names, $types, $param, $order) { $sql_query = 'SELECT '; - if($is_distinct) { + if($is_distinct == 'true') { $sql_query .= 'DISTINCT '; } @@ -245,23 +245,22 @@ $geom_types, $column_index) } /** - * Displays formatted HTML for extra search options (slider) in table search form + * Generates formatted HTML for extra search options (slider) in table search form * * @param array $fields_list array containing types of all columns * in the table * @param integer $fields_cnt number of fields in the table * - * @return void + * @return string the generated HTML */ -function PMA_tblSearchDisplaySliderOptions($fields_list, $fields_cnt) -{ - PMA_generateSliderEffect('searchoptions', __('Options')); +function PMA_tblSearchGetSliderOptions($fields_list, $fields_cnt) +{ $html_output = ''; - + $html_output .= PMA_getDivForSliderEffect('searchoptions', __('Options')); /** * Displays columns select list for selecting distinct columns in the search */ - $html_output = '
'; + return $html_output; } /** @@ -435,13 +436,11 @@ $foreigners, $db, $table) $html_output .= '' . ''; - echo $html_output; /** * Displays slider options form */ - PMA_tblSearchDisplaySliderOptions($fields_list, $fields_cnt); - $html_output = '