Gossamer Forum
Home : Products : DBMan : Installation :

Short in Table

Quote Reply
Short in Table
How can I put the results from the short view in a table form and made it looks nice? (in column's)
Quote Reply
Re: Short in Table In reply to
Hey mart,
Umm do mean only 1 BIG TABLE or in just in regular tables?
There is a mod available that I found following the Gossamer Threads "LINKS" script. Alex has made a new section which will link you to this mod which is available at another site. I tried pasting from the html that I saved but it turned into gibberish sorry Frown
If not just play with html.pl and make your own table.
Quote Reply
Re: Short in Table In reply to
Here's a cut and paste view of my short list:

# How a record will be displayed. This is used primarily in
# returning search results and how it is formatted. The record to
# be displayed will be in the %rec hash.

my (%rec) = @_; # Load any defaults to put in the VALUE field.
($db_auto_generate and print &build_html_record(%rec) and return);

print qq|<center>
<table width="550" cellpadding="4" cellspacing="1" border="0">
<td valign=middle width="70" bgcolor="#FFFFE1">
<a href="$db_script_link_url&ww=on&$db_key=$rec{$db_key}&view_records=1">$rec{'sequence'}</a></td>
<td width="100" bgcolor="DEEFEF"> $rec{'date'}</td><td width="100" bgcolor="DEEFEF">$rec{'window'}</td>
<td width="100" bgcolor="DEEFEF"> $rec{'status'}</td>
<td width="100" bgcolor="DEEFEF">$rec{'ID'}</td></tr>
</table></center><center>
<table width="550" cellpadding="4" cellspacing="1" border="0">
<tr align=left valign=middle bgcolor="#d0d9d9">
<td>$rec{'equipment'}</td></tr>
</table></center>
|;
}

It displays 4 records on one row in one table, then one record in second table in one row. This way the second table shows nothing if no data was entered. Its a different color as well to highlight it exists.

Hope that helps Smile

------------------
there are no problems, only solutions waiting to happen.