validate(); $this->setupTemplate(true); import('classes.payment.ojs.OJSPaymentAction'); OJSPaymentAction::payments($args); } /** * Execute the form or display it again if there are problems */ function savePaymentSettings($args) { $this->validate(); $this->setupTemplate(true); import('classes.payment.ojs.OJSPaymentAction'); $success = OJSPaymentAction::savePaymentSettings($args); if ($success) { $templateMgr =& TemplateManager::getManager(); $templateMgr->assign(array( 'currentUrl' => Request::url(null, null, 'payments'), 'pageTitle' => 'manager.payment.feePaymentOptions', 'message' => 'common.changesSaved', 'backLink' => Request::url(null, null, 'payments'), 'backLinkLabel' => 'manager.payment.feePaymentOptions' )); $templateMgr->display('common/message.tpl'); } } /** * Display all payments previously made */ function viewPayments($args) { $this->validate(); $this->setupTemplate(true); import('classes.payment.ojs.OJSPaymentAction'); OJSPaymentAction::viewPayments($args); } /** * Display a single Completed payment */ function viewPayment($args) { $this->validate(); $this->setupTemplate(true); import('classes.payment.ojs.OJSPaymentAction'); OJSPaymentAction::viewPayment($args); } /** * Display form to edit program settings. */ function payMethodSettings() { $this->validate(); $this->setupTemplate(true); import('classes.payment.ojs.OJSPaymentAction'); OJSPaymentAction::payMethodSettings(); } /** * Save changes to payment settings. */ function savePayMethodSettings() { $this->validate(); $this->setupTemplate(true); import('classes.payment.ojs.OJSPaymentAction'); $success = OJSPaymentAction::savePayMethodSettings(); if ($success) { $templateMgr =& TemplateManager::getManager(); $templateMgr->assign(array( 'currentUrl' => Request::url(null, null, 'payMethodSettings'), 'pageTitle' => 'manager.payment.paymentMethods', 'message' => 'common.changesSaved', 'backLink' => Request::url(null, null, 'payMethodSettings'), 'backLinkLabel' => 'manager.payment.paymentMethods' )); $templateMgr->display('common/message.tpl'); } } } ?>