diff options
Diffstat (limited to 'httemplate/elements/table-grid.html')
-rw-r--r-- | httemplate/elements/table-grid.html | 20 |
1 files changed, 12 insertions, 8 deletions
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; -% -% - <STYLE TYPE="text/css"> .grid table { border: solid; empty-cells: show } @@ -17,5 +10,16 @@ </STYLE> -<TABLE CLASS="grid" CELLSPACING=<% $opt{cellspacing} %> CELLPADDING=<% $opt{cellpadding} %> BORDER=1 BORDERCOLOR="#000000" STYLE="border: solid 1px black; empty-cells: show"> +<TABLE CLASS="grid" CELLSPACING=<% $opt{cellspacing} %> 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}); + +</%init> |