enable CardFortress in test database, #71513
[freeside.git] / httemplate / search / report_cust_payby.html
1 <& /elements/header.html, mt('Customer stored payment infomation report') &>
2
3 <FORM ACTION="cust_payby.html" METHOD="GET">
4
5   <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
6
7     <& /elements/tr-select-payby.html,
8                   'payby_type'   => 'cust',
9                   'multiple'     => 1,
10                   'all_selected' => 1,
11     &>
12
13     <TR>
14       <TD ALIGN="right"><% mt('Payment expiration before') |h %></TD>
15       <TD>
16         <SELECT NAME="paydate_month" DISABLED>
17 %         foreach my $month ( 1 .. 12 ) {
18             <OPTION VALUE="<% $month %>"><% $month %></OPTION>
19 %         }
20         </SELECT>
21         /
22         <SELECT NAME="paydate_year" onChange="paydate_year_changed(this);">
23           <OPTION VALUE=""></OPTION>
24 %         my $lastyear = (localtime(time))[5] + 1899;
25 %         foreach my $year ( $lastyear .. $lastyear+12 ) {
26             <OPTION VALUE="<% $year %>"><% $year %></OPTION>
27 %         }
28         </SELECT>
29       </TD>
30     </TR>
31
32     <SCRIPT TYPE="text/javascript">
33       function paydate_year_changed(what) {
34         var value = what.options[what.selectedIndex].value;
35         var month_select = what.form.paydate_month;
36         if ( value == '' ) {
37           month_select.disabled = true;
38         } else {
39           month_select.disabled = false;
40         }
41       }
42     </SCRIPT>
43
44  </TABLE>
45
46 <BR>
47 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
48
49 </FORM>
50
51 <& /elements/footer.html &>
52 <%init>
53
54 die "access denied"
55   unless $FS::CurrentUser::CurrentUser->access_right('Advanced customer search');
56
57 </%init>