X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftable-grid.html;h=4d7deeaa4b698678f9ff3e0b47a71a77f26d0014;hb=b412c2545d8862278343adc1ef17cc297e11ad6d;hp=fd1cb9113b28733ba8b3c130666040602dcbbca6;hpb=a0732f52fdcc2bca7c399d1249ccceb191de51cd;p=freeside.git diff --git a/httemplate/elements/table-grid.html b/httemplate/elements/table-grid.html index fd1cb9113..4d7deeaa4 100644 --- a/httemplate/elements/table-grid.html +++ b/httemplate/elements/table-grid.html @@ -1,14 +1,7 @@ -<% - my %opt = @_; - $opt{cellspacing} ||= 0; - $opt{cellpadding} ||= 0; - -%> - CELLPADDING=<%= $opt{cellpadding} %> BORDER=1 BORDERCOLOR="#000000" STYLE="border: solid 1px black; empty-cells: show"> +
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}); + +