ECSHOP取得国家列表,如果有收货人列表,取得省市区列表
来源:互联网 发布:星球大战评价 知乎 编辑:程序博客网 时间:2024/04/29 22:59
//取得国家列表,如果有收货人列表,取得省市区列表
foreach ($consignee_list AS $region_id => $consignee) { $consignee['country'] = isset($consignee['country']) ? intval($consignee['country']) : 0; $consignee['province'] = isset($consignee['province']) ? intval($consignee['province']) : 0; $consignee['city'] = isset($consignee['city']) ? intval($consignee['city']) : 0; $consignee['district'] = isset($consignee['district']) ? intval($consignee['district']) : 0;//morestock_morecity $province_list[$region_id] = get_regions(1, $consignee['country']); $city_list[$region_id] = get_regions(2, $consignee['province']); $district_list[$region_id] = get_regions(3, $consignee['city']); $xiangcun_list[$region_id] = get_regions(4, $consignee['district']);//morestock_morecity } /* 获取默认收货ID */ $address_id = $db->getOne("SELECT address_id FROM " .$ecs->table('users'). " WHERE user_id='$user_id'"); //赋值于模板 $smarty->assign('real_goods_count', 1); $smarty->assign('shop_country', $_CFG['shop_country']); $smarty->assign('shop_province', get_regions(1, $_CFG['shop_country'])); $smarty->assign('province_list', $province_list); $smarty->assign('address', $address_id); $smarty->assign('city_list', $city_list); $smarty->assign('district_list', $district_list); $smarty->assign('xiangcun_list', $xiangcun_list);//morestock_morecity $smarty->assign('currency_format', $_CFG['currency_format']); $smarty->assign('integral_scale', $_CFG['integral_scale']); $smarty->assign('name_of_region', array($_CFG['name_of_region_1'], $_CFG['name_of_region_2'], $_CFG['name_of_region_3'], $_CFG['name_of_region_4'])); $smarty->display('user_transaction.dwt');
PS:常用JS
-----JS返回---
返回页面: href="javascript:history.back(-1)
-----JS删除-----
<a href="javascript:void(0);" onclick="if (confirm('{$lang.confirm_drop_address}'))location.href='user.php?act=drop_consignee&id={$consignee.address_id}'""> 删除</a>
0 0
- ECSHOP取得国家列表,如果有收货人列表,取得省市区列表
- )取得窗口列表:
- 取得文件列表
- windows取得串口列表
- 取得已经安装程序列表
- 取得运行中程序列表
- 取得SQLSERVEREB服务器列表涵数。
- 取得网络中SQL的服务器列表
- WPF中取得系统字体列表
- 如何取得窗体中的组件(Component) 列表
- js取得select下拉列表的值
- 如何取得下拉列表中的显示名称
- 取得輸入法列表,並激活指定輸入法!
- Android取得已安装程序列表
- javascript 取得下拉列表的值
- 取得一个文件的打开方式列表
- PB 去掉重复值,取得唯一列表
- C# Linq 取得两个列表的交集
- 81. Search in Rotated Sorted Array II
- 【转载】font-family微软雅黑 要用Microsoft Yahei
- PHP 能和 ACCESS 连接吗???
- dede v57跳转网址直接链接而非直接中转的PHP文件
- Sublime 常用插件包
- ECSHOP取得国家列表,如果有收货人列表,取得省市区列表
- removeFromSuperView
- jquery 判断图片加载完毕例子
- 域名备案需要什么,多少钱。
- js 屏蔽鼠标右键,复制,黏贴,保存
- 如何在dreamweaver中实现大小写转换
- android开发实现微信三方登录
- xls与csv文件的区别
- java Socket用法详解