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