diff options
author | Tomasz Pala | 2013-06-16 22:04:22 +0000 |
---|---|---|
committer | Jehan-Guillaume de Rorthais | 2013-11-17 20:46:31 +0000 |
commit | f827234fa969a5ebec8ada9969346c51cf2ee499 (patch) | |
tree | a8f585d478cf47f82e8f726e6241648bf63bcbc7 | |
parent | dfcf70ee21e0ca1520a22df5a7fd7aeb928075d8 (diff) |
theme improvement /19.01-04.02.2011/
-rw-r--r-- | classes/Misc.php | 8 | ||||
-rw-r--r-- | tblproperties.php | 8 | ||||
-rw-r--r-- | themes/gotar/global.css | 10 |
3 files changed, 19 insertions, 7 deletions
diff --git a/classes/Misc.php b/classes/Misc.php index cd22df8b..7db0ae61 100644 --- a/classes/Misc.php +++ b/classes/Misc.php @@ -1971,6 +1971,14 @@ } } break; + case 'comment': + echo "<td class='comment'>"; + $val = value($column['field'], $tabledata->fields); + if (!is_null($val)) { + echo $val; + } + echo "</td>"; + break; default: echo "<td>"; $val = value($column['field'], $tabledata->fields); diff --git a/tblproperties.php b/tblproperties.php index e2a5d2e2..a68bf618 100644 --- a/tblproperties.php +++ b/tblproperties.php @@ -521,19 +521,19 @@ if ($c['p_field'] == $s) switch ($c['contype']) { case 'p': - $str .= '<a href="constraints.php?'. $misc->href ."&table=". urlencode($c['p_table']) ."&schema=". urlencode($c['p_schema']) ."\"><img src=\"". + $str .= '<a class="img" href="constraints.php?'. $misc->href ."&table=". urlencode($c['p_table']) ."&schema=". urlencode($c['p_schema']) ."\"><img src=\"". $misc->icon('PrimaryKey') .'" alt="[pk]" title="'. htmlentities($c['consrc'], ENT_QUOTES, 'UTF-8') .'" /></a>'; break; case 'f': - $str .= '<a href="tblproperties.php?'. $misc->href ."&table=". urlencode($c['f_table']) ."&schema=". urlencode($c['f_schema']) ."\"><img src=\"". + $str .= '<a class="img" href="tblproperties.php?'. $misc->href ."&table=". urlencode($c['f_table']) ."&schema=". urlencode($c['f_schema']) ."\"><img src=\"". $misc->icon('ForeignKey') .'" alt="[fk]" title="'. htmlentities($c['consrc'], ENT_QUOTES, 'UTF-8') .'" /></a>'; break; case 'u': - $str .= '<a href="constraints.php?'. $misc->href ."&table=". urlencode($c['p_table']) ."&schema=". urlencode($c['p_schema']) ."\"><img src=\"". + $str .= '<a class="img" href="constraints.php?'. $misc->href ."&table=". urlencode($c['p_table']) ."&schema=". urlencode($c['p_schema']) ."\"><img src=\"". $misc->icon('UniqueConstraint') .'" alt="[uniq]" title="'. htmlentities($c['consrc'], ENT_QUOTES, 'UTF-8') .'" /></a>'; break; case 'c': - $str .= '<a href="constraints.php?'. $misc->href ."&table=". urlencode($c['p_table']) ."&schema=". urlencode($c['p_schema']) ."\"><img src=\"". + $str .= '<a class="img" href="constraints.php?'. $misc->href ."&table=". urlencode($c['p_table']) ."&schema=". urlencode($c['p_schema']) ."\"><img src=\"". $misc->icon('CheckConstraint') .'" alt="[check]" title="'. htmlentities($c['consrc'], ENT_QUOTES, 'UTF-8') .'" /></a>'; } } diff --git a/themes/gotar/global.css b/themes/gotar/global.css index f15c75a7..9de7a77f 100644 --- a/themes/gotar/global.css +++ b/themes/gotar/global.css @@ -16,6 +16,9 @@ body { p { color: #fff; } +p.comment, td.comment { + color: #aff; +} table { border:1px gray solid; } @@ -57,6 +60,7 @@ th.data { } th.data a:active, th.data a:link, th.data a:visited, th.data a:hover { font-weight: bold; + display:block; } td.dat { color: #ff0; @@ -86,7 +90,7 @@ tr.data1:hover, tr.data2:hover, tr.data3:hover { background-color: #39663e; } .row1, .data1 { - background-color: #1a3f1e; + background-color: #2b482e; text-align: left; } input, textarea, select { @@ -116,7 +120,7 @@ p input:focus, .data input:focus, .data1 input:focus, .data2 input:focus, textar color:#000; } .row2, .data2 { - background-color: #2b482e; + background-color: #1a3f1e; text-align: left; } td.opbutton1 { @@ -162,7 +166,7 @@ table.tabs { .tabs .active {background-color: #449} .tab .icon {display: block} tr,td { height:100% } -td a:not(.help), th a { display:inline-block; height:100% } /* vertical-align:middle doesn't work for block elements, CSS sux */ +td a:not(.help):not(.img), th a { display:inline-block; height:100% } /* vertical-align:middle doesn't work for block elements, CSS sux */ td.crumb a, td.tab a { width:90% } tr.data1 a, tr.data2 a { width:100% } td.opbutton1 a, td.opbutton2 a { width:inherit } |