1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Display edit form after error in clone or multi-edit

This commit is contained in:
Jakub Vrana
2014-02-24 23:59:12 -08:00
parent 9567e5cb1a
commit 7da82a12a6
4 changed files with 21 additions and 20 deletions

View File

@@ -1249,14 +1249,26 @@ function on_help($command, $side = 0) {
}
/** Print edit data form
* @param string
* @param array
* @param mixed
* @param bool
* @return null
*/
function edit_form($fields, $row, $update) {
global $adminer, $jush, $token;
function edit_form($TABLE, $fields, $row, $update) {
global $adminer, $jush, $token, $error;
$table_name = $adminer->tableName(table_status1($TABLE, true));
page_header(
($update ? lang('Edit') : lang('Insert')),
$error,
array("select" => array($TABLE, $table_name)),
$table_name
);
if ($row === false) {
echo "<p class='error'>" . lang('No rows.') . "\n";
}
?>
<div id="message"></div>
<form action="" method="post" enctype="multipart/form-data" id="form">
<?php
if (!$fields) {