mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Separate type_class
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@824 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -38,6 +38,18 @@ function process_type($field, $collate = "COLLATE") {
|
||||
;
|
||||
}
|
||||
|
||||
function type_class($type) {
|
||||
if (ereg('char|text', $type)) {
|
||||
return " class='char'";
|
||||
} elseif (ereg('date|time|year', $type)) {
|
||||
return " class='date'";
|
||||
} elseif (ereg('binary|blob', $type)) {
|
||||
return " class='binary'";
|
||||
} elseif (ereg('enum|set', $type)) {
|
||||
return " class='enum'";
|
||||
}
|
||||
}
|
||||
|
||||
function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $foreign_keys = array()) {
|
||||
global $inout;
|
||||
$column_comments = false;
|
||||
|
Reference in New Issue
Block a user