Пример #1
0
<?php

// Load the Refund Functions
require_once 'include.php';
// Load the Translation for this Module
if (!xml2php('refund')) {
    $smarty->assign('error_msg', "Error in language file");
}
// Load PHP Language Translations
$langvals = gateway_xml2php('refund');
// Load refund details
$refund_details = display_refund_info($db, $VAR['refundID']);
// If details submitted run update values, if not set load edit.tpl and populate values
if (isset($VAR['submit'])) {
    if (!update_refund($db, $VAR)) {
        force_page('refund', 'edit&error_msg=Falied to Update refund Information&refundID=' . $VAR['refundID']);
        exit;
    } else {
        force_page('refund', 'refund_details&refundID=' . $VAR['refundID'] . '&page_title=' . $langvals['refund_details_title']);
        exit;
    }
} else {
    $smarty->assign('refund_details', $refund_details);
    $smarty->display('refund' . SEP . 'edit.tpl');
}
Пример #2
0
<?php

// Load the Refund Functions
require_once 'include.php';
// Load the Translation for this Module
if (!xml2php('refund')) {
    $smarty->assign('error_msg', "Error in language file");
}
// Assign the arrays
$smarty->assign('refund_details', display_refund_info($db, $VAR['refundID']));
$smarty->display('refund' . SEP . 'refund_details.tpl');