enrol_cost)) $frm->enrol_cost = '5';
if (!isset($frm->enrol_currency)) $frm->enrol_currency = 'USD';
if (!isset($frm->enrol_mailstudents)) $frm->enrol_mailstudents = '';
if (!isset($frm->enrol_mailteachers)) $frm->enrol_mailteachers = '';
if (!isset($frm->enrol_mailadmins)) $frm->enrol_mailadmins = '';
if (!isset($frm->an_login)) $frm->an_login = '';
if (!isset($frm->an_tran_key)) $frm->an_tran_key = '';
if (!isset($frm->an_password)) $frm->an_password = '';
if (!isset($frm->delete_current)) $frm->delete_current = '';
if (!isset($frm->an_referer)) $frm->an_referer = 'http://';
if (!isset($frm->an_avs)) $frm->an_avs = '';
if (!isset($frm->an_authcode)) $frm->an_authcode = '';
if (!isset($frm->an_test)) $frm->an_test = '';
if (!isset($frm->an_review)) $frm->an_review = '';
if (!isset($frm->an_capture_day)) $frm->an_capture_day = '5';
if (!isset($frm->an_emailexpired)) $frm->an_emailexpired = '2';
if (!isset($frm->an_emailexpiredteacher)) $frm->an_emailexpiredteacher = '';
if (!isset($frm->an_sorttype)) $frm->an_sorttype = 'ttl';
if (isset($CFG->an_cutoff)) {
$cutoff = intval($CFG->an_cutoff);
$mins = $cutoff % 60; $hrs = ($cutoff - $mins) / 60;
$frm->an_cutoff_hour = $hrs; $frm->an_cutoff_min = $mins;
}
if (!isset($frm->an_cutoff_hour)) {
$timezone = round(get_user_timezone_offset(), 1);
$frm->an_cutoff_hour = intval($timezone);
$frm->an_cutoff_min = (intval(round($timezone)) != intval($timezone)) ? 35 : 5;
}
if (!isset($frm->acceptmethods)) {
$frm->acceptmethods = get_list_of_payment_methods();
$CFG->an_acceptmethods = implode(',', $frm->acceptmethods);
}
if (!isset($frm->acceptccs)) {
$frm->acceptccs = array_keys(get_list_of_creditcards());
$CFG->an_acceptccs = implode(',', $frm->acceptccs);
}
if (!isset($frm->acceptechecktypes)) {
$frm->acceptechecktypes = get_list_of_bank_account_types();
$CFG->an_acceptechecktypes = implode(',', $frm->acceptechecktypes);
}
?>
|
|
enrol_cost: |
. |
enrol_currency: |
get_list_of_currencies(), "enrol_currency", $frm->enrol_currency, false);
?>
|
|
|
an_login) && (isset($mconfig->an_tran_key) || isset($mconfig->an_password))) { ?>
|
an_login: an_login)) ? ''.get_string('dataentered', 'enrol_authorize').'' : ''; ?> |
* |
an_tran_key: an_tran_key)) ? ''.get_string('dataentered', 'enrol_authorize').'' : ''; ?> |
#1 |
an_password: an_password)) ? ''.get_string('dataentered', 'enrol_authorize').'' : ''; ?> |
#2 |
delete_current: |
delete_current), get_string("deletecheck", "moodle", get_string('oldpassword')));?>
|
an_referer: |
|
an_cutoff: |
an_cutoff_hour,$frm->an_cutoff_min);
$hourselector = html_writer::select_time('hours', 'an_cutoff_hour', $curtime);
$minselector = html_writer::select_time('minutes', 'an_cutoff_min', $curtime);
echo $hourselector . $minselector;
?>
|
an_avs: |
an_avs), get_string("adminavs", "enrol_authorize")); ?>
|
an_authcode: |
an_authcode), get_string("adminauthcode", "enrol_authorize")); ?>
old_help_icon('authorize/authcode', 'authcode', 'enrol'); ?>
|
an_test: |
an_test), get_string("antestmode", "enrol_authorize")); ?>
|
accepts: |
"); // blockquote breaks and tags
$acceptedccs = array_keys(get_list_of_creditcards());
$allccs = get_list_of_creditcards(true);
foreach ($allccs as $key => $val) {
echo "";
echo html_writer::checkbox('acceptccs[]', $key, in_array($key, $acceptedccs), $val);
echo "";
}
echo("");
}
elseif ($key == AN_METHOD_ECHECK) {
echo html_writer::checkbox('acceptmethods[]', AN_METHOD_ECHECK, in_array(AN_METHOD_ECHECK, $paymentmethodsenabled), get_string('method'.AN_METHOD_ECHECK, 'enrol_authorize'));
echo(""); // blockquote breaks and tags
$echecktypesenabled = get_list_of_bank_account_types();
$allechecktypes = get_list_of_bank_account_types(true);
foreach ($allechecktypes as $key) {
echo "- ";
echo html_writer::checkbox('acceptechecktypes[]', $key, in_array($key, $echecktypesenabled), get_string('echeck'.strtolower($key)));
echo "
";
}
echo(" ");
}
}
?>
|
old_help_icon('authorize/orderreview', 'orderreview', 'enrol'); ?>
|
an_review: |
an_review), get_string("adminreview", "enrol_authorize")); ?>
old_help_icon('authorize/review', get_string('adminhelpreviewtitle', 'enrol_authorize'), 'enrol'); ?>
|
an_capture_day: |
old_help_icon('authorize/captureday', get_string('adminhelpcapturetitle', 'enrol_authorize'), 'enrol'); ?>
an_capture_day) ?> |
|
an_emailexpired: |
an_emailexpired) ?>
|
an_emailexpiredteacher: |
an_emailexpiredteacher), get_string("adminemailexpiredteacher", "enrol_authorize")); ?>
|
an_sorttype: |
get_string('adminemailexpiredsortsum', 'enrol_authorize'),
'cnt' => get_string('adminemailexpiredsortcount', 'enrol_authorize'));
echo html_writer::select($sorts, "an_sorttype", $frm->an_sorttype, false);
?>
|
enrol_mailstudents: |
enrol_mailstudents), get_string("mailstudents")); ?>
|
enrol_mailteachers: |
enrol_mailteachers), get_string("mailteachers")); ?>
|
enrol_mailadmins: |
enrol_mailadmins), get_string("mailadmins")); ?>
|