From: patrickslee Date: Mon, 13 Mar 2006 21:19:04 +0000 (+0000) Subject: Updated Authorize.net for Ethem X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=96a7973eb9c5976368e96848245757f0fab85b24;p=moodle.git Updated Authorize.net for Ethem --- diff --git a/blocks/admin/block_admin.php b/blocks/admin/block_admin.php index cc9e66b335..14951d8c2c 100644 --- a/blocks/admin/block_admin.php +++ b/blocks/admin/block_admin.php @@ -71,9 +71,9 @@ class block_admin extends block_list { if ($CFG->enrol == 'authorize') { require_once $CFG->dirroot.'/enrol/authorize/const.php'; - $paymenturl = ''.get_string('payments').''; + $paymenturl = ''.get_string('payments').' '; if ($cnt = count_records('enrol_authorize', 'status', AN_STATUS_AUTH)) { - $paymenturl .= '('.$cnt.' '.get_string('pending').')'; + $paymenturl .= ''.get_string('paymentpending', 'moodle', $cnt).''; } $this->content->items[] = $paymenturl; $this->content->icons[] = ''; @@ -175,11 +175,11 @@ class block_admin extends block_list { $this->content->icons[]=''; } - if ($CFG->enrol == 'authorize') { + if ($course->enrol == 'authorize' || (empty($course->enrol) && $CFG->enrol == 'authorize')) { require_once $CFG->dirroot.'/enrol/authorize/const.php'; - $paymenturl = ''.get_string('payments').''; + $paymenturl = ''.get_string('payments').' '; if ($cnt = count_records('enrol_authorize', 'status', AN_STATUS_AUTH, 'courseid', $course->id)) { - $paymenturl .= '('.$cnt.' '.get_string('pending').')'; + $paymenturl .= ''.get_string('paymentpending', 'moodle', $cnt).''; } $this->content->items[] = $paymenturl; $this->content->icons[] = ''; diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index b2961547aa..f43192ace4 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -981,6 +981,8 @@ $string['pathnotexists'] = 'Path doesn\'t exist in your server!'; $string['pathslasherror'] = 'Path can\'t end with a slash!!'; $string['paymentinstant'] = 'Use the button below to pay and be enrolled within minutes!'; $string['paymentrequired'] = 'This course requires a payment for entry.'; +$string['payments'] = 'Payments'; +$string['paymentpending'] = '($a pending)'; $string['paymentsorry'] = 'Thank you for your payment! Unfortunately your payment has not yet been fully processed, and you are not yet registered to enter the course \"$a->fullname\". Please try continuing to the course in a few seconds, but if you continue to have trouble then please alert the $a->teacher or the site administrator'; $string['paymentthanks'] = 'Thank you for your payment! You are now enrolled in your course:
\"$a\"'; $string['people'] = 'People'; diff --git a/user/view.php b/user/view.php index 847e4b4a03..3d095ff4e3 100644 --- a/user/view.php +++ b/user/view.php @@ -349,6 +349,13 @@ echo ""; } } + if ($course->enrol == 'authorize' || (empty($course->enrol) && $CFG->enrol == 'authorize')) { + echo "
"; + echo "id\" />"; + echo "id\" />"; + echo ""; + echo "
"; + } echo ""; echo "\n";