<!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");
					});
				});
				$("#ordersaveform").espcms_formvalidation();
				$("#city_select").citySelect({
					prov: "{%if $read.province%}{%$read.province%}{%else%}北京{%/if%}",
					city: "{%$read.city%}",
					dist: "{%$read.district%}",
					nodata: "none"
				});
				load_tabclick('.tab_click');
			});
		</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">
				<form name="ordersaveform" id="ordersaveform" method="post" action="{%$order_link.editsave%}">
					<input type="hidden" name="tokenname" value="{%$tokenkey.token_name%}"/>
					<input type="hidden" name="tokenkey" value="{%$tokenkey.token_key%}"/>
					<input type="hidden" name="oid" value="{%$read.oid%}"/>
					<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>
							</div>

							<div class="title"><div class="messageicon3"></div><div class="messtitle">联系信息及其它信息</div></div>
							<div class="content">
								<div class="espcms_form_group">
									<label for="title" class="control_label16">收货人姓名</label>
									<div class="control_required20"><input type="text" name="consignee" value="{%$read.consignee%}" class="col4 infoInput" data-validation-minlength="4" data-validation-maxlength="50" placeholder="请填写订单收货人真实姓名" title="请填写订单收货人真实姓名" data-validation-msg="抱歉：收货人真实姓名输入错误，请返回重新输入！"/></div>
								</div>
								<div class="espcms_form_group">
									<label for="title" class="control_label16">E-mail</label>
									<div class="control_required20 f14"><input type="text" name="email" value="{%$read.email%}" class="col5 infoInput" data-validation="^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$"  placeholder="请输入E-mail" title="请输入E-mail" data-validation-msg="抱歉：E-mail输入错误，请重新输入！"/></div>
								</div>
								<div class="espcms_form_group">
									<label for="title" class="control_label16">联系电话</label>
									<div class="control_required20 f14"><input type="text" name="tel" value="{%$read.tel%}" class="col4 infoInput" placeholder="请输入固定电话，格式为：区号-电话号码-分机，例如：0716-2209455-001" title="请输入固定电话，格式为：区号-电话号码-分机，例如：0716-2209455-001" data-isvalidation="true" data-validation="^[\d-]{6,}$" data-validation-msg="抱歉，固定电话输入错误，请输入格式为：区号-电话号码-分机的号码，分机可以不用填写" /></div>
								</div>
								<div class="espcms_form_group">
									<label for="title" class="control_label16">手机</label>
									<div class="control_required20 f14"><input type="text" name="mobile" value="{%$read.mobile%}" class="col4 infoInput" data-validation="^1[\d]{10}$" placeholder="请输入11位手机号" title="请输入11位手机号" data-validation-msg="抱歉：手机号输入错误，请重新输入！"/> </div>
								</div>
								<div class="espcms_form_group">
									<label for="cityone" class="control_label16">地区</label>
									<div class="control_required20 f14">
										<div id="city_select">
											<select class="infoInput prov" data-size="8" name="province"></select>
											<select class="infoInput city" data-size="8" name="city"></select>
											<select class="infoInput dist" data-size="8" name="district"></select>
										</div>
									</div>
								</div>
								<div class="espcms_form_group">
									<label for="title" class="control_label16">详细地址</label>
									<div class="control_required20 f14"><input type="text" name="address" value="{%$read.address%}" class="col6 infoInput" data-validation-minlength="4" data-validation-maxlength="200" placeholder="请填写订单详细地址" title="请填写订单详细地址" data-validation-msg="抱歉：订单详细地址输入错误，请返回重新输入！"/></div>
								</div>
								<div class="espcms_form_group">
									<label for="title" class="control_label16">邮编</label>
									<div class="control_required20 f14"><input type="text" name="zipcode" value="{%$read.zipcode%}" class="col3 infoInput" data-validation="^[\d]*$" placeholder="请输入邮编" title="请输入邮编" data-validation-msg="抱歉：邮编输入错误，请重新输入！"/></div>
								</div>
								<div class="espcms_form_group">
									<label for="title" class="control_label16">索取发票</label>
									<div class="control_required20 f14">
										<input type="radio" name="isinvoice" class="tab_click" open_list=".isinvoice_div" value="1"{%if $read.isinvoice==1%}checked{%/if%}/> 需要&nbsp;
										<input type="radio" name="isinvoice" class="tab_click" close_list=".isinvoice_div" value="0"{%if $read.isinvoice==0%}checked{%/if%}/> 不需要
									</div>
								</div>
								<div class="espcms_form_group isinvoice_div {%if $read.isinvoice==0%}displaynone{%/if%}">
									<label for="title" class="control_label16">发票全称</label>
									<div class="control_required20 f14">
										<input type="text" name="invpayee" value="{%$read.invpayee%}" class="col6 infoInput" link-validation="isinvoice" link-gettype="radio" link-getvalue="1" data-validation-minlength="4" data-validation-maxlength="200" placeholder="请输入发票全称，长度为2至150个以内任意字符" title="请输入发票全称，长度为2至150个以内任意字符" data-validation-msg="抱歉，发票全称填写错误，请填写长度2至150位的任意字符！"/>
									</div>
								</div>
								<div class="espcms_form_group isinvoice_div {%if $read.isinvoice==0%}displaynone{%/if%}">
									<label for="title" class="control_label16">企业证号</label>
									<div class="control_required20 f14"><input type="text" name="companysn" value="{%$read.companysn%}" id="companysn" class="col6 infoInput" link-validation="isinvoice" link-gettype="radio" link-getvalue="1" data-validation-minlength="5" data-validation-maxlength="50" placeholder="请输入企业证号（建议填写五证合一或者公司营业执照号），字符长度由2至50位以内的字母和数字字符组成" title="请输入企业证号（建议填写五证合一或者公司营业执照号），字符长度由2至50位以内的字母和数字字符组成" data-validation-msg="抱歉，证件号码填写错误，请填写长度2至50位以内的字母和数字字符！" /></div>
								</div>
								<div class="espcms_form_group isinvoice_div {%if $read.isinvoice==0%}displaynone{%/if%}">
									<label for="title" class="control_label16">发票内容</label>
									<div class="control_required20 f14"><input type="text" name="invcontent" value="{%$read.invcontent%}" id="invcontent" class="col6 infoInput" link-validation="isinvoice" link-gettype="radio" link-getvalue="1" data-isvalidation="true" data-validation-minlength="5" data-validation-maxlength="200" placeholder="请输入开票内容" title="请输入开票内容" data-validation-msg="抱歉，当前开票内容输入错误！"/></div>
								</div>
								<div class="espcms_form_group">
									<label for="title" class="control_label16">备注</label>
									<div class="control_required20 f14">
										<textarea class="form-control" style="width:100%;height:120px" name="content" id="content" maxlength="800" data-isvalidation="true" data-validation-minlength="4" data-validation-maxlength="200"  placeholder="请输入订单备注，长度不超过500个以内任意字符" title="请输入订单备注，长度不超过500个以内任意字符" data-validation-msg="抱歉，订单备注输入错误，请输入长度不超过500个以内的任意字符！">{%$read.content%}</textarea>
									</div>
								</div>

								<div class="espcms_form_group">
									<label for="title" class="control_label16"></label>
									<div class="control_required20 f14">
										<input type="submit" id="submit" class="button blue2" value="确认修改"/>
									</div>
								</div>
							</div>
							<b class="b5"></b><b class="b6"></b><b class="b7"></b><b class="b8"></b>
						</div>
					</div>
				</form>
			</div>
		</div>

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