Exemple #1
0
        exit;
    } else {
        $err->show($_LANG['order_list_lnk'], 'user.php?act=order_list');
    }
} elseif ($action == 'account_raply') {
    $user_money = $db->getOne("SELECT user_money FROM " . $ecs->table('users') . " WHERE user_id = {$_SESSION['user_id']}");
    $smarty->assign('user_money', price_format($user_money));
    $smarty->display('user_transaction.dwt');
} elseif ($action == 'account_deposit') {
    include_once ROOT_PATH . 'includes/lib_clips.php';
    $surplus_id = isset($_GET['id']) ? intval($_GET['id']) : 0;
    $account = get_surplus_info($surplus_id);
    $smarty->assign('payment', get_online_payment_list(false));
    $smarty->assign('order', $account);
    //支付银行
    $BankList = show_bank();
    $smarty->assign('BankListCss', $BankList['css']);
    unset($BankList['css']);
    $smarty->assign('BankList', $BankList);
    $smarty->display('user_transaction.dwt');
} elseif ($action == 'account_detail') {
    include_once ROOT_PATH . 'includes/lib_clips.php';
    $page = isset($_REQUEST['page']) ? intval($_REQUEST['page']) : 1;
    $account_type = 'user_money';
    /* 获取记录条数 */
    $sql = "SELECT COUNT(*) FROM " . $ecs->table('account_log') . " WHERE user_id = '{$user_id}'" . " AND {$account_type} <> 0 ";
    $record_count = $db->getOne($sql);
    //分页函数
    $pager = get_pager('user.php', array('act' => $action), $record_count, $page);
    //获取剩余余额
    $surplus_amount = get_user_surplus($user_id);
Exemple #2
0
            $smarty->assign('how_oos_list', $GLOBALS['_LANG']['oos']);
        }
    }
    /* 如果能开发票,取得发票内容列表 */
    if ((!isset($_CFG['can_invoice']) || $_CFG['can_invoice'] == '1') && isset($_CFG['invoice_content']) && trim($_CFG['invoice_content']) != '' && $flow_type != CART_EXCHANGE_GOODS) {
        $inv_content_list = explode("\n", str_replace("\r", '', $_CFG['invoice_content']));
        $smarty->assign('inv_content_list', $inv_content_list);
        $inv_type_list = array();
        foreach ($_CFG['invoice_type']['type'] as $key => $type) {
            if (!empty($type)) {
                $inv_type_list[$type] = $type . ' [' . floatval($_CFG['invoice_type']['rate'][$key]) . '%]';
            }
        }
        $smarty->assign('inv_type_list', $inv_type_list);
    }
    $BankList = show_bank('html');
    //$BankList = show_bank_pay('html');
    $smarty->assign('BankList', $BankList);
    /* 保存 session */
    $_SESSION['flow_order'] = $order;
    /**/
} elseif ($_REQUEST['step'] == 'select_shipping') {
    /*------------------------------------------------------ */
    //-- 改变配送方式
    /*------------------------------------------------------ */
    include_once 'includes/cls_json.php';
    $json = new JSON();
    $result = array('error' => '', 'content' => '', 'need_insure' => 0);
    /* 取得购物类型 */
    $flow_type = isset($_SESSION['flow_type']) ? intval($_SESSION['flow_type']) : CART_GENERAL_GOODS;
    /* 获得收货人信息 */