summaryrefslogtreecommitdiff
path: root/httemplate/elements/table-grid.html
diff options
context:
space:
mode:
authorivan <ivan>2007-08-01 22:26:52 +0000
committerivan <ivan>2007-08-01 22:26:52 +0000
commiteb4ff7f73c5d4bdf74a3472448b5a195598ff4cd (patch)
treebb38241e8c865c3bca861da7749071feeadd2b5b /httemplate/elements/table-grid.html
parent32b5d3a31f112a381f0a15ac5e3a2204242f3405 (diff)
event refactor, landing on HEAD!
Diffstat (limited to 'httemplate/elements/table-grid.html')
-rw-r--r--httemplate/elements/table-grid.html20
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>