diff --git a/enrol/authorize/enrol.html b/enrol/authorize/enrol.html
index f576df30bad..b05b86e37a5 100755
--- a/enrol/authorize/enrol.html
+++ b/enrol/authorize/enrol.html
@@ -1,4 +1,4 @@
-
ccerrormsg) ) {formerr($this->ccerrormsg);} ?>
+ccerrormsg)) { formerr($this->ccerrormsg); } ?>
@@ -21,21 +21,26 @@
| : |
ccexpiremm);
- $nowdate = getdate();
- $nowyear = $nowdate["year"]-1;
- for ($i=$nowyear; $i<=$nowyear+11; $i++) {
- $years[$i] = $i;
- }
- choose_from_menu($years, 'ccexpireyyyy', $form->ccexpireyyyy);
- ?> |
+ for ($i=1; $i<=12; $i++) {
+ $months[$i] = userdate(gmmktime(12,0,0,$i,1,2000), "%B");
+ }
+ choose_from_menu($months, 'ccexpiremm', $form->ccexpiremm);
+ $nowdate = getdate();
+ $nowyear = $nowdate["year"]-1;
+ for ($i=$nowyear; $i<=$nowyear+11; $i++) {
+ $years[$i] = $i;
+ }
+ choose_from_menu($years, 'ccexpireyyyy', $form->ccexpireyyyy);
+ ?>
| : |
'Master Card', 'vis' => 'Visa', 'amx' => 'American Express',
+ 'dsc' => 'Discover', 'dnc' => 'Diners Club', 'jcb' => 'JCB',
+ 'swi' => 'Switch', 'dlt' => 'Delta', 'enr' => 'EnRoute'
+ );
choose_from_menu($CCTYPES, 'cctype', $form->cctype);
?>
|
@@ -49,7 +54,6 @@
: |
|
-
">
diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php
index d6af115b538..a77b5ae81f0 100755
--- a/enrol/authorize/enrol.php
+++ b/enrol/authorize/enrol.php
@@ -67,12 +67,6 @@ class enrolment_plugin extends enrolment_base {
}
}
- $CCTYPES = array(
- 'mcd' => 'Master Card', 'vis' => 'Visa', 'amx' => 'American Express',
- 'dsc' => 'Discover', 'dnc' => 'Diners Club', 'jcb' => 'JCB',
- 'swi' => 'Switch', 'dlt' => 'Delta', 'enr' => 'EnRoute'
- );
-
$formvars = array('password','ccfirstname','cclastname','cc','ccexpiremm','ccexpireyyyy','cctype','cvv','cczip');
foreach ($formvars as $var) {
if (!isset($form->$var)) {