Switch to using bgcolor instead of a border

This commit is contained in:
Miles Lott 2001-05-05 03:20:47 +00:00
parent b0de1c375c
commit b9e5de3b85
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<!-- BEGIN view_row.tpl -->
<tr>
<tr bgcolor="{th_bg}">
<td align="right" width="30%"><b>{display_col}</b>:</td><td width="70%">{ref_data}</td>
</tr>
<!-- END view_row.tpl -->

View File

@ -124,6 +124,8 @@
$ref = $data = "";
if ($fields[0][$column])
{
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
$t->set_var('th_bg',$tr_color);
$coldata = $fields[0][$column];
// Some fields require special formatting.
if ( ($column == "note" || $column == "label" || $column == "pubkey") && $coldata )
@ -135,7 +137,7 @@
{
if ($key)
{
$data .= "</td></tr><tr><td width=\"30%\">&nbsp;</td><td width=\"70%\">" .$info;
$data .= '</td></tr><tr bgcolor="'.$tr_color.'"><td width="30%">&nbsp;</td><td width="70%">' .$info;
}
else
{ // First row, don't close td/tr