Gossamer Forum
Home : Products : DBMan : Customization :

Column Record Display - alignment

Quote Reply
Column Record Display - alignment
I have installed the Column Record Display no problem...easy install.
I am having problems though with the records that display and assigning a cell alignment to them e.g., Valign=top (or bottom)'
seems only "unused" cells will hold the formatting, but used cells dont.
Here is my slightly modified MOD that isn't workin. (bold is my addition)
also, using short display with 3 columns set. thanks in advance

$i = 1;
$cols = 3; # Change this to the number of columns you want
print "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#000000>";
for (0 .. $numhits - 1) {
unless ($_%$cols) {
print "<TD valign=bottom>";
}
&html_record (&array_to_hash($_, @hits));
if ($_%$cols==($cols-1)) {
print "</tr>\n";
}
++$i;
}
if ($numhits%$cols) {
for ($j=($cols-1);$j>=$numhits%$cols ;$j--) {
print "<TD valign=bottom></td>";
}
print "</tr>\n";
}
print "</table>";
POC Web Services - www.POC.us
Quote Reply
Re: [lostboy] Column Record Display - alignment In reply to
Are you saying you ARE using the short/long display for you db setup? If so, the instructions are a little different than what I see with your codes.

I would check over your code after you open the table and be sure to also add after

print "<table border=0 cellspacing=0 cellpadding=0 bgcolor=#000000>";

print "<tr>";

and see if that makes a difference. In case of empty cells it might be a good idea to also include a non-breakng space in this part of the code:

<TD valign=bottom>&nbsp;</td>

Hope that helps

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/