This commit was generated by cvs2svn to compensate for changes in r6255,
[freeside.git] / httemplate / search / report_cust_main.html
1 <% include('/elements/header.html', 'Customer Report' ) %>
2
3 <FORM ACTION="cust_main.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="bill">
5
6   <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7
8     <TR>
9       <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH>
10     </TR>
11     <% include( '/elements/tr-select-agent.html',
12                    ($cgi->param('agentnum') || ''),
13                )
14     %>
15
16 %   foreach my $field (qw( signupdate )) {
17
18       <TR>
19         <TD ALIGN="right" VALIGN="center"><% $label{$field} %></TD>
20         <TD>
21           <TABLE>
22             <% include( '/elements/tr-input-beginning_ending.html',
23                           prefix   => $field,
24                           layout   => 'horiz',
25                       )
26             %>
27           </TABLE>
28         </TD>
29       </TR>
30
31 %   }
32
33     <% include( '/elements/tr-select-payby.html',
34                   'payby_type' => 'cust',
35                   'multiple'   => 1,
36                   'curr_value' => { map { $_ => 1 } FS::payby->cust_payby },
37               )
38     %>
39     
40     <% include( '/elements/tr-input-lessthan_greaterthan.html',
41                   label   => 'Current balance',
42                   field   => 'current_balance',
43               )
44     %>
45
46     <TR>
47       <TD ALIGN="right" VALIGN="center">Include cancelled packages</TD>
48         <TD><INPUT TYPE="checkbox" NAME="cancelled_pkgs"></TD>
49     </TR>
50
51     <TR>
52       <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH>
53     </TR>
54     <% include( '/elements/tr-select-cust-fields.html' ) %>
55
56     <TR>
57       <TD ALIGN="right" VALIGN="center">Add package columns</TD>
58         <TD><INPUT TYPE="checkbox" NAME="flattened_pkgs"></TD>
59     </TR>
60   </TABLE>
61
62 <BR>
63 <INPUT TYPE="submit" VALUE="Get Report">
64
65 </FORM>
66
67 <% include('/elements/footer.html') %>
68 <%init>
69
70 die "access denied"
71   unless ( $FS::CurrentUser::CurrentUser->access_right('List customers') &&
72            $FS::CurrentUser::CurrentUser->access_right('List packages')
73          );;
74
75 </%init>
76 <%once>
77
78 my %label = (
79   'signupdate'     => 'Signup date',
80 );
81
82 </%once>