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