X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftable-grid.html;h=4d7deeaa4b698678f9ff3e0b47a71a77f26d0014;hb=6b4fe3354a905755f9e6f1810cf94bbc269ce81d;hp=80611f511dba1feb8d96ab3e0efaeae1003c32a3;hpb=386ec52836abbe32ce2fbf575e851a75f6e112f8;p=freeside.git diff --git a/httemplate/elements/table-grid.html b/httemplate/elements/table-grid.html index 80611f511..4d7deeaa4 100644 --- a/httemplate/elements/table-grid.html +++ b/httemplate/elements/table-grid.html @@ -1,8 +1,24 @@ - +
CELLPADDING=<% $opt{cellpadding} %> <% $opt{bgcolor} %> STYLE="border: 1px solid #cccccc;"> + +<%init> + +my %opt = @_; +$opt{cellspacing} ||= 0; +$opt{cellpadding} ||= 0; + +$opt{bgcolor} =~ s/^#//; +$opt{bgcolor} = 'BGCOLOR="#'. $opt{bgcolor}. '"' if length($opt{bgcolor}); + +