summaryrefslogtreecommitdiff
path: root/httemplate/search/elements/search.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/elements/search.html')
-rw-r--r--httemplate/search/elements/search.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html
index 6cf574164..3e689eba1 100644
--- a/httemplate/search/elements/search.html
+++ b/httemplate/search/elements/search.html
@@ -380,8 +380,7 @@
my $tableref = $_;
- '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0'.
- ' STYLE="border:none">'.
+ '<TABLE CLASS="inv" CELLSPACING=0 CELLPADDING=0>'.
join('', map {
@@ -393,7 +392,7 @@
my $element = $_;
- '<TD STYLE="border:none"'.
+ '<TD'.
( $element->{'align'}
? ' ALIGN="'. $element->{'align'}. '"'
: ''
@@ -432,6 +431,8 @@
) {
+ my $class = ( $field =~ /^<TABLE/i ) ? 'inv' : 'grid';
+
my $align = $aligns ? shift @$aligns : '';
$align = " ALIGN=$align" if $align;
@@ -471,7 +472,7 @@
}
%>
- <TD CLASS="grid" BGCOLOR="<%= $bgcolor %>"<%= $align %>><%= $font %><%= $a %><%= $s %><%= $field %><%= $es %><%= $a ? '</A>' : '' %><%= $font ? '</FONT>' : '' %></TD>
+ <TD CLASS="<%= $class %>" BGCOLOR="<%= $bgcolor %>"<%= $align %>><%= $font %><%= $a %><%= $s %><%= $field %><%= $es %><%= $a ? '</A>' : '' %><%= $font ? '</FONT>' : '' %></TD>
<% } %>
<% } else { %>
<% foreach ( @$row ) { %>