diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index c8db52c05..4ad91fee0 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -2291,15 +2291,16 @@ function PMA_externalBug($functionality, $component, $minimum_version, $bugref)
/**
- * Generates a set of radio HTML fields
+ * Generates and echoes a set of radio HTML fields
*
* @uses htmlspecialchars()
* @param string $html_field_name the radio HTML field
* @param array $choices the choices values and labels
* @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
*/
-function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '', $line_break = true) {
+function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '', $line_break = true, $escape_label = true) {
foreach ($choices as $choice_value => $choice_label) {
$html_field_id = $html_field_name . '_' . $choice_value;
echo '' . "\n";
- echo '';
+ echo '';
if ($line_break) {
echo '
';
}
diff --git a/tbl_structure.php b/tbl_structure.php
index 2d25bfb3d..c7f3ddb8d 100644
--- a/tbl_structure.php
+++ b/tbl_structure.php
@@ -500,17 +500,27 @@ if (! $tbl_is_view && ! $db_is_information_schema) {
echo '
';
}
echo sprintf($strAddFields, '');
- ?>
-
-
-';
+
+ $choices = array(
+ 'last' => $strAtEndOfTable,
+ 'first' => $strAtBeginningOfTable,
+ 'after' => sprintf($strAfter, $fieldOptions)
+ );
+ PMA_generate_html_radio('field_where', $choices, 'last', false, false);
+ unset($fieldOptions, $choices);
?>