1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-15 19:13:59 +02:00

Date format hint

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@977 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-08-18 09:36:32 +00:00
parent e3310672d2
commit 8073cfa641
12 changed files with 16 additions and 0 deletions

View File

@@ -315,6 +315,9 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5
if ($field["full_type"] == "tinyint(1)") { // bool
return '<input type="checkbox" value="' . h($value ? $value : 1) . '"' . ($value ? ' checked' : '') . "$attrs>";
}
if (ereg('date|timestamp', $field["type"])) {
return "<input value='" . h($value) . "'$attrs> (" . lang('yyyy-mm-dd') . ")"; //! maxlength
}
return '';
}