selfservice, TNG, RT#22193
[freeside.git] / ng_selfservice / elements / card.php
diff --git a/ng_selfservice/elements/card.php b/ng_selfservice/elements/card.php
new file mode 100644 (file)
index 0000000..c107aa5
--- /dev/null
@@ -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( '2013', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023' );
+               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'];
+?>