<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<%@ Register TagPrefix="IlgharUC" TagName="Ime" Src="../../ime.dwt.ascx"%>
<%@ Register TagPrefix="IlgharUC" TagName="LanguageMenu" Src="../../language_menu.dwt.ascx"%>
<!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>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ilghar:Get ID="Order" Object="Order" InnerID="Request.QueryString['ID']" />
<ilghar:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ilghar:Comment><link rel="stylesheet" type="text/css" href="../../S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<ilgharUC:Ime Ime="true" Eot="true" runat="server" />
<style type="text/css">
TD TABLE{background:#FFF}
TD TABLE TH{width:100px}
</style>
<script type="text/javascript">
var _page = "order_edit";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _taxRate = <%=Config[TaxRate]%>;
var _weight = <%=Order[Weight]%>;
var _price = <%=Order[Price]%>;
var _id = "<%=Request.QueryString["ID"]%>";
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_expression_has_illegal_char = "配送费用公式中含有非法字符";
var _lang_expression_incorrect = "配送费用公式格式不正确！";
var _lang_price_adjustment_incorrect = "折扣或涨价格式不正确！";
var _lang_number_empty = "订单号不能空！";
var _lang_select_paymentid = "请选择支付方式！";
var _lang_select_currency = "请选择支付货币！";
var _lang_price_adjustment_incorrect = "折扣或涨价格式不正确！";
var _lang_none_member_acount = "非会员不能用预存款支付！";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title"><a href="list.aspx?Lang=<%=ContentLang%>">订单列表</a> → <span class="<%=ContentLang%>Font"><%=Order[Number]%></span></div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left Selected"></li>
		<li class="Middle Selected">编辑</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="detail.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">商品列表</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="feedback.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">反馈</a></li>
		<li class="Right"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<form>
		<table border="0" cellpadding="4" cellspacing="1">
			<tfoot>
				<tr><td colspan="2"><input type="submit" value="编辑" /></td></tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="120">订单号：</th>
					<td><input type="text" name="Number" value="<%=Order[Number]%>" size="30" maxlength="50" class="Text" /></td>
				</tr>
				<tr>
					<th>会员：</th>
					<td>
						<span id="Member" member="<%=Order[Member]%>" memberID="<%=Order[MemberID]%>"><%=Order[Member]%></span>
						<%If MemberChannel == null%>
							<input type="button" id="MemberSelect" value="选择" disabled="disabled" />
						<%Else%>
							<input type="button" id="MemberSelect" value="选择" />
						<%EndIf%>
					</td>
				</tr>
				<tr>
					<th>订单人：</th>
					<td>
						<table border="0" cellpadding="4" cellspacing="1">
							<tr>
								<th>姓名：</th>
								<td><input type="text" name="OrdererName" value="<%=Order[OrdererName]%>" maxlength="50" class="Text <%=ContentLang%>Font" /></td>
							</tr>
							<tr>
								<th>电话：</th>
								<td><input type="text" name="OrdererPhone" value="<%=Order[OrdererPhone]%>" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>手机：</th>
								<td><input type="text" name="OrdererMobile" value="<%=Order[OrdererMobile]%>" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>Email：</th>
								<td><input type="text" name="OrdererEmail" value="<%=Order[OrdererEmail]%>" maxlength="50" class="Text" /></td>
							</tr>
							<tr>
								<th>QQ：</th>
								<td><input type="text" name="OrdererQQ" value="<%=Order[OrdererQQ]%>" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>WW：</th>
								<td><input type="text" name="OrdererWW" value="<%=Order[OrdererQQ]%>" maxlength="50" class="Text" /></td>
							</tr>
							<tr>
								<th>MSN：</th>
								<td><input type="text" name="OrdererMSN" value="<%=Order[OrdererMSN]%>" maxlength="50" class="Text" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<th>收货人：</th>
					<td>
						<table border="0" cellpadding="4" cellspacing="1">
							<tr>
								<th>姓名：</th>
								<td><input type="text" name="ReceiverName" value="<%=Order[ReceiverName]%>" maxlength="50" class="Text <%=ContentLang%>Font" /></td>
							</tr>
							<tr>
								<th>电话：</th>
								<td><input type="text" name="ReceiverPhone" value="<%=Order[ReceiverPhone]%>" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>手机：</th>
								<td><input type="text" name="ReceiverMobile" value="<%=Order[ReceiverMobile]%>" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>地址：</th>
								<td><input type="text" name="ReceiverAddress" value="<%=Order[ReceiverAddress]%>" maxlength="255" class="Text" /></td>
							</tr>
							<tr>
								<th>邮编：</th>
								<td><input type="text" name="ReceiverZip" value="<%=Order[ReceiverZip]%>" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>Email：</th>
								<td><input type="text" name="ReceiverEmail" value="<%=Order[ReceiverEmail]%>" maxlength="50" class="Text" /></td>
							</tr>
							<tr>
								<th>QQ：</th>
								<td><input type="text" name="ReceiverQQ" value="<%=Order[ReceiverQQ]%>" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>WW：</th>
								<td><input type="text" name="ReceiverWW" value="<%=Order[ReceiverWW]%>" maxlength="50" class="Text" /></td>
							</tr>
							<tr>
								<th>MSN：</th>
								<td><input type="text" name="ReceiverMSN" value="<%=Order[ReceiverMSN]%>" maxlength="50" class="Text" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<th>配送：</th>
					<td>
						<table border="0" cellpadding="4" cellspacing="1">
							<tr>
								<th>地区：</th>
								<td>
									<select name="RegionID" class="<%=ContentLang%>Font">
										<option value="">未指定</option>
										<ilghar:List Mark="System" Object="Region">
											<ilghar:Record>
												<%If Guid.Equals(ID, Order[RegionID])%>
													<option value="<%=ID%>" selected="selected"><%=Name%></option>
												<%Else%>
													<option value="<%=ID%>"><%=Name%></option>
												<%EndIf%>
											</ilghar:Record>
										</ilghar:List>
									</select>
								</td>
							</tr>
							<tr>
								<th>方式：</th>
								<td>
									<select name="DeliveryID" class="<%=ContentLang%>Font">
										<option value="" fee="0" isProtect="false" protectRate="0" protectMin="0">未指定</option>
										<ilghar:List Mark="System" Object="Delivery.Region" Condition="RegionID=Order[RegionID]">
											<ilghar:Record>
												<%If Guid.Equals(DeliveryID, Order[DeliveryID])%>
													<option value="<%=DeliveryID%>" fee="<%=Fee%>" isProtect="<%=IsProtect%>" protectRate="<%=ProtectRate%>" protectMin="<%=ProtectMin%>" selected="selected"><%=DeliveryName%></option>
												<%Else%>
													<option value="<%=DeliveryID%>" fee="<%=Fee%>" isProtect="<%=IsProtect%>" protectRate="<%=ProtectRate%>" protectMin="<%=ProtectMin%>"><%=DeliveryName%></option>
												<%EndIf%>
											</ilghar:Record>
										</ilghar:List>
									</select>
								</td>
							</tr>
							<tr>
								<th>费用：</th>
								<td id="DeliveryFeeTD">0</td>
							</tr>
							<tr id="ProtectTR" style="display:none">
								<th>保价：</th>
								<td>
									<%If Convert.ToBoolean(Order[DeliveryProtect])%>
										<input type="radio" name="DeliveryProtect" id="DeliveryProtectYes" checked="checked" /><label for="DeliveryProtectYes">是</label>
										<input type="radio" name="DeliveryProtect" id="DeliveryProtectNo" /><label for="DeliveryProtectNo">否</label>
									<%Else%>
										<input type="radio" name="DeliveryProtect" id="DeliveryProtectYes" /><label for="DeliveryProtectYes">是</label>
										<input type="radio" name="DeliveryProtect" id="DeliveryProtectNo" checked="checked" /><label for="DeliveryProtectNo">否</label>
									<%EndIf%>
								</td>
							</tr>
							<tr id="ProtectRateTR" style="display:none">
								<th>保价百分率：</th>
								<td id="ProtectRateTD">0%</td>
							</tr>
							<tr id="ProtectMinTR" style="display:none">
								<th>最低保价金额：</th>
								<td id="ProtectMinTD">0</td>
							</tr>
							<tr>
								<th>时间：</th>
								<td><input type="text" name="DeliveryTime" value="<%=Convert.ToDateTime(Order[DeliveryTime]).ToString("yyyy-MM-dd")%>" maxlength="20" class="Text" /></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<th>支付：</th>
					<td>
						<table border="0" cellpadding="4" cellspacing="1">
							<tr>
								<th>方式：</th>
								<td>
									<select name="PaymentID" class="<%=ContentLang%>Font">
										<ilghar:List Mark="System" Object="Payment">
											<ilghar:Record>
												<%If Guid.Equals(ID, Order[PaymentID])%>
													<option value="<%=ID%>" rate="<%=Rate%>" pluginID="<%=PluginID%>" selected="selected"><%=Name%></option>
												<%Else%>
													<option value="<%=ID%>" rate="<%=Rate%>" pluginID="<%=PluginID%>"><%=Name%></option>
												<%EndIf%>
											</ilghar:Record>
										</ilghar:List>
									</select>
								</td>
							</tr>
							<tr>
								<th>货币：</th>
								<td>
									<select name="Currency" class="<%=ContentLang%>Font">
										<ilghar:List Mark="System" Object="Currency">
											<ilghar:Record>
												<%If Guid.Equals(Ab, Order[Currency])%>
													<option value="<%=Ab%>" selected="selected"><%=Name%></option>
												<%Else%>
													<option value="<%=Ab%>"><%=Name%></option>
												<%EndIf%>
											</ilghar:Record>
										</ilghar:List>
									</select>
								</td>
							</tr>
							<tr>
								<th>费率：</th>
								<td id="PaymentRateTD">0%</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<th>发票：</th>
					<td>
						<table border="0" cellpadding="4" cellspacing="1">
							<tr>
								<th>是否需要：</th>
								<td>
									<%If Convert.ToBoolean(Order[NeedInvoice])%>
										<input type="radio" name="NeedInvoice" id="NeedInvoiceYes" checked="checked" /><label for="NeedInvoiceYes">是</label>
										<input type="radio" name="NeedInvoice" id="NeedInvoiceNo" /><label for="NeedInvoiceNo">否</label>
									<%Else%>
										<input type="radio" name="NeedInvoice" id="NeedInvoiceYes" /><label for="NeedInvoiceYes">是</label>
										<input type="radio" name="NeedInvoice" id="NeedInvoiceNo" checked="checked" /><label for="NeedInvoiceNo">否</label>
									<%EndIf%>
								</td>
							</tr>
							<tr>
								<th>税率：</th>
								<td><%=Order[TaxRate]%>%</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<th>折扣或涨价：</th>
					<td><input type="text" name="PriceAdjustment" value="<%=Order[PriceAdjustment]%>" maxlength="20" class="Text" /></td>
				</tr>
				<tr>
					<th>备注：</th>
					<td><textarea name="Memo" cols="70" rows="6" wrap="off" class="Text <%=ContentLang%>Font"><%=Order[Memo]%></textarea></td>
				</tr>
				<tr>
					<th>订单总价：</th>
					<td id="SumTD">0</td>
				</tr>
			</tbody>
		</table>
	</form>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=Manager.GetModulePath(null)%><%=SystemChannel[IlgharCMS.SystemModule.Alias.Module.Namespace]%>/alias.js"></script>
<script type="text/javascript" src="<%=CommonPath%>xmldom.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>shop.js"></script>
</body>
</html>