httemplate/elements/header.html
[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     <TR>
34       <TD ALIGN="right" VALIGN="center">Include cancelled packages</TD>
35         <TD><INPUT TYPE="checkbox" NAME="cancelled_pkgs"></TD>
36     </TR>
37
38     <TR>
39       <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Display options</FONT></TH>
40     </TR>
41     <% include( '/elements/tr-select-cust-fields.html' ) %>
42
43     <TR>
44       <TD ALIGN="right" VALIGN="center">Add package columns</TD>
45         <TD><INPUT TYPE="checkbox" NAME="flattened_pkgs"></TD>
46     </TR>
47   </TABLE>
48
49 <BR>
50 <INPUT TYPE="submit" VALUE="Get Report">
51
52 </FORM>
53
54 <% include('/elements/footer.html') %>
55 <%init>
56
57 die "access denied"
58   unless ( $FS::CurrentUser::CurrentUser->access_right('List customers') &&
59            $FS::CurrentUser::CurrentUser->access_right('List packages')
60          );;
61
62 </%init>
63 <%once>
64
65 my %label = (
66   'signupdate'     => 'Signup Date',
67 );
68
69 </%once>