# print include files for SSI sub printIncludes { for my $incHandle ( keys %anchors ) { for my $status ( keys %{ $anchors{$incHandle} } ) { print $incHandle "@{ $anchors{$incHandle}{$status} }\n"; } } }
which creates a table like this. I'm stuck trying to modify this sub to print one column for each distinct color(status) found in %anchors.
%anchors gets populated like this:
# Hash of colors my %colors = ( active => "#005154", failed => "#ff0000", queued => "#622188", partial => "#ffb90f", success => "#00ff00" ); # Hash of titles my %titles = ( active => "Active Jobs", failed => "Failed Jobs", queued => "Queued Jobs", partial => "Partially Successful Jobs", success => "Successful Jobs" ); $incString = "<tr><td align=\"center\"><a href=\"\#$class\.$titles{$status}\"><font + color=\"$colors{$status}\">$class</a></font></td></tr>"; push ( @{ $anchors{$incHandle}{$status} }, $incString );
As per usual, any assistance is greatly appreciated. ~ ~ ~
In reply to Dynamic HTML table Creation by blink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |