diff --git a/adminer/create.inc.php b/adminer/create.inc.php index 187addce..9fbf5d8f 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -164,7 +164,7 @@ foreach ($engines as $engine) { : " autocapitalize="off"> -" . optionlist(array("" => "(" . lang('engine') . ")") + $engines, $row["Engine"]) . "" . script("qsl('select').onchange = helpClose;") : ""); ?> +" . optionlist(array("" => "(" . lang('engine') . ")") + $engines, $row["Engine"]) . "" . on_help("getTarget(event).value", 1) . script("qsl('select').onchange = helpClose;") : ""); ?> "(" . lang('collation') . ")") + $collations, $row["Collation"]) : ""); ?> @@ -205,7 +205,7 @@ if (support("partitioning")) { print_fieldset("partition", lang('Partition by'), $row["partition_by"]); ?>

-" . optionlist(array("" => "") + $partition_by, $row["partition_by"]) . "" . script("qsl('select').onchange = partitionByChange;"); ?> +" . optionlist(array("" => "") + $partition_by, $row["partition_by"]) . "" . on_help("getTarget(event).value.replace(/./, 'PARTITION BY \$&')", 1) . script("qsl('select').onchange = partitionByChange;"); ?> (">) : " value=""> > diff --git a/adminer/db.inc.php b/adminer/db.inc.php index 17966547..0db84e26 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -118,17 +118,17 @@ if ($adminer->homepage()) { echo "\n"; if (!information_schema(DB)) { - $vacuum = " "; - $optimize = " "; + $vacuum = " " . on_help("'VACUUM'"); + $optimize = " " . on_help($jush == "sql" ? "'OPTIMIZE TABLE'" : "'VACUUM OPTIMIZE'"); echo "

" . lang('Selected') . "
" . ($jush == "sqlite" ? $vacuum : ($jush == "pgsql" ? $vacuum . $optimize - : ($jush == "sql" ? " " . $optimize - . " " - . " " + : ($jush == "sql" ? " " . on_help("'ANALYZE TABLE'") . $optimize + . " " . on_help("'CHECK TABLE'") + . " " . on_help("'REPAIR TABLE'") : ""))) - . " " . confirm() - . "" . confirm() . "\n"; + . " " . on_help($jush == "sqlite" ? "'DELETE'" : "'TRUNCATE" . ($jush == "pgsql" ? "'" : " TABLE'")) . confirm() + . "" . on_help("'DROP TABLE'") . confirm() . "\n"; $databases = (support("scheme") ? $adminer->schemas() : $adminer->databases()); if (count($databases) != 1 && $jush != "sqlite") { $db = (isset($_POST["target"]) ? $_POST["target"] : (support("scheme") ? $_GET["ns"] : DB)); diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 8ec7a326..7f0143c0 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -319,8 +319,9 @@ class Adminer { $val["col"], ($key !== "" ? "selectFieldChange" : "selectAddRow") ); - echo "
" . ($functions || $grouping ? "" + echo "
" . ($functions || $grouping ? "" + . on_help("getTarget(event).value && getTarget(event).value.replace(/ |\$/, '(') + ')'", 1) . script("qsl('select').onchange = function () { helpClose();" . ($key !== "" ? "" : " this.nextSibling.nextSibling.nextSibling.onchange();") . " };", "") . "($column)" : $column) . "
\n"; $i++; diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php index 4cae2c70..1e30c48a 100644 --- a/adminer/include/editing.inc.php +++ b/adminer/include/editing.inc.php @@ -141,7 +141,7 @@ function edit_type($key, $field, $collations, $foreign_keys = array()) { global $structured_types, $types, $unsigned, $on_actions; $type = $field["type"]; ?> - + " size="3" onfocus="editingLengthFocus.call(this);" onchange="editingLengthChange.call(this);" onkeyup="this.onchange();" aria-labelledby="label-length">