Name Edit button on select.inc.php
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@817 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
f973fdabaf
commit
3c860b7859
|
@ -39,8 +39,7 @@ if (isset($_GET["download"])) {
|
||||||
// edit form is used for default values and distinguished by checking isset($_GET["default"]) in edit.inc.php
|
// edit form is used for default values and distinguished by checking isset($_GET["default"]) in edit.inc.php
|
||||||
$_GET["edit"] = $_GET["default"];
|
$_GET["edit"] = $_GET["default"];
|
||||||
}
|
}
|
||||||
if (isset($_GET["select"]) && $_POST && (!$_POST["delete"] && !$_POST["export"] && !$_POST["import"] && !$_POST["save"] && !$_POST["email"])) {
|
if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
|
||||||
// POST form on select page is used to edit or clone data
|
|
||||||
$_GET["edit"] = $_GET["select"];
|
$_GET["edit"] = $_GET["select"];
|
||||||
}
|
}
|
||||||
if (isset($_GET["callf"])) {
|
if (isset($_GET["callf"])) {
|
||||||
|
|
|
@ -327,7 +327,7 @@ if (!$columns) {
|
||||||
}
|
}
|
||||||
echo " (" . lang('%d row(s)', $found_rows) . ') <label><input type="checkbox" name="all" value="1">' . lang('whole result') . "</label>\n";
|
echo " (" . lang('%d row(s)', $found_rows) . ') <label><input type="checkbox" name="all" value="1">' . lang('whole result') . "</label>\n";
|
||||||
|
|
||||||
echo (information_schema($_GET["db"]) ? "" : "<fieldset><legend>" . lang('Edit') . "</legend><div><input type='submit' value='" . lang('Edit') . "'> <input type='submit' name='clone' value='" . lang('Clone') . "'> <input type='submit' name='delete' value='" . lang('Delete') . "'$confirm></div></fieldset>\n");
|
echo (information_schema($_GET["db"]) ? "" : "<fieldset><legend>" . lang('Edit') . "</legend><div><input type='submit' name='edit' value='" . lang('Edit') . "'> <input type='submit' name='clone' value='" . lang('Clone') . "'> <input type='submit' name='delete' value='" . lang('Delete') . "'$confirm></div></fieldset>\n");
|
||||||
echo "<fieldset><legend>" . lang('Export') . "</legend><div>$dump_output $dump_format <input type='submit' name='export' value='" . lang('Export') . "'></div></fieldset>\n";
|
echo "<fieldset><legend>" . lang('Export') . "</legend><div>$dump_output $dump_format <input type='submit' name='export' value='" . lang('Export') . "'></div></fieldset>\n";
|
||||||
}
|
}
|
||||||
$result->free();
|
$result->free();
|
||||||
|
|
|
@ -23,8 +23,7 @@ if (isset($_GET["download"])) {
|
||||||
// posted form with no data means exceeded post_max_size because Adminer always sends token at least
|
// posted form with no data means exceeded post_max_size because Adminer always sends token at least
|
||||||
$error = lang('Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.');
|
$error = lang('Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.');
|
||||||
}
|
}
|
||||||
if (isset($_GET["select"]) && $_POST && (!$_POST["delete"] && !$_POST["export"] && !$_POST["import"] && !$_POST["save"] && !$_POST["email"])) {
|
if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
|
||||||
// POST form on select page is used to edit or clone data
|
|
||||||
$_GET["edit"] = $_GET["select"];
|
$_GET["edit"] = $_GET["select"];
|
||||||
}
|
}
|
||||||
if (isset($_GET["edit"])) {
|
if (isset($_GET["edit"])) {
|
||||||
|
|
Loading…
Reference in a new issue