event refactor, landing on HEAD!
[freeside.git] / httemplate / search / report_cust_pay.html
1 <% include('/elements/header.html', 'Payment report' ) %>
2
3 <FORM ACTION="cust_pay.cgi" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="_date">
5
6 <TABLE>
7
8   <TR>
9     <TD ALIGN="right">Payments of type: </TD>
10     <TD>
11       <SELECT NAME="payby" onChange="payby_changed(this)">
12         <OPTION VALUE="">all</OPTION>
13         <OPTION VALUE="CARD">credit card (all)</OPTION>
14         <OPTION VALUE="CARD-VisaMC">credit card (Visa/MasterCard)</OPTION>
15         <OPTION VALUE="CARD-Amex">credit card (American Express)</OPTION>
16         <OPTION VALUE="CARD-Discover">credit card (Discover)</OPTION>
17         <OPTION VALUE="CARD-Maestro">credit card (Maestro/Switch/Solo)</OPTION>
18         <OPTION VALUE="CHEK">electronic check / ACH</OPTION>
19         <OPTION VALUE="BILL">check</OPTION>
20         <OPTION VALUE="PREP">prepaid card</OPTION>
21         <OPTION VALUE="CASH">cash</OPTION>
22         <OPTION VALUE="WEST">Western Union</OPTION>
23         <OPTION VALUE="MCRD">manual credit card</OPTION>
24       </SELECT>
25     </TD>
26   </TR>
27
28   <SCRIPT TYPE="text/javascript">
29   
30     function payby_changed(what) {
31       if ( what.options[what.selectedIndex].value == 'BILL' ) {
32         document.getElementById('checkno_caption').style.color = '#000000';
33         what.form.payinfo.disabled = false;
34         what.form.payinfo.style.backgroundColor = '#ffffff';
35       } else {
36         document.getElementById('checkno_caption').style.color = '#bbbbbb';
37         what.form.payinfo.disabled = true;
38         what.form.payinfo.style.backgroundColor = '#dddddd';
39       }
40     }
41
42   </SCRIPT>
43
44   <TR>
45     <TD ALIGN="right"><FONT ID="checkno_caption" COLOR="#bbbbbb">Check #: </FONT></TD>
46     <TD>
47       <INPUT TYPE="text" NAME="payinfo" DISABLED STYLE="background-color: #dddddd">
48     </TD>
49   </TR>
50
51   <% include( '/elements/tr-select-agent.html',
52                  'curr_value' => scalar($cgi->param('agentnum')),
53                  'label'      => 'for agent: ',
54              )
55   %>
56
57   <% include( '/elements/tr-input-beginning_ending.html' ) %>
58
59   <% include( '/elements/tr-input-lessthan_greaterthan.html',
60                 'label' => 'Amount',
61                 'field' => 'paid',
62             )
63   %>
64
65 </TABLE>
66
67 <BR>
68 <INPUT TYPE="submit" VALUE="Get Report">
69
70 </FORM>
71
72 <% include('/elements/footer.html') %>
73 <%init>
74
75 die "access denied"
76   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
77
78 </%init>