<%@ 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']" />
<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" />
<script type="text/javascript">
var _page = "order_detail";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _id = "<%=Request.QueryString["ID"]%>";
var _orderID = "<%=Order[ID]%>";
var _deliveryFeeOrginal = "<%=Order[DeliveryFee]%>";
var _deliveryProtect = <%=Convert.ToString(Order[DeliveryProtect]).ToLower()%>;
var _protectRate = <%=Order[DeliveryProtectRate]%>;
var _protectMin = <%=Order[DeliveryProtectMin]%>;
var _paymentRate = <%=Order[PaymentRate]%>;
var _taxRate = <%=Order[TaxRate]%>;
var _needInvoice = <%=Convert.ToString(Order[NeedInvoice]).ToLower()%>;
var _price = 0;
var _weight = 0;
var _sum = 0;
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_confirm_delete = "要删除此项吗？";
var _lang_expression_has_illegal_char = "配送费用公式中含有非法字符";
var _lang_expression_incorrect = "配送费用公式中含有非法字符";
var _lang_amount_incorrect = "数量不正确！";
var _lang_select_goods = "请选择产品！";
var _lang_goods_exists = "该商品已经添加！";
</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"></li>
		<li class="Middle"><a href="edit.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>">编辑</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="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>
	<div class="ToolBar">
		<form>
			名称：<input type="text" name="Name" class="Text <%=ContentLang%>Font" disabled="disabled" />
			数量：<input type="text" name="Amount" value="1" size="5" class="Text" />
			<input type="button" id="GoodsSelect" value="选择" />
			<input type="submit" class="Button" value="添加" />
			<input type="hidden" name="GoodsID" />
			<input type="hidden" name="GoodsSpecID" />
			<input type="hidden" name="Number" />
			<input type="hidden" name="Kind" />
			<input type="hidden" name="Weight" />
			<input type="hidden" name="Price" />
		</form>
	</div>
	<div id="List">
		<table id="DetailTable" border="0" cellpadding="4" cellspacing="1" class="ListTable">
			<thead>
				<tr>
					<th width="120">货号</th>
					<th>名称</th>
					<th width="50">类型</th>
					<th width="80">重量</th>
					<th width="60">价格</th>
					<th width="60">数量</th>
					<th width="40">修改</th>
					<th width="40">删除</th>
				</tr>
			</thead>
			<tbody>
				<ilghar:List Object="Order.Detail" Condition="OrderID=Order[ID] and PartID IS NULL">
					<ilghar:Record>
						<form action="<%=InnerID%>">
							<tr>
								<td><input type="hidden" name="Number" value="<%=Number%>" /><%=Number%></td>
								<td><%=Name%></td>
								<td>
									<%If String.Equals(Kind, "Physical")%>
										实体
									<%ElseIf String.Equals(Kind, "Card")%>
										虚拟卡
									<%ElseIf String.Equals(Kind, "File")%>
										数字文件
									<%EndIf%>
								</td>
								<td><%=Weight%></td>
								<td><%=Price%></td>
								<td><input type="text" name="Amount" value="<%=Amount%>" size="5" /></td>
								<td><input type="image" src="<%=ImagePath%>modify.gif" /></td>
								<td><a href="">删除</a></td>
							</tr>
						</form>
						<ilghar:List Object="Order.Detail" Condition="OrderID=Order[ID] and GoodsID=GoodsID and PartID IS NOT NULL">
							<ilghar:Record>
								<form action="<%=InnerID%>">
									<tr>
										<td><input type="hidden" name="Number" value="<%=Number%>" /><%=Number%></td>
										<td>&nbsp;&nbsp;&nbsp;&nbsp;+<%=Name%></td>
										<td>
											<%If String.Equals(Kind, "Physical")%>
												实体
											<%ElseIf String.Equals(Kind, "Card")%>
												虚拟卡
											<%ElseIf String.Equals(Kind, "File")%>
												数字文件
											<%EndIf%>
										</td>
										<td><%=Weight%></td>
										<td><%=Price%></td>
										<td><input type="text" name="Amount" value="<%=Amount%>" /></td>
										<td><input type="image" src="<%=ImagePath%>modify.gif" /></td>
										<td><a href="">删除</a></td>
									</tr>
								</form>
							</ilghar:Record>
						</ilghar:List>
					</ilghar:Record>
				</ilghar:List>
			</tbody>
		</table>
	</div>
	<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="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>shop.js"></script>
</body>
</html>