diff --git a/enrol/authorize/config.html b/enrol/authorize/config.html
index ab7cb8fc4f9..3c3e792b1bb 100755
--- a/enrol/authorize/config.html
+++ b/enrol/authorize/config.html
@@ -21,9 +21,9 @@ if (isset($CFG->an_cutoff)) {
$frm->an_cutoff_hour = intval($CFG->an_cutoff) / 60;
$frm->an_cutoff_min = intval($CFG->an_cutoff) % 60;
}
-
if (!isset($frm->an_cutoff_hour)) $frm->an_cutoff_hour = '0';
if (!isset($frm->an_cutoff_min)) $frm->an_cutoff_min = '5';
+
if (!isset($frm->acceptccs)) {
$frm->acceptccs = array_keys(get_list_of_creditcards());
$CFG->an_acceptccs = implode(',', $frm->acceptccs);
@@ -90,25 +90,22 @@ if (!isset($frm->acceptccs)) {
| an_avs: |
- an_avs)) echo "checked=\"true\"" ?> /> |
+ an_avs)) ?> |
|
| an_test: |
- an_test)) echo "checked=\"true\"" ?> /> |
+ an_test)) ?> |
|
| an_acceptccs: |
$val) {
- echo 'an_acceptccs, $key) !== false) {
- echo ' checked="checked"';
- }
- echo " /> $val \n";
+ $allccs = get_list_of_creditcards(true);
+ foreach ($allccs as $key => $val) {
+ print_checkbox('acceptccs[]', $key, stristr($CFG->an_acceptccs, $key) !== false, $val); echo " \n";
}
?> |
|
@@ -124,13 +121,13 @@ if (!isset($frm->acceptccs)) {
| an_teachermanagepay: |
- an_teachermanagepay)) echo "checked=\"true\"" ?> /> |
+ an_teachermanagepay)) ?> |
|
| an_review: |
- an_review)) echo "checked=\"true\"" ?> />
+ | an_review)) ?> |
|
@@ -152,19 +149,19 @@ if (!isset($frm->acceptccs)) {
| enrol_mailstudents: |
- enrol_mailstudents)) echo "checked=\"true\"" ?> /> |
+ enrol_mailstudents)) ?> |
|
| enrol_mailteachers: |
- enrol_mailteachers)) echo "checked=\"true\"" ?> /> |
+ enrol_mailteachers)) ?> |
|
| enrol_mailadmins: |
- enrol_mailadmins)) echo "checked=\"true\"" ?> /> |
+ enrol_mailadmins)) ?> |
|
diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php
index 72e25d28698..6565991136e 100644
--- a/enrol/authorize/locallib.php
+++ b/enrol/authorize/locallib.php
@@ -188,7 +188,7 @@ function authorize_print_order_details($orderno)
echo "