X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftable-grid.html;h=e1e6c36dcb44aac25a2c58e04ca836d777018e93;hb=3fc09b0e69ba395c452b636696c3576c9a762af6;hp=0f532e86b35c56411c9d0a614bf0a6023f7eaf84;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git diff --git a/httemplate/elements/table-grid.html b/httemplate/elements/table-grid.html index 0f532e86b..e1e6c36dc 100644 --- a/httemplate/elements/table-grid.html +++ b/httemplate/elements/table-grid.html @@ -1,10 +1,3 @@ -% -% 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} %> 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}); + +