1 <& /elements/header.html, mt('Customer stored payment infomation report') &>
3 <FORM ACTION="cust_payby.html" METHOD="GET">
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7 <& /elements/tr-select-payby.html,
8 'payby_type' => 'cust',
14 <TD ALIGN="right"><% mt('Payment expiration before') |h %></TD>
16 <SELECT NAME="paydate_month" DISABLED>
17 % foreach my $month ( 1 .. 12 ) {
18 <OPTION VALUE="<% $month %>"><% $month %></OPTION>
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>
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;
37 month_select.disabled = true;
39 month_select.disabled = false;
47 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
51 <& /elements/footer.html &>
55 unless $FS::CurrentUser::CurrentUser->access_right('Advanced customer search');