Gossamer Forum
Home : Products : DBMan : Customization :

Spreadsheet Format Display Mod

Quote Reply
Spreadsheet Format Display Mod
Anyone have an idea as to how to implement a feature that would alternatly 'shade' rows in this mod?

I'm not a programmer so make it simple.

I'm trying to snazzup the look of this table display mod.

I am new to dbman but from what little I have done with it, WOW... Short of a SQL DB app this is a great little tool.
Quote Reply
Re: [ewramos] Spreadsheet Format Display Mod In reply to
If you visit the DBMan FAQ and search for "colors" you'll come up with some thread which will provide the solution you are looking for.

Just click on the link below to visit the FAQ.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [ewramos] Spreadsheet Format Display Mod In reply to
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
Quote Reply
Re: [LoisC] Spreadsheet Format Display Mod In reply to
Thanks for the pointer. I was able to implement the mod suggested by LoisC. I tried the code offered by JPDeni but wasn't able to get it to work.

F.Y.I., I am using the flat file version of dbman.

Last edited by:

ewramos: Jul 2, 2006, 4:43 PM
Quote Reply
Re: [ewramos] Spreadsheet Format Display Mod In reply to
That's because I didn't have the code right. Sorry. It's right now, in case anyone else comes by.


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