示例#1
0
<?php

//stop the direct browsing to this file - let index.php handle which files get displayed
checkLogin();
$paymentTypes = getPaymentTypes();
$smarty->assign('paymentTypes', $paymentTypes);
$smarty->assign('pageActive', 'payment_type');
$smarty->assign('active_tab', '#setting');
示例#2
0
/**
 * getPaymentTypeNameByCode
 * 
 * @param mixed $code
 * @return mixed
 */
function getPaymentTypeNameByCode($code)
{
    $types = getPaymentTypes();
    return isset($types[$code]) ? $types[$code] : null;
}