[freeside-commits] freeside/httemplate/search/elements search.html,
1.15, 1.16
Ivan,,,
ivan at wavetail.420.am
Thu Jul 14 03:52:48 PDT 2005
- Previous message: [freeside-commits] freeside/httemplate/search svc_acct.cgi, 1.32,
1.33 svc_forward.cgi, 1.5, 1.6 svc_domain.cgi, 1.16,
1.17 cust_bill_event.cgi, 1.6, 1.7 cust_credit.html, 1.6,
1.7 cust_pay.cgi, 1.17, 1.18 svc_www.cgi, 1.4,
1.5 report_receivables.cgi, 1.20, 1.21
- Next message: [freeside-commits] freeside/FS/FS/UI Web.pm,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail:/tmp/cvs-serv8300/httemplate/search/elements
Modified Files:
search.html
Log Message:
move account search (httemplate/search/svc_acct.cgi) to new template, cust-fields configuration value to control which customer fields are shown on reports
Index: search.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/search.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- search.html 2 Jun 2005 09:29:54 -0000 1.15
+++ search.html 14 Jul 2005 10:52:46 -0000 1.16
@@ -152,7 +152,9 @@
# }
#}
if ( ref($field) eq 'CODE' ) {
- $worksheet->write($r, $c++, &{$field}($row) );
+ foreach my $value ( &{$field}($row) ) {
+ $worksheet->write($r, $c++, $value );
+ }
} else {
$worksheet->write($r, $c++, $row->$field() );
}
@@ -253,7 +255,18 @@
my $sizes = $opt{'size'} ? [ @{$opt{'size'}} ] : [];
my $styles = $opt{'style'} ? [ @{$opt{'style'}} ] : [];
- foreach my $field ( @{$opt{'fields'}} ) {
+ foreach my $field (
+
+ map {
+ if ( ref($_) eq 'CODE' ) {
+ &{$_}($row);
+ } else {
+ $row->$_();
+ }
+ }
+ @{$opt{'fields'}}
+
+ ) {
my $align = $aligns ? shift @$aligns : '';
$align = " ALIGN=$align" if $align;
@@ -294,11 +307,7 @@
}
%>
- <% if ( ref($field) eq 'CODE' ) { %>
- <TD CLASS="grid" BGCOLOR="<%= $bgcolor %>"<%= $align %>><%= $font %><%= $a %><%= $s %><%= &{$field}($row) %><%= $es %><%= $a ? '</A>' : '' %><%= $font ? '</FONT>' : '' %></TD>
- <% } else { %>
- <TD CLASS="grid" BGCOLOR="<%= $bgcolor %>"<%= $align %>><%= $font %><%= $a %><%= $s %><%= $row->$field() %><%= $es %><%= $a ? '</A>' : '' %><%= $font ? '</FONT>' : '' %></TD>
- <% } %>
+ <TD CLASS="grid" BGCOLOR="<%= $bgcolor %>"<%= $align %>><%= $font %><%= $a %><%= $s %><%= $field %><%= $es %><%= $a ? '</A>' : '' %><%= $font ? '</FONT>' : '' %></TD>
<% } %>
<% } else { %>
<% foreach ( @$row ) { %>
- Previous message: [freeside-commits] freeside/httemplate/search svc_acct.cgi, 1.32,
1.33 svc_forward.cgi, 1.5, 1.6 svc_domain.cgi, 1.16,
1.17 cust_bill_event.cgi, 1.6, 1.7 cust_credit.html, 1.6,
1.7 cust_pay.cgi, 1.17, 1.18 svc_www.cgi, 1.4,
1.5 report_receivables.cgi, 1.20, 1.21
- Next message: [freeside-commits] freeside/FS/FS/UI Web.pm,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list