mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
Time format hint (Editor)
This commit is contained in:
@@ -420,8 +420,15 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||
if (ereg("(tinyint|bit)\\(1\\)", $field["full_type"])) { // bool
|
||||
return '<input type="checkbox" value="' . h($value ? $value : 1) . '"' . ($value ? ' checked' : '') . "$attrs>";
|
||||
}
|
||||
$hint = "";
|
||||
if (ereg('time', $field["type"])) {
|
||||
$hint = lang('HH:MM:SS');
|
||||
}
|
||||
if (ereg('date|timestamp', $field["type"])) {
|
||||
return "<input value='" . h($value) . "'$attrs> (" . lang('[yyyy]-mm-dd') . ")"; //! maxlength
|
||||
$hint = lang('[yyyy]-mm-dd') . ($hint ? " [$hint]" : "");
|
||||
}
|
||||
if ($hint) {
|
||||
return "<input value='" . h($value) . "'$attrs> ($hint)"; //! maxlength
|
||||
}
|
||||
if (eregi('_(md5|sha1)$', $field["field"])) {
|
||||
return "<input type='password' value='" . h($value) . "'$attrs>";
|
||||
|
Reference in New Issue
Block a user