2006-03-27 08:31:16 +00:00
|
|
|
<?PHP // $Id$
|
2005-12-26 19:21:37 +00:00
|
|
|
|
2006-03-27 08:49:43 +00:00
|
|
|
/// Load libraries
|
2006-03-27 08:31:16 +00:00
|
|
|
require_once '../../config.php';
|
|
|
|
require_once 'lib.php';
|
2005-12-26 19:21:37 +00:00
|
|
|
|
2006-03-27 08:49:43 +00:00
|
|
|
/// Get site
|
2006-03-27 08:31:16 +00:00
|
|
|
if (! $site = get_site()) {
|
|
|
|
error("Could not find a site!");
|
2006-03-13 11:15:09 +00:00
|
|
|
}
|
|
|
|
|
2006-03-27 08:49:43 +00:00
|
|
|
/// Only site users can access to this page
|
2006-03-27 08:31:16 +00:00
|
|
|
require_login();
|
|
|
|
if (isguest()) {
|
|
|
|
error("Guests cannot use this page.");
|
2006-03-10 20:05:24 +00:00
|
|
|
}
|
2005-12-26 19:21:37 +00:00
|
|
|
|
2006-03-27 08:49:43 +00:00
|
|
|
/// Load strings. All strings should be defined here. lib.php uses these strings.
|
2006-03-27 08:31:16 +00:00
|
|
|
$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',
|
|
|
|
'settled','refunded','cancelled','expired','tested',
|
|
|
|
'transid','settlementdate','notsettled','amount',
|
|
|
|
'howmuch','captureyes','unenrolstudent'), 'enrol_authorize');
|
2006-01-20 16:04:52 +00:00
|
|
|
|
2006-03-27 08:49:43 +00:00
|
|
|
/// Print header
|
2006-03-27 08:31:16 +00:00
|
|
|
print_header("$site->shortname: $authstrs->paymentmanagement",
|
|
|
|
"$site->fullname",
|
|
|
|
"<a href=\"index.php\">$authstrs->paymentmanagement</a>", "");
|
2005-12-26 19:21:37 +00:00
|
|
|
|
2006-03-27 08:49:43 +00:00
|
|
|
/// Get order id
|
2006-03-27 08:31:16 +00:00
|
|
|
$orderid = optional_param('order', 0, PARAM_INT);
|
2005-12-26 19:21:37 +00:00
|
|
|
|
2006-03-27 08:49:43 +00:00
|
|
|
/// If orderid is empty, user wants to see all orders
|
|
|
|
if (empty($orderid)) {
|
|
|
|
print_authorize_orders();
|
2005-12-26 19:21:37 +00:00
|
|
|
}
|
|
|
|
else {
|
2006-03-27 08:49:43 +00:00
|
|
|
print_authorize_order_details($orderid);
|
2005-12-26 19:21:37 +00:00
|
|
|
}
|
|
|
|
|
2006-03-27 08:49:43 +00:00
|
|
|
/// Print footer
|
2006-03-27 08:31:16 +00:00
|
|
|
print_footer();
|
2005-12-26 19:21:37 +00:00
|
|
|
?>
|