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

Display default column value in tooltip (thanks to bene)

This commit is contained in:
Jakub Vrana
2011-06-01 10:48:07 +02:00
parent 00342a1532
commit ea4eba4761
2 changed files with 3 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ if ($fields) {
echo "<table cellspacing='0'>\n";
echo "<thead><tr><th>" . lang('Column') . "<td>" . lang('Type') . (support("comment") ? "<td>" . lang('Comment') : "") . "</thead>\n";
foreach ($fields as $field) {
echo "<tr" . odd() . "><th>" . h($field["field"]);
echo "<tr" . odd() . "><th title='" . h($field["default"] !== "" ? $field["default"] : " ") . "'>" . h($field["field"]);
echo "<td>" . h($field["full_type"]) . ($field["null"] ? " <i>NULL</i>" : "") . ($field["auto_increment"] ? " <i>" . lang('Auto Increment') . "</i>" : "");
echo (support("comment") ? "<td>" . nbsp($field["comment"]) : "");
echo "\n";