support ROW_FORMAT and PAGE_CHECKSUM table option; verify warnings coming from ALTER TABLE

This commit is contained in:
Marc Delisle
2008-03-21 13:38:23 +00:00
parent d7e690e069
commit 32bb3ab273
5 changed files with 69 additions and 4 deletions

View File

@@ -2328,6 +2328,29 @@ function PMA_generate_html_radio($html_field_name, $choices, $checked_choice = '
}
}
/**
* Generates and echoes an HTML dropdown
*
* @uses htmlspecialchars()
* @param string $select_name
* @param array $choices the choices values
* @param string $active_choice the choice to select by default
* @todo support titles
*/
function PMA_generate_html_dropdown($select_name, $choices, $active_choice)
{
$result = '<select name="' . htmlspecialchars($select_name) . '" id="' . htmlspecialchars($select_name) . '">"' . "\n";
foreach ($choices as $one_choice) {
$result .= '<option value="' . htmlspecialchars($one_choice) . '"';
if ($one_choice == $active_choice) {
$result .= ' selected="selected"';
}
$result .= '>' . htmlspecialchars($one_choice) . '</option>' . "\n";
}
$result .= '</select>' . "\n";
echo $result;
}
/**
* Generates a slider effect (Mootools)
*