567679 Perl Script Mod... changing the way it outputs tables
N/A
In Progress
Posted almost 12 years ago
N/A
Paid on delivery
I have a new project that requires a perl script modification.....
currently the script reads a flat csv file and returns results in a html table.... variables set in Lines 39-47
in this script I have it set to make 4 colums per row (line 40)
and each "result" is in a column cell, after each other... once it gets to the 5th result it makes a new row.... the 9th result a new row and so on...
works fine, but I need more flexibility... I have a customer who wants a vertical line between each result like in this example ([login to view URL])
so I need a need the script to modify how it writes the table.... I need variable that will insert an empty cell between the ones that show results and also set that cell with a background image of a rule line...
I want to have these settings controllable as variables so I can change the output as I see fit
I also want to have a horizontal rule in between the rows as well
I am not a programmer but this is how I imagine the variables looking (last 4 lines starts with "NEW---")
##########################################################
# Advanced Settings Columns
my $use_columns = 1;
my $columns = 4;
my $tableWidth ="1000";
my $tableBorder = 0;
my $tableCellpadding = 0;
my $tableCellspacing = 25;
my $tableStyle = "";
my $tableBorderColor = "";
my $tableBgColor = "";
NEW---my $use_ColumnDivider = 1; ( 1=yes 0=no)
NEW---my $ColumnDivider = ./[login to view URL]
NEW---my $use_RowDivider = 1; ( 1=yes 0=no)
NEW---my $RowDivider = ./[login to view URL]
##########################################################
don't know about the "real programming" that needs to be done in the script but I suspect it is somewhere around line 381
I have attached 2 scripts that i currently use that are very simular...