summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorivan <ivan>2006-09-04 20:31:22 +0000
committerivan <ivan>2006-09-04 20:31:22 +0000
commit01d90ee58ee915b838fe3fe4d7f2c472af238429 (patch)
tree33864f17a701e994c868973911fa8f35499a8052 /httemplate/search
parent4f030638a8b77faf4a674958bed60410378f4db9 (diff)
really fix the embedded duration table
Diffstat (limited to 'httemplate/search')
-rw-r--r--httemplate/search/sqlradius.cgi13
1 files changed, 7 insertions, 6 deletions
diff --git a/httemplate/search/sqlradius.cgi b/httemplate/search/sqlradius.cgi
index 1a19ef762..486b94d94 100644
--- a/httemplate/search/sqlradius.cgi
+++ b/httemplate/search/sqlradius.cgi
@@ -65,13 +65,14 @@
<TR>
% foreach my $field ( keys %efields ) {
+% my $html = &{ $efields{$field}->{fmt} }( $session->{$field},
+% $session,
+% $part_export,
+% );
+% my $class = ( $html =~ /<TABLE/ ? 'inv' : 'grid' );
- <TD CLASS="grid" BGCOLOR="<% $bgcolor %>" ALIGN="<% $efields{$field}->{align} %>">
- <% &{ $efields{$field}->{fmt} }( $session->{$field},
- $session,
- $part_export,
- )
- %>
+ <TD CLASS="<%$class%>" BGCOLOR="<% $bgcolor %>" ALIGN="<% $efields{$field}->{align} %>">
+ <% $html %>
</TD>
% }
</TR>