Gossamer Forum
Home : Products : DBMan : Customization :

Column Mod Help

Quote Reply
Column Mod Help
I'm using the 2 Column Mod, but want to add empty "spacer" cells between the 2 columns. Can anyone help me? Thanks Smile

Code:


$i = 1;

$cols = 2; # Change this to the number of columns you want

print "<table width=\"95%\" cellpadding=3 cellspacing=0 border=0>";

for (0 .. $numhits - 1) {

unless ($_%$cols) {

print "<tr>";

}

&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>&nbsp;</td>";

}

print "</tr>\n";

}

print "</table>";