[freeside-commits] freeside/httemplate/search/elements search.html, 1.22, 1.23

Ivan,,, ivan at wavetail.420.am
Sun Aug 6 19:19:30 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail:/tmp/cvs-serv30280

Modified Files:
	search.html 
Log Message:
get rid of the extra border in nested tables

Index: search.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/search.html,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- search.html	22 Apr 2006 00:58:40 -0000	1.22
+++ search.html	7 Aug 2006 02:19:28 -0000	1.23
@@ -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 ) { %>



More information about the freeside-commits mailing list