Support multi-line table comments
This commit is contained in:
parent
473f7264f8
commit
2dd65f0c0f
|
@ -185,11 +185,17 @@ edit_fields($row["fields"], $collations, "TABLE", $foreign_keys);
|
||||||
<p>
|
<p>
|
||||||
<?php echo lang('Auto Increment'); ?>: <input type="number" name="Auto_increment" size="6" value="<?php echo h($row["Auto_increment"]); ?>">
|
<?php echo lang('Auto Increment'); ?>: <input type="number" name="Auto_increment" size="6" value="<?php echo h($row["Auto_increment"]); ?>">
|
||||||
<?php echo checkbox("defaults", 1, ($_POST ? $_POST["defaults"] : adminer_setting("defaults")), lang('Default values'), "columnShow(this.checked, 5)", "jsonly"); ?>
|
<?php echo checkbox("defaults", 1, ($_POST ? $_POST["defaults"] : adminer_setting("defaults")), lang('Default values'), "columnShow(this.checked, 5)", "jsonly"); ?>
|
||||||
<?php echo (support("comment")
|
<?php
|
||||||
? checkbox("comments", 1, ($_POST ? $_POST["comments"] : adminer_setting("comments")), lang('Comment'), "editingCommentsClick(this, true);", "jsonly")
|
$comments = ($_POST ? $_POST["comments"] : adminer_setting("comments"));
|
||||||
. ' <input name="Comment" value="' . h($row["Comment"]) . '" data-maxlength="' . (min_version(5.5) ? 2048 : 60) . '">'
|
echo (support("comment")
|
||||||
|
? checkbox("comments", 1, $comments, lang('Comment'), "editingCommentsClick(this, true);", "jsonly")
|
||||||
|
. ' ' . (preg_match('~\n~', $row["Comment"])
|
||||||
|
? "<textarea name='Comment' rows='2' cols='20'" . ($comments ? "" : " class='hidden'") . ">" . h($row["Comment"]) . "</textarea>"
|
||||||
|
: '<input name="Comment" value="' . h($row["Comment"]) . '" data-maxlength="' . (min_version(5.5) ? 2048 : 60) . '"' . ($comments ? "" : " class='hidden'") . '>'
|
||||||
|
)
|
||||||
: '')
|
: '')
|
||||||
; ?>
|
;
|
||||||
|
?>
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" value="<?php echo lang('Save'); ?>">
|
<input type="submit" value="<?php echo lang('Save'); ?>">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
Adminer 4.8.2-dev:
|
Adminer 4.8.2-dev:
|
||||||
|
Support multi-line table comments
|
||||||
MySQL: Use ST_SRID() instead of SRID() for MySQL 8 (PR #418)
|
MySQL: Use ST_SRID() instead of SRID() for MySQL 8 (PR #418)
|
||||||
PostgreSQL PDO: Allow editing rows identified by boolean column (PR #380)
|
PostgreSQL PDO: Allow editing rows identified by boolean column (PR #380)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue