mirror of
https://github.com/vrana/adminer.git
synced 2025-12-29 11:50:46 +01:00
Use CSS to highlight odd rows
This commit is contained in:
@@ -14,10 +14,10 @@ class AdminerTableStructure {
|
||||
*/
|
||||
function tableStructurePrint($fields) {
|
||||
echo "<div class='scrollable'>\n";
|
||||
echo "<table cellspacing='0' class='nowrap'>\n";
|
||||
echo "<table cellspacing='0' class='nowrap odds'>\n";
|
||||
echo "<thead><tr><th>" . lang('Column') . "<th>" . lang('Type') . "<th>" . lang('Nullable') . "<th>" . lang('Default') . (support("comment") ? "<th>" . lang('Comment') : "") . "</thead>\n";
|
||||
foreach ($fields as $field) {
|
||||
echo "<tr" . odd() . "><th>" . h($field["field"]) . ($field["primary"] ? " (PRIMARY)" : "");
|
||||
echo "<tr><th>" . h($field["field"]) . ($field["primary"] ? " (PRIMARY)" : "");
|
||||
echo "<td><span>" . h($field["full_type"]) . "</span>";
|
||||
echo ($field["auto_increment"] ? " <i>" . lang('Auto Increment') . "</i>" : "");
|
||||
echo ($field["collation"] ? " <i>" . h($field["collation"]) . "</i>" : "");
|
||||
|
||||
Reference in New Issue
Block a user