2015
[freeside.git] / ng_selfservice / elements / card.php
1 <TR>
2   <TD ALIGN="right">Card&nbsp;number</TD>
3   <TD COLSPAN=6>
4     <TABLE>
5       <TR>
6         <TD>
7           <INPUT TYPE="text" NAME="payinfo" SIZE=20 MAXLENGTH=19 VALUE="<? echo $payinfo ?>"> </TD>
8         <TD>Exp.</TD>
9         <TD>
10           <SELECT NAME="month">
11             <? $months = array( '01', '02', '03' ,'04', '05', '06', '07', '08', '09', '10', '11', '12' );
12                foreach ( $months AS $m ) {
13             ?>
14                  <OPTION <? if ($m == $month) { echo 'SELECTED'; } ?>><? echo $m; ?>
15             <? } ?>
16           </SELECT>
17         </TD>
18         <TD> / </TD>
19         <TD>
20           <SELECT NAME="year">
21             <? $years = array( '2015', '2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023' );
22                foreach ( $years as $y ) {
23             ?>
24                   <OPTION <? if ($y == $year ) { echo 'SELECTED'; } ?>><? echo $y; ?>
25             <? } ?>
26           </SELECT>
27         </TD>
28       </TR>
29     </TABLE>
30   </TD>
31 </TR>
32 <?  if ( $withcvv ) { ?>
33   <TR>
34     <TD ALIGN="right">CVV2&nbsp;(<A HREF="javascript:myopen('cvv2.html','cvv2','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=480,height=288')">help</A>)</TD>
35     <TD><INPUT TYPE="text" NAME="paycvv" VALUE="" SIZE=4 MAXLENGTH=4></TD>
36   </TR>
37 <? } ?>
38 <TR>
39   <TD ALIGN="right">Exact&nbsp;name&nbsp;on&nbsp;card</TD>
40   <TD COLSPAN=6><INPUT TYPE="text" SIZE=32 MAXLENGTH=80 NAME="payname" VALUE="<? echo $payname; ?>"></TD>
41 </TR>
42
43 <? $lf = $freeside->mason_comp(array(
44            'session_id'     => $_COOKIE['session_id'],
45            'comp'       => '/elements/location.html',
46            'args'       => [
47                              'no_asterisks'   , 1,
48                              #'address1_label' , 'Card billing address',
49                              'address1_label' , 'Card&nbsp;billing&nbsp;address',
50                            ],
51          ));
52    echo $lf['output'];
53 ?>