<%@ 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="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}
#DetailTable THEAD TH,#DetailTable TBODY TD{width:auto;text-align:center}
</style>
<script type="text/javascript">
var _page = "order_add";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _taxRate = <%=Config[TaxRate]%>;
var _price = 0;
var _weight = 0;
var _goodsIndex = 0;
var _goods = new Array();
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_price_adjustment_incorrect = "折扣或涨价格式不正确！";
var _lang_expression_has_illegal_char = "配送费用公式中含有非法字符";
var _lang_expression_incorrect = "配送费用公式中含有非法字符";
var _lang_goods_exists = "该商品已经添加！";
var _lang_amount_incorrect = "数量不正确！";
var _lang_select_goods = "请选择产品！";
var _lang_delete = "删除";
var _lang_physical = "实体";
var _lang_card = "虚拟卡";
var _lang_file = "数字文件";
var _lang_datetime_incorrect = "配送日期格式不正确！";
var _lang_select_paymentid = "请选择支付方式！";
var _lang_select_currency = "请选择支付货币！";
var _lang_none_member_acount = "非会员不能用预存款支付！";
var _lang_no_goods = "没有选择任何商品！";
var _lang_adding_goods = "正在添加商品...";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title">添加订单</div>
	<div class="Right">
		<ilgharUC:LanguageMenu runat="server" />
		<img height="15" src="<%=ImagePath%>dropdown.gif" /> 语言：<%=CurrentLanguage%>
	</div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="list.aspx?Lang=<%=ContentLang%>">订单列表</a></li>
		<li class="Right"></li>
		<li class="Left Selected"></li>
		<li class="Middle Selected">添加订单</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="file.aspx?Lang=<%=ContentLang%>">文件</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" size="30" maxlength="50" class="Text" />如果留空，则会自动生成</td>
				</tr>
				<tr>
					<th>会员：</th>
					<td>
						<span id="Member" member="" memberID=""></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" maxlength="50" class="Text <%=ContentLang%>Font" /></td>
							</tr>
							<tr>
								<th>电话：</th>
								<td><input type="text" name="OrdererPhone" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>手机：</th>
								<td><input type="text" name="OrdererMobile" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>Email：</th>
								<td><input type="text" name="OrdererEmail" maxlength="50" class="Text" /></td>
							</tr>
							<tr>
								<th>QQ：</th>
								<td><input type="text" name="OrdererQQ" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>WW：</th>
								<td><input type="text" name="OrdererWW" maxlength="50" class="Text" /></td>
							</tr>
							<tr>
								<th>MSN：</th>
								<td><input type="text" name="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" maxlength="50" class="Text <%=ContentLang%>Font" /></td>
							</tr>
							<tr>
								<th>电话：</th>
								<td><input type="text" name="ReceiverPhone" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>手机：</th>
								<td><input type="text" name="ReceiverMobile" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>地址：</th>
								<td><input type="text" name="ReceiverAddress" maxlength="255" class="Text" /></td>
							</tr>
							<tr>
								<th>邮编：</th>
								<td><input type="text" name="ReceiverZip" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>Email：</th>
								<td><input type="text" name="ReceiverEmail" maxlength="50" class="Text" /></td>
							</tr>
							<tr>
								<th>QQ：</th>
								<td><input type="text" name="ReceiverQQ" maxlength="20" class="Text" /></td>
							</tr>
							<tr>
								<th>WW：</th>
								<td><input type="text" name="ReceiverWW" maxlength="50" class="Text" /></td>
							</tr>
							<tr>
								<th>MSN：</th>
								<td><input type="text" name="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>
												<option value="<%=ID%>"><%=Name%></option>
											</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>
									</select>
								</td>
							</tr>
							<tr>
								<th>费用：</th>
								<td id="DeliveryFeeTD">0</td>
							</tr>
							<tr id="ProtectTR" style="display:none">
								<th>保价：</th>
								<td>
									<input type="radio" name="DeliveryProtect" id="DeliveryProtectYes" /><label for="DeliveryProtectYes">是</label>
									<input type="radio" name="DeliveryProtect" id="DeliveryProtectNo" checked="checked" /><label for="DeliveryProtectNo">否</label>
								</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="<%=DateTime.Now.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>
												<option value="<%=ID%>" rate="<%=Rate%>" pluginID="<%=PluginID%>"><%=Name%></option>
											</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 Convert.ToBoolean(IsDefault)%>
													<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>
									<input type="radio" name="NeedInvoice" id="NeedInvoiceYes" /><label for="NeedInvoiceYes">是</label>
									<input type="radio" name="NeedInvoice" id="NeedInvoiceNo" checked="checked" /><label for="NeedInvoiceNo">否</label>
								</td>
							</tr>
							<tr>
								<th>税率：</th>
								<td><%=Config[TaxRate]%>%</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<th>折扣或涨价：</th>
					<td><input type="text" name="PriceAdjustment" value="0" maxlength="20" class="Text" /></td>
				</tr>
				<tr>
					<th>备注：</th>
					<td><textarea name="Memo" cols="70" rows="6" wrap="off" class="Text <%=ContentLang%>Font"></textarea></td>
				</tr>
				<tr>
					<td colspan="2">
						<table id="DetailTable" border="0" cellpadding="4" cellspacing="1">
							<thead>
								<tr>
									<th style="width:120px">货号</th>
									<th>名称</th>
									<th style="width:50px">类型</th>
									<th style="width:80px">重量</th>
									<th style="width:60px">价格</th>
									<th style="width:60px">数量</th>
									<th style="width:80px">添加/删除</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td><input type="text" name="Amount" value="1" size="5" /></td>
									<td>
										<input type="button" id="GoodsAdd" value="添加" />
										<input type="button" id="GoodsSelect" value="选择" />
									</td>
								</tr>
							</tbody>
						</table>
					</td>
				</tr>
				<tr>
					<th>订单总价：</th>
					<td id="SumTD"></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>