combine ticket notification scrips, #15353
[freeside.git] / httemplate / search / report_cust_event.html
1 <% include(
2       '/elements/header.html',
3       ( $cgi->param('failed') ? 'Failed billing events' : 'Billing events' ),
4    )
5 %>
6
7     <FORM ACTION="cust_event.html" METHOD="GET">
8     <INPUT TYPE="hidden" NAME="failed" VALUE="<% $cgi->param('failed') ? 1 : 0 %>">
9     <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
10
11       <TR>
12         <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH>
13       </TR>
14
15       <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
16
17       <% include( '/elements/tr-select-cust_main-status.html',
18                     'label' => 'Status'
19                 )
20       %>
21
22       <% include( '/elements/tr-select-payby.html',
23                     'label'        => 'Customer payment type',
24                     'payby_type'   => 'cust',
25                     'multiple'     => 1,
26                     'all_selected' => 1,
27                 )
28       %>
29
30       <% include( '/elements/tr-select-part_event.html',
31                     'label'        => 'Events',
32                     'multiple'     => 1,
33                     'all_selected' => 1,
34                 )
35       %>
36
37       <% include( '/elements/tr-input-beginning_ending.html' ) %>
38
39     </TABLE>
40     <BR><INPUT TYPE="submit" VALUE="Get Report">
41     </FORM>
42
43 <% include('/elements/footer.html') %>
44 <%init>
45
46 die "access denied"
47   unless $FS::CurrentUser::CurrentUser->access_right('Billing event reports');
48
49 </%init>