<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<ilghar:Get ID="Order" Object="Order" InnerID="Request.QueryString['ID']" />
<table id="DetailTable" border="0" cellpadding="4" cellspacing="1">
	<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>