}
}
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);
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>';
}
}
p {
color: #fff;
}
+p.comment, td.comment {
+ color: #aff;
+}
table {
border:1px gray solid;
}
}
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;
background-color: #39663e;
}
.row1, .data1 {
- background-color: #1a3f1e;
+ background-color: #2b482e;
text-align: left;
}
input, textarea, select {
color:#000;
}
.row2, .data2 {
- background-color: #2b482e;
+ background-color: #1a3f1e;
text-align: left;
}
td.opbutton1 {
.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 }