1
0
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:
jakubvrana
2009-07-14 08:45:24 +00:00
parent acaa05d887
commit 3015aed76b
2 changed files with 13 additions and 13 deletions

View File

@@ -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;