diff --git a/enrol/authorize/config.html b/enrol/authorize/config.html index f7befc65d8c..2a774a8dec0 100755 --- a/enrol/authorize/config.html +++ b/enrol/authorize/config.html @@ -40,6 +40,11 @@ if (!isset($frm->acceptccs)) { $CFG->an_acceptccs = implode(',', $frm->acceptccs); } +if (!isset($frm->acceptechecktypes)) { + $frm->acceptechecktypes = get_list_of_bank_account_types(); + $CFG->an_acceptechecktypes = implode(',', $frm->acceptechecktypes); +} + ?>
| an_acceptmethods: | -accepts: |
+ \n"; - } - ?> |
-
| an_acceptccs: | -$val) { - print_checkbox('acceptccs[]', $key, in_array($key, $acceptedccs), $val); echo " \n"; + if ($key == AN_METHOD_CC) { + print_checkbox('acceptmethods[]', AN_METHOD_CC, in_array(AN_METHOD_CC, $paymentmethodsenabled), get_string('method'.AN_METHOD_CC,'enrol_authorize')); + echo(" "); + $acceptedccs = array_keys(get_list_of_creditcards()); + $allccs = get_list_of_creditcards(true); + foreach ($allccs as $key => $val) { + print_checkbox('acceptccs[]', $key, in_array($key, $acceptedccs), $val); echo ""); + } + elseif ($key == AN_METHOD_ECHECK) { + print_checkbox('acceptmethods[]', AN_METHOD_ECHECK, in_array(AN_METHOD_ECHECK, $paymentmethodsenabled), get_string('method'.AN_METHOD_ECHECK,'enrol_authorize')); + echo(" "); + $echecktypesenabled = get_list_of_bank_account_types(); + $allechecktypes = get_list_of_bank_account_types(true); + foreach ($allechecktypes as $key) { + print_checkbox('acceptechecktypes[]', $key, in_array($key, $echecktypesenabled), get_string('echeck'.strtolower($key),'enrol_authorize')); echo ""); + } } ?> |