From eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 1 Aug 2007 22:26:52 +0000 Subject: event refactor, landing on HEAD! --- httemplate/elements/table-grid.html | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'httemplate/elements/table-grid.html') 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}); + + -- cgit v1.2.1