diff options
author | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2012-05-23 20:43:58 +0400 |
---|---|---|
committer | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2012-05-23 20:43:58 +0400 |
commit | bab0096296279331bad42f0295df954a32bfef03 (patch) | |
tree | 7709cb778707f4da955f338066299b9f8ffd2619 /tbl_select.php | |
parent | df0c40f862c25517b1b9d9c74c1fd342fb1eab1c (diff) |
Fixing broken table search feature due to function name changes
Diffstat (limited to 'tbl_select.php')
-rw-r--r-- | tbl_select.php | 27 |
1 files changed, 13 insertions, 14 deletions
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 = '<fieldset id="fieldset_select_fields">' + $html_output .= '<fieldset id="fieldset_select_fields">' . '<legend>' . __('Select columns (at least one):') . '</legend>' . '<select name="param[]" size="' . min($fields_cnt, 10) . '" multiple="multiple">'; @@ -311,9 +310,11 @@ function PMA_tblSearchDisplaySliderOptions($fields_list, $fields_cnt) 'ASC' => __('Ascending'), 'DESC' => __('Descending') ); - echo $html_output; - PMA_displayHtmlRadio('order', $choices, 'ASC', false, true, "formelement"); - unset($choices); + $html_output .= PMA_getRadioFields('order', $choices, 'ASC', false, true, "formelement"); + unset($choices); + + $html_output .= '</fieldset><br style="clear: both;"/></div></fieldset>'; + return $html_output; } /** @@ -435,13 +436,11 @@ $foreigners, $db, $table) $html_output .= '<div id="gis_editor"></div><div id="popup_background"></div>' . '</fieldset>'; - echo $html_output; /** * Displays slider options form */ - PMA_tblSearchDisplaySliderOptions($fields_list, $fields_cnt); - $html_output = '</fieldset><br style="clear: both;"/></div></fieldset>'; + $html_output .= PMA_tblSearchGetSliderOptions($fields_list, $fields_cnt); /** * Displays selection form's footer elements |