Home : Products : DBMan : Customization :

Products: DBMan: Customization: Re: [ewramos] Spreadsheet Format Display Mod: Edit Log

Here is the list of edits for this post
Re: [ewramos] Spreadsheet Format Display Mod
This may or may not be what's in the FAQ. There are a number of ways to accomplish the same thing.

Add the code in red below

Code:
print qq|
<TABLE><TR><TD>FieldName</TD><TD>FieldName</TD><TD>FieldName</TD><TD>FieldName</TD></TR>\n|;
$i = 0;
for (0 .. $numhits - 1) {
if ($i % 0) { print "<TR bgcolor=\"#FFFFFF\">"; }
else { print "<TR bgcolor=\"#CCCCCC\">"; }
&html_record (&array_to_hash($_, @hits));
print "</TR>\n";
++$i;
}
print "</TABLE>";



Change the colors to fit your preference.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.

Last edited by:

JPDeni: Jul 2, 2006, 7:24 PM

Edit Log: