summaryrefslogtreecommitdiff
path: root/httemplate/elements/table-grid.html
blob: 4d7deeaa4b698678f9ff3e0b47a71a77f26d0014 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<STYLE TYPE="text/css">

.grid TH { padding-left: 3px; padding-right: 3px; padding-bottom: 2px; border: none; empty-cells: show }
.grid TD { padding-left: 3px; padding-right: 3px; padding-bottom: 2px; border: none; empty-cells: show }

.inv table { border: none }
.inv TH { border: none }
.inv TD { border: none }

</STYLE>

<TABLE CLASS="grid" CELLSPACING=<% $opt{cellspacing} %> 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});

</%init>