mirror of
https://github.com/moodle/moodle.git
synced 2025-03-03 23:46:09 +01:00
Some descriptions was added
This commit is contained in:
parent
3a58ad11bc
commit
d414c46183
@ -1,18 +1,21 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
/// Load libraries
|
||||
require_once '../../config.php';
|
||||
require_once 'lib.php';
|
||||
|
||||
/// Get site
|
||||
if (! $site = get_site()) {
|
||||
error("Could not find a site!");
|
||||
}
|
||||
|
||||
/// Only site users can access to this page
|
||||
require_login();
|
||||
|
||||
if (isguest()) {
|
||||
error("Guests cannot use this page.");
|
||||
}
|
||||
|
||||
/// Load strings. All strings should be defined here. lib.php uses these strings.
|
||||
$strs = get_strings(array('user','status','action','delete','time','course','confirm','yes','no','none','error'));
|
||||
$authstrs = get_strings(array('paymentmanagement','orderid','void','capture','refund','delete',
|
||||
'authcaptured','authorizedpendingcapture','capturedpendingsettle','capturedsettled',
|
||||
@ -20,18 +23,22 @@
|
||||
'transid','settlementdate','notsettled','amount',
|
||||
'howmuch','captureyes','unenrolstudent'), 'enrol_authorize');
|
||||
|
||||
/// Print header
|
||||
print_header("$site->shortname: $authstrs->paymentmanagement",
|
||||
"$site->fullname",
|
||||
"<a href=\"index.php\">$authstrs->paymentmanagement</a>", "");
|
||||
|
||||
/// Get order id
|
||||
$orderid = optional_param('order', 0, PARAM_INT);
|
||||
|
||||
if (!empty($orderid)) {
|
||||
print_authorize_order_details($orderid);
|
||||
}
|
||||
else {
|
||||
/// If orderid is empty, user wants to see all orders
|
||||
if (empty($orderid)) {
|
||||
print_authorize_orders();
|
||||
}
|
||||
else {
|
||||
print_authorize_order_details($orderid);
|
||||
}
|
||||
|
||||
/// Print footer
|
||||
print_footer();
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user