<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<title>{%$lngpack.sitename%}</title>
		<meta name="keywords" content="{%$lngpack.keyword%}" />
		<meta name="description" content="{%$lngpack.description%}" />
		<script type="text/javascript" src="{%$rootdir%}js/jquery.js"></script>
		<script type="text/javascript" src="{%$rootdir%}js/basicrun.js"></script>
		<script type="text/javascript" src="{%$rootdir%}js/jquery.Slide.js"></script>
		<script type="text/javascript" src="{%$rootdir%}js/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/citydb.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/cityselect.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_dialog.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_formvalidation.js"></script>
		<link href="{%$rootpath%}css/espcms_public.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/espcms_v5div.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/espcms_page.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
			$(window).load(function () {
				$("#clickmenubotton li span").hover(function () {
					$(this).addClass("menuhover");
					$(this).parent().find("ul.subnav").slideDown('fast').show();
					$(this).parent().hover(function () {
					}, function () {
						$(this).parent().find("ul.subnav").fadeOut('fast');
						$(this).parent().find("span").removeClass("menuhover");
					});
				});
			});
		</script>
	</head>

	<body>
		{%link file="public/head.html"%}
		<div class="espcms_page_bannpic"><img src="{%$rootpath%}images/bann/type_pic.jpg"/></div>

		<div class="espcms_page espcms_page_left_linkbg">
			<div class="espcms_page_left">
				{%list name=memmenu%}
			</div>
			<div class="espcms_page_right">
				<div class="espcms_book_paddingbottom0 pt10">
					<div class="espcms_bbs_form">
						<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
						<div class="title"><div class="messageicon3"></div><div class="messtitle">订单基本信息</div></div>
						<div class="content">
							<div class="espcms_form_group">
								<label for="username" class="control_label">订单号</label>
								<div class="control_required f14">{%$read.ordersn%}</div>
							</div>
							<div class="espcms_form_group">
								<label for="addtime" class="control_label">订单时间</label>
								<div class="control_required f14">{%$read.addtime|espcms_timeformat(4)%}</div>
							</div>
							<div class="espcms_form_group">
								<label for="ordertypename" class="control_label">订单处理状态</label>
								<div class="control_required f14">
									{%if $read.ordertype==0%}<span class="colorgorning2">作废</span>{%/if%}
									{%if $read.ordertype==1%}<span class="colorgreg">新订单</span>{%/if%}
									{%if $read.ordertype==2%}<span class="colorthree">已处理</span>{%/if%}
								</div>
							</div>
						</div>
						<div class="title"><div class="messageicon3"></div><div class="messtitle">产品列表</div></div>
						<div class="content">
							{% if count($product_array) > 0 %}
							<table style="width: 100%" class="tablelist">
								<tr>
									<td class="td01" valign="middle">产品编号</td>
									<td class="td01" valign="middle">产品名称</td>
									<td class="td01" valign="middle" align="right">单价</td>
									<td class="td01" valign="middle">数量</td>
									<td class="td01" valign="middle" align="right">小计</td>
								</tr>
								{%forlist from=$product_array key=i%}
								<tr>
									<td class="td02">{%$product_array[i].tsn%}</td>
									<td class="td02"><a target="_blank" class="infolink01" href="{%$product_array[i].link%}">{%$product_array[i].title%}</a></td>
									<td class="td02" valign="middle" align="right">{%$product_array[i].bprice|espcms_format_money(3)%}</td>
									<td class="td02 colorgreg" valign="middle">{%$product_array[i].amount%}</td>
									<td class="td02" align="right">{%$product_array[i].countprice|espcms_format_money(3)%}</td>
								</tr>
								{%/forlist%}
							</table>
							{%else%}
							<table width="100%" class="tablelist">
								<tr align="center" class="td02"><td valign="middle">订单中暂无产品或产品数据不存在！</td></tr>
							</table>
							{%/if%}
						</div>
						<div class="title"><div class="messageicon3"></div><div class="messtitle">金额及支付</div></div>
						<div class="content">
							<div class="espcms_form_group">
								<label for="productmoney" class="control_label">商品总额</label>
								<div class="control_required f14">{%$read.productmoney|espcms_format_money(3)%}</div>
							</div>
							{%if $read.shippingmoney>0%}
							<div class="espcms_form_group">
								<label for="shippingmoney" class="control_label">运送费用</label>
								<div class="control_required f14">{%$read.shippingmoney|espcms_format_money(3)%}</div>
							</div>
							{%/if%}
							{%if $read.discount>0%}
							<div class="espcms_form_group">
								<label for="discount" class="control_label">折扣</label>
								<div class="control_required f14">{%$read.discount|espcms_format_money(3)%}</div>
							</div>
							{%/if%}
							<div class="espcms_form_group">
								<label for="productmoney" class="control_label">订单总额</label>
								<div class="control_required f14">
									<span class="oninage">{%$read.orderamount|espcms_format_money(3)%}</span>（产品总额{%$read.productmoney|espcms_format_money(3)%}{%if $read.shippingmoney>0%} + 快递费{%$read.shippingmoney|espcms_format_money(3)%}{%/if%}{%if $read.invoicefeemoney>0%} + 发票手续费：{%$read.invoicefeemoney|espcms_format_money(3)%}{%/if%}{%if $read.discount>0%} - 优惠{%$read.discount|espcms_format_money(3)%}{%/if%}）
								</div>
							</div>
							{%if $read.payname%}
							<div class="espcms_form_group">
								<label for="payname" class="control_label">支付方式</label>
								<div class="control_required f14">{%$read.payname%}</div>
							</div>
							{%/if%}
							{%if $read.paytime%}
							<div class="espcms_form_group">
								<label for="paysn" class="control_label">支付凭证号</label>
								<div class="control_required f14">{%$read.paysn%}</div>
							</div>
							<div class="espcms_form_group">
								<label for="paytime" class="control_label">支付时间</label>
								<div class="control_required f14">{%$read.paytime|espcms_timeformat(3)%}</div>
							</div>
							{%/if%}

							{%if $read.ispay==0 && $read.paytype==2%}
							<div class="espcms_form_group">
								<label for="paytime" class="control_label"></label>
								<div class="control_required f14"><a href="{%$order_link.pay_ok%}" class="button orange">点击进行支付</a></div>
							</div>
							{%/if%}
						</div>

						<div class="title"><div class="messageicon3"></div><div class="messtitle">联系信息及其它信息</div></div>
						<div class="content">
							<div class="espcms_form_group">
								<label for="email" class="control_label">收件人</label>
								<div class="control_required f14">{%$read.consignee%}</div>
							</div>
							<div class="espcms_form_group">
								<label for="email" class="control_label">电子邮箱</label>
								<div class="control_required f14">{%$read.email%}</div>
							</div>
							<div class="espcms_form_group">
								<label for="email" class="control_label">详细地址</label>
								<div class="control_required f14">{%$read.province%} {%$read.city%} {%$read.district%} {%$read.address%}</div>
							</div>
							{%if $read.zipcode%}
							<div class="espcms_form_group">
								<label for="email" class="control_label">邮编</label>
								<div class="control_required f14">{%$read.zipcode%}</div>
							</div>
							{%/if%}
							<div class="espcms_form_group">
								<label for="email" class="control_label">联系电话</label>
								<div class="control_required f14">{%$read.tel%}</div>
							</div>
							<div class="espcms_form_group">
								<label for="email" class="control_label">手机</label>
								<div class="control_required f14">{%$read.mobile%}</div>
							</div>
							{% if count($product_array) > 0 %}
							<div class="espcms_form_group">
								<label for="email" class="control_label">配送方式</label>
								<div class="control_required f14">
									{%forlist from=$shipreceipt_list key=i%}
									<b>物流类型：</b><u>{%$shipreceipt_list[i].shippingname%}</u>&nbsp;&nbsp;
									<b>物流单号：</b><u>{%$shipreceipt_list[i].shippingsn%}</u>&nbsp;&nbsp;
									<b>发货时间：</b><u>{%$shipreceipt_list[i].sendtime|espcms_timeformat(4)%}</u>
									{%/forlist%}
								</div>
							</div>
							{%/if%}

							{%if $read.isinvoice%}
							{%if $read.invpayee%}
							<div class="espcms_form_group">
								<label for="email" class="control_label">发票抬头</label>
								<div class="control_required f14">{%$read.invpayee%}</div>
							</div>
							{%/if%}
							{%if $read.companysn%}
							<div class="espcms_form_group">
								<label for="email" class="control_label">企业证号</label>
								<div class="control_required f14">{%$read.companysn%}</div>
							</div>
							{%/if%}
							{%if $read.invcontent%}
							<div class="espcms_form_group">
								<label for="email" class="control_label">发票内容</label>
								<div class="control_required f14">{%$read.invcontent%}</div>
							</div>
							{%/if%}
							{%/if%}
							{%if $read.content%}
							<div class="espcms_form_group">
								<label for="email" class="control_label">备注</label>
								<div class="control_required f14">{%$read.content%}</div>
							</div>
							{%/if%}
							{%if $read.integral>0%}
							<div class="espcms_form_group">
								<label for="email" class="control_label">该订单所得积分</label>
								<div class="control_required f14">{%$read.integral%}</div>
							</div>
							{%/if%}
						</div>
						<b class="b5"></b><b class="b6"></b><b class="b7"></b><b class="b8"></b>
					</div>
				</div>
			</div>
		</div>

		{%link file="public/footer.html"%}
	</body>
</html>
