theme improvement /19.01-04.02.2011/
authorTomasz Pala <gotar@polanet.pl>
Sun, 16 Jun 2013 22:04:22 +0000 (00:04 +0200)
committerJehan-Guillaume de Rorthais <ioguix@free.fr>
Sun, 17 Nov 2013 20:46:31 +0000 (21:46 +0100)
classes/Misc.php
tblproperties.php
themes/gotar/global.css

index cd22df8b2dbe3db31f1c2b57055e1c95096dc268..7db0ae6194b235af2d27779ad594bb3b6c35720b 100644 (file)
                                                                        }
                                                                }
                                                                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);
index e2a5d2e2a3c4e7a64784fb3f3ee171824b27e3d3..a68bf6185465c5c6405ac0e49e5c7517d8e198a1 100644 (file)
                                if ($c['p_field'] == $s)
                                        switch ($c['contype']) {
                                                case 'p':
-                                                       $str .= '<a href="constraints.php?'. $misc->href ."&amp;table=". urlencode($c['p_table']) ."&amp;schema=". urlencode($c['p_schema']) ."\"><img src=\"".
+                                                       $str .= '<a class="img" href="constraints.php?'. $misc->href ."&amp;table=". urlencode($c['p_table']) ."&amp;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 ."&amp;table=". urlencode($c['f_table']) ."&amp;schema=". urlencode($c['f_schema']) ."\"><img src=\"".
+                                                       $str .= '<a class="img" href="tblproperties.php?'. $misc->href ."&amp;table=". urlencode($c['f_table']) ."&amp;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 ."&amp;table=". urlencode($c['p_table']) ."&amp;schema=". urlencode($c['p_schema']) ."\"><img src=\"".
+                                                       $str .= '<a class="img" href="constraints.php?'. $misc->href ."&amp;table=". urlencode($c['p_table']) ."&amp;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 ."&amp;table=". urlencode($c['p_table']) ."&amp;schema=". urlencode($c['p_schema']) ."\"><img src=\"".
+                                                       $str .= '<a class="img" href="constraints.php?'. $misc->href ."&amp;table=". urlencode($c['p_table']) ."&amp;schema=". urlencode($c['p_schema']) ."\"><img src=\"".
                                                                $misc->icon('CheckConstraint') .'" alt="[check]" title="'. htmlentities($c['consrc'], ENT_QUOTES, 'UTF-8') .'" /></a>';
                                        }
                        }
index f15c75a725c9d40513b89d01cf3b6b7a9efbfb73..9de7a77f831fbaf489f1738e470744ce9015875e 100644 (file)
@@ -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 }