Unnecesary strings removed. Merged from MOODLE_16_MERGED
This commit is contained in:
@@ -17,18 +17,18 @@
|
||||
}
|
||||
|
||||
/// Load strings. All strings should be defined here. locallib.php uses these strings.
|
||||
$strs = get_strings(array('user','status','action','delete','time','course','confirm','yes','no','all','none','error'));
|
||||
$authstrs = get_strings(array('paymentmanagement','orderid','void','capture','refund','delete',
|
||||
$strs = get_strings(array('user','status','action','time','course','confirm','yes','no','all','none','error'));
|
||||
$authstrs = get_strings(array('orderid','void','capture','refund','delete',
|
||||
'authcaptured','authorizedpendingcapture','capturedpendingsettle','capturedsettled',
|
||||
'settled','refunded','cancelled','expired','tested','new',
|
||||
'transid','settlementdate','notsettled','amount',
|
||||
'howmuch','captureyes','unenrolstudent'), 'enrol_authorize');
|
||||
'transid','settlementdate','notsettled','amount','unenrolstudent'), 'enrol_authorize');
|
||||
|
||||
/// Print header
|
||||
$strpaymentmanagement = get_string('paymentmanagement', 'enrol_authorize');
|
||||
if (!$course = get_record('course', 'id', $courseid)) {
|
||||
error('Could not find that course');
|
||||
}
|
||||
print_header_simple("$authstrs->paymentmanagement", "", "<a href=\"index.php\">$authstrs->paymentmanagement</a>");
|
||||
print_header_simple("$strpaymentmanagement", "", "<a href=\"index.php\">$strpaymentmanagement</a>");
|
||||
|
||||
|
||||
/// If orderid is empty, user wants to see all orders
|
||||
|
||||
@@ -215,8 +215,9 @@ function authorize_print_order_details($orderno)
|
||||
}
|
||||
|
||||
if (empty($confirm)) {
|
||||
$strcaptureyes = get_string('captureyes', 'enrol_authorize');
|
||||
$table->data[] = array("<b>$strs->confirm:</b>",
|
||||
"$authstrs->captureyes<br /><a href='index.php?order=$orderno&sesskey=$USER->sesskey&".ORDER_CAPTURE."=y&confirm=1'>$strs->yes</a>
|
||||
"$strcaptureyes<br /><a href='index.php?order=$orderno&sesskey=$USER->sesskey&".ORDER_CAPTURE."=y&confirm=1'>$strs->yes</a>
|
||||
<a href='index.php?order=$orderno'>$strs->no</a>");
|
||||
}
|
||||
else {
|
||||
@@ -286,9 +287,10 @@ function authorize_print_order_details($orderno)
|
||||
$a = new stdClass;
|
||||
$a->upto = $upto;
|
||||
$strcanbecredit = get_string('canbecredit', 'enrol_authorize', $a);
|
||||
$strhowmuch = get_string('howmuch', 'enrol_authorize');
|
||||
$cbunenrol = print_checkbox('unenrol', '1', !empty($unenrol), '', '', '', true);
|
||||
$table->data[] = array("<b>$authstrs->unenrolstudent</b>", $cbunenrol);
|
||||
$table->data[] = array("<b>$authstrs->howmuch</b>",
|
||||
$table->data[] = array("<b>$strhowmuch</b>",
|
||||
"<input type='hidden' name='confirm' value='1'>
|
||||
<input type='text' size='5' name='amount' value='$amount'>
|
||||
$strcanbecredit<br /><input type='submit' name='".ORDER_REFUND."' value='$authstrs->refund'>");
|
||||
|
||||
Reference in New Issue
Block a user