mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 06:37:33 +02:00
Avoid <optgroup> in <datalist>
This commit is contained in:
@@ -168,6 +168,9 @@ if (!$_POST) {
|
||||
}
|
||||
|
||||
$collations = collations();
|
||||
if (is_array(reset($collations))) {
|
||||
$collations = call_user_func_array('array_merge', array_values($collations));
|
||||
}
|
||||
$engines = $driver->engines();
|
||||
// case of engine may differ
|
||||
foreach ($engines as $engine) {
|
||||
@@ -185,7 +188,7 @@ if (support("columns") || $TABLE == "") {
|
||||
echo lang('Table name') . ": <input name='name'" . ($TABLE == "" && !$_POST ? " autofocus" : "") . " data-maxlength='64' value='" . h($row["name"]) . "' autocapitalize='off'>\n";
|
||||
echo ($engines ? html_select("Engine", array("" => "(" . lang('engine') . ")") + $engines, $row["Engine"]) . on_help("event.target.value", 1) . script("qsl('select').onchange = helpClose;") . "\n" : "");
|
||||
if ($collations) {
|
||||
echo "<datalist id='collations'>" . optionlist($collations) . "</datalist>";
|
||||
echo "<datalist id='collations'>" . optionlist($collations) . "</datalist>\n";
|
||||
echo (preg_match("~sqlite|mssql~", JUSH) ? "" : "<input list='collations' name='Collation' value='" . h($row["Collation"]) . "' placeholder='(" . lang('collation') . ")'>");
|
||||
}
|
||||
echo "<input type='submit' value='" . lang('Save') . "'>\n";
|
||||
|
Reference in New Issue
Block a user