summaryrefslogtreecommitdiff
path: root/min_selfservice/elements/card.php
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2018-09-13 15:27:39 -0700
committerIvan Kohler <ivan@freeside.biz>2018-09-13 15:27:39 -0700
commit9d55843fddd22f64ad0f6b890181c6918aebbf6d (patch)
treebd68fb33154a39075be1fbd0a3636f36383dc070 /min_selfservice/elements/card.php
parente3a8fd7def19db7b5acd6171a828b1bc39094186 (diff)
parent167c830485a305064fb18bb7d91322857e5b5182 (diff)
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'min_selfservice/elements/card.php')
-rw-r--r--min_selfservice/elements/card.php53
1 files changed, 53 insertions, 0 deletions
diff --git a/min_selfservice/elements/card.php b/min_selfservice/elements/card.php
new file mode 100644
index 0000000..4d502c2
--- /dev/null
+++ b/min_selfservice/elements/card.php
@@ -0,0 +1,53 @@
+<TR>
+ <TD ALIGN="right">Card&nbsp;number</TD>
+ <TD COLSPAN=6>
+ <TABLE>
+ <TR>
+ <TD>
+ <INPUT TYPE="text" NAME="payinfo" SIZE=20 MAXLENGTH=19 VALUE="<? echo $payinfo ?>"> </TD>
+ <TD>Exp.</TD>
+ <TD>
+ <SELECT NAME="month">
+ <? $months = array( '01', '02', '03' ,'04', '05', '06', '07', '08', '09', '10', '11', '12' );
+ foreach ( $months AS $m ) {
+ ?>
+ <OPTION <? if ($m == $month) { echo 'SELECTED'; } ?>><? echo $m; ?>
+ <? } ?>
+ </SELECT>
+ </TD>
+ <TD> / </TD>
+ <TD>
+ <SELECT NAME="year">
+ <? $years = array( '2018', '2019', '2020', '2021', '2022', '2023', '2024', '2025', '2026' );
+ foreach ( $years as $y ) {
+ ?>
+ <OPTION <? if ($y == $year ) { echo 'SELECTED'; } ?>><? echo $y; ?>
+ <? } ?>
+ </SELECT>
+ </TD>
+ </TR>
+ </TABLE>
+ </TD>
+</TR>
+<? if ( $withcvv ) { ?>
+ <TR>
+ <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>
+ <TD><INPUT TYPE="text" NAME="paycvv" VALUE="" SIZE=4 MAXLENGTH=4></TD>
+ </TR>
+<? } ?>
+<TR>
+ <TD ALIGN="right">Exact&nbsp;name&nbsp;on&nbsp;card</TD>
+ <TD COLSPAN=6><INPUT TYPE="text" SIZE=32 MAXLENGTH=80 NAME="payname" VALUE="<? echo $payname; ?>"></TD>
+</TR>
+
+<? $lf = $freeside->mason_comp(array(
+ 'session_id' => $_COOKIE['session_id'],
+ 'comp' => '/elements/location.html',
+ 'args' => [
+ 'no_asterisks' , 1,
+ #'address1_label' , 'Card billing address',
+ 'address1_label' , 'Card&nbsp;billing&nbsp;address',
+ ],
+ ));
+ echo $lf['output'];
+?>