Gossamer Forum
Home : Products : DBMan : Customization :

Header for short/long display

Quote Reply
Header for short/long display
I am using the short/long display, works fine but I would like to have a static header over the top of each column. Like a title row in a spread sheet.

Any thoughts.

Thanks


Sean

------------------
Quote Reply
Re: Header for short/long display In reply to
There is a Mod in the Resource Center that does this...called something like Table Row Mod.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Header for short/long display In reply to
There's another simple method that I use within sub html_view_success.

Just look for the matching lines and insert your column names like the example shown.

print qq|<p><$font>Your search returned <b>$db_total_hits</b> matches.</font><P>|;
if ($db_next_hits) { print "<br><$font>Pages: $db_next_hits</font>"; }
$i = 1;
########## column headings ##############
print "<CENTER><table width=460><TR><TD><$font_tiny>AD ID</font></TD><TD><$font_tiny>Title</font></TD>";
print "<TD><$font_tiny>Year Make/Model</font></TD><TD><$font_tiny>Price</font></TD><TD><$font_tiny>Posted</font>&l t;/TD></TR>";
print "<TR><TD colspan=6>$db_line</TD></TR></TABLE></CENTER>";
########## end column headings ############
print "<CENTER><table width=460>";
for (0 .. $numhits - 1) {

print "<tr>";
&html_record (&array_to_hash($_, @hits));
print "</tr>";
++$i;


Please note the $db_line is a graphic line defined in my .cfg file which creates a nice separator line.

Hope this provides what you are looking for.