diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 4ad91fee0..293809584 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2299,9 +2299,13 @@ function PMA_externalBug($functionality, $component, $minimum_version, $bugref) * @param string $checked_choice the choice to check by default * @param boolean $line_break whether to add an HTML line break after a choice * @param boolean $escape_label whether to use htmlspecialchars() on label + * @param string $class enclose each choice with a div of this class */ -function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '', $line_break = true, $escape_label = true) { +function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '', $line_break = true, $escape_label = true, $class='') { foreach ($choices as $choice_value => $choice_label) { + if (! empty($class)) { + echo '
'; + } $html_field_id = $html_field_name . '_' . $choice_value; echo ''; } + if (! empty($class)) { + echo '
'; + } echo "\n"; } } diff --git a/tbl_select.php b/tbl_select.php index eaf4d36f0..c5ba84f4e 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -304,16 +304,14 @@ while (list($operator) = each($GLOBALS['cfg']['UnaryOperators'])) { } // end for ?> - -
- - -
- -
- - -
+ $strAscending, + 'DESC' => $strDescending + ); + PMA_generate_html_radio('order', $choices, 'ASC', false, true, "formelement"); + unset($choices); +?>