]> git.joonet.de Git - adminer.git/commitdiff
Align dates (Editor)
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 19 Nov 2009 09:29:06 +0000 (09:29 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 19 Nov 2009 09:29:06 +0000 (09:29 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1245 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/static/default.css
editor/include/adminer.inc.php

index 8e84697cd21d2ad2e25b3fe7c86e2c624c77d753..9dd813e23190e98c70a8fdf077f03881ee23995f 100644 (file)
@@ -31,6 +31,7 @@ tr:hover td, tr:hover th { background: #ddf; }
 .time { color: silver; font-size: 70%; float: right; margin-top: -3em; }
 .function { text-align: right; }
 .number { text-align: right; }
+.datetime { text-align: right; }
 .type { width: 15ex; width: auto\9; }
 #menu { position: absolute; margin: 10px 0 0; padding: 0 0 30px 0; top: 2em; left: 0; width: 19em; overflow: auto; overflow-y: hidden; white-space: nowrap; }
 #menu p { padding: .8em 1em; margin: 0; border-bottom: 1px solid #ccc; }
index 1d311772425335300acfa926e8c701243d8210ed..cfb2d1678779b65d00133f3f42fa375d38cdf6c6 100644 (file)
@@ -159,6 +159,8 @@ ORDER BY ORDINAL_POSITION");
                }
                if (!$link && $field["full_type"] != "tinyint(1)" && ereg('int|float|double|decimal', $field["type"])) {
                        $return = "<div class='number'>$return</div>"; // Firefox doesn't support <colgroup>
+               } elseif (ereg('date', $field["type"])) {
+                       $return = "<div class='datetime'>$return</div>";
                }
                return $return;
        }