<%@ Page PathInChannel="order/list{Page}{Ext}"%>
<%
if (Manager.User == null)
	Response.Redirect(BuildUrl(null, "login", null));
%>
<!doctype html>
<html lang="<%=PageLang%>">
<head>
<ali:Get ID="Me" Object="User" Guid="User['ID']" />
<meta charset="utf-8">
<title>我的订单 - <%=Channel[Name]%> - <%=Site[Name]%></title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<link rel="stylesheet" href="<%=CommonPath%>aliui/skin/default/common.css">
<ali:Comment><link rel="stylesheet" href="../S01/CHS/css/common.css"></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css">
<script>
var _page = 'order_list';
</script>
</head>
<body>
<div class="top-menu">
	<div class="wrap">
		<!-- start="登陆状态" -->
		<div> <span> 亲，欢迎您的光临本站，赶快淘喜欢的宝贝吧！ <a href="<%=BuildUrl("login")%>?Referer=<%=Request.RawUrl%>">[请登录]</a> <a href="<%=BuildUrl("register")%>">[免费注册]</a> </span> <span style="display:none">你好！<a href="<%=BuildUrl("index")%>" id="user"></a>，<a href="<%=BuildUrl("logout")%>?Referer=<%=Request.RawUrl%>">安全退出</a></span> </div>
		<!-- end="登陆状态" -->
		
		<!-- start="语言导航"-->
		<ali:Menu Condition="CategoryID={7dfb1283-df5c-4c2a-a94e-61d8dd38df5d}">
			<ul>
				<ali:Record>
					<li><a href="<%=URL%>"<%=Style%> target="<%=Target%>"><%=Name%></a></li>
				</ali:Record>
			</ul>
		</ali:Menu>
		<!-- end="语言导航" -->
	</div>
</div>

<div class="header">
	<div class="header-left"> <a href="<%=BuildUrl("index")%>"><img src="<%=Logo%>" alt="<%=Site[Name]%>"></a> </div>
	<div class="header-mid">
	   <!-- start="搜索" -->
		<form action="<%=BuildUrl(null, "goods_category", "CategoryID=_&BrandID=_&List=_&Order=_&OrderMore=_&q=_{q}")%>">
			<dl>
				<dd>
					<input type="text" name="q" class="keyword <%=PageLang%>Font">
				</dd>
				<dt>
					<input type="submit" value="搜索">
				</dt>
			</dl>
		</form>
		<!-- end="搜索" -->
		
		<!-- start="热门搜索" -->
		<ul>
			<li>热门搜索：</li>
			<ali:List Mark="Goods" Object="Goods" Page="1" PageSize="3" Condition="IsDeleted=false and IsReleased=true" Sort="HitCount DESC">
				<ali:Record>
					<li><a href="<%=BuildUrl()%>" target="_blank"><%=Name%></a></li>
				</ali:Record>
			</ali:List>
		</ul>
	    <!-- end="热门搜索" -->
	</div>
	<div class="header-right">
		<dl>
			<dt><a href="<%=BuildUrl("index")%>">我的账号</a></dt>
			<dd style="display:none">
				<!-- start="我的账号" -->
				<ali:Menu Condition="CategoryID={1155117e-8090-4978-8359-b3719f325d34}">
					<ali:Record>
						 <a href="<%=URL%>" target="<%=Target%>"><%=Name%></a> 
					 </ali:Record> 	
				</ali:Menu>
				<!-- end="我的账号" -->
			</dd>
		</dl>
		<div><a href="<%=BuildUrl("Home", "cart")%>">购物车(<b id="cart-count">0</b>)</a></div>
	</div>
</div>

<div class="menu">
	<dl>
		<!-- start="主菜单" -->
		<ali:Menu Condition="IsDisplay=true and CategoryID IS NULL" >
			<ali:Record>
				<dd><a href="<%=URL%>" target="<%=Target%>"><%=Name%></a></dd>
			</ali:Record>
		</ali:Menu>
		<!-- end="主菜单" -->
	</dl>
</div>

<!-- start="路径" -->
<div class="path">
	<ali:Path IncludeCurrentChannel="True">
		你的位置 :
		<ali:Record>
			<a href="<%=URL%>" title="<%=Name%>"><%=Name%></a> &gt;
		</ali:Record>
	</ali:Path>
	我的订单
</div>
<!-- end="路径" -->

<div class="frame5">
	<div class="frame5-side">
		<div class="frame5-border">
			<!-- start="账号列表"-->
			<div class="block13">
				<dl>
					<dt>
						<%If Convert.ToString(Me[Head]) == String.Empty%>
							<img src="<%=ImagePath%>head.jpg" alt="<%=Me[Name]%>">
						<%Else%>
							<img src="<%=Me[Head]%>" alt="<%=Me[Name]%>">
						<%EndIf%>
					</dt>
					<dd>你好！<%=User["Name"]%></dd>
				</dl>
				<p ><a href="<%=BuildUrl("logout")%>">安全退出</a></p>
				<ali:List Mark="System" Object="Channel.Menu" Condition="ParentID IS NULL and ChannelID=Channel[ID]">
					<ul>
						<ali:Record>
							<%If Request.RawUrl == Convert.ToString(Channel[Path]) + Convert.ToString(URL)%>
								<li><a href="<%=Channel[Path]%><%=URL%>" class="active"><img src="<%=ImagePath%>user.gif"><%=Name%></a></li>
							<%Else%>
								<li><a href="<%=Channel[Path]%><%=URL%>"><img src="<%=ImagePath%>user.gif"><%=Name%></a></li>
							<%EndIf%>
						</ali:Record>
					</ul>
				</ali:List>
			</div>
			<!-- end="账号列表" -->
		</div>	
	</div>
	<div class="frame5-main">
		<div class="frame5-border">
			<!-- start="我的订单"-->
			<div class="block17">
				<table>
					<caption>
						我的订单
					</caption>
					<thead>
						<tr>
							<td>订单号</td>
							<td>下单时间</td>
							<td width="80px">金额</td>
							<td>订单状态</td>
							<td width="100px">操作</td>
						</tr>
					</thead>
					<tbody>
						<ali:List ID="List" Mark="Home" Object="Order" Page="PageNumber" PageSize="14" Condition="UserID=User['ID']">
							<ali:Record>
								<tr>
									<td><%=No%></td>
									<td><%=CreateTime%></td>
									<td><%=Sum%></td>
									<td>
										<%If Convert.ToInt32(IsFinished) == 0%>
											<%If Convert.ToInt32(IsPayed) == 0%>
												未付款
											<%ElseIf Convert.ToInt32(IsPayed) == 1%>
													部分付款
											<%ElseIf Convert.ToInt32(IsPayed) == 2%>
													已付款
											<%ElseIf Convert.ToInt32(IsPayed) == 3%>
													部分退款
											<%ElseIf Convert.ToInt32(IsPayed) == 4%>
													已退款
											<%EndIf%>
												，
											<%If Convert.ToInt32(IsDelivered) == 0%>
													未发货
											<%ElseIf Convert.ToInt32(IsDelivered) == 1%>
													部分发货
											<%ElseIf Convert.ToInt32(IsDelivered) == 2%>
													已发货
											<%ElseIf Convert.ToInt32(IsDelivered) == 3%>
													已收货
											<%ElseIf Convert.ToInt32(IsDelivered) == 4%>
													部分退货
											<%ElseIf Convert.ToInt32(IsDelivered) == 5%>
													已退货
											<%EndIf%>
										<%ElseIf Convert.ToInt32(IsFinished) == 1%>
											交易完成
										<%ElseIf Convert.ToInt32(IsFinished) == 2%>
											交易作废
										<%ElseIf Convert.ToInt32(IsFinished) == 3%>
											交易结束
										<%EndIf%>
									</td>
									<td>
										<%If Convert.ToInt32(IsPayed) == 0%>
										<a href="<%=BuildUrl("Home", "pay", "ID=" + ID)%>" target="_blank">付款</a>
										<%EndIf%>
										<%If Convert.ToInt32(IsDelivered) == 2%>
											<a href="<%=BuildUrl(null, "receive", "ID=" + InnerID)%>">确认收货</a>
										<%EndIf%>
									</td>
								</tr>
							</ali:Record>
						</ali:List>
					</tbody>
					<tfoot>
						<tr>
							<td colspan="5">
								<ali:Pagination Page="PageNumber" PageSize="14" RecordCount="List[RecordCount]">
									<div class="pagenation">
										<h1>
											总共<b><%=List[RecordCount]%></b>个记录

											<ali:FirstPage>
												<ali:Yes>
													<a class="disable">上页</a>
												</ali:Yes>
												<ali:No>
													<a href="<%=PreviousPage%>">上页</a>
												</ali:No>
											</ali:FirstPage>
						
											<ali:LastPage>
												<ali:Yes>
													<a class="disable">下页</a>
												</ali:Yes>
												<ali:No>
													<a href="<%=NextPage%>">下页</a>
												</ali:No>
											</ali:LastPage>
										</h1>
									</div>
								</ali:Pagination>
							</td>
						</tr>
					</tfoot>
				</table>
			</div>
			<!-- end="我的订单"  -->
		</div>
	</div>
</div>

<!-- start="页脚帮助导航" -->
<ali:Menu Condition="IsDisplay=true and CategoryID={43933a81-064a-4f2c-b32e-5e5f7f319f8e} and ParentID IS NULL">
	<div class="block2 margin1">
		<div class="block2-wrap">
			<ali:Record>
				<dl>
					<dt><a href="<%=URL%>" target="<%=Target%>"><%=Name%></a></dt>
					<ali:Menu Condition="IsDisplay=true and ParentID=ID">
						<ali:Record>
							<dd><a href="<%=URL%>" target="<%=Target%>"><%=Name%></a></dd>
						</ali:Record>
					</ali:Menu>
				</dl>
			</ali:Record>
		</div>
	</div>
</ali:Menu>
<!-- end="页脚帮助导航" -->

<!-- start="友情链接" -->
<div class="link">
	<ul>
		<ali:List Mark="System" Object="Link" Condition="IsChecked=true and Logo IS NOT NULL">
			<ali:Record>
				<li><a href="<%=URL%>" target="_blank" ><img src="<%=Logo%>" alt="<%=Name%>"></a></li>
			</ali:Record>
		</ali:List>
	</ul>
</div>
<!-- end="友情链接" -->

<!-- start="脚注菜单" -->
<div class="footer-menu">
	<ali:Menu Condition="IsDisplay=true and CategoryID={BAC035A8-F6BB-4772-8D51-A7F4F3AB7AD3}">
		<ali:Record>
			<a href="<%=URL%>" target="<%=Target%>"><%=Name%></a>
			<ali:Separator>|</ali:Separator>
		</ali:Record>
	</ali:Menu>
</div>
<!--end="脚注菜单" -->
	
<!-- start="脚注" -->
<div class="footer">
	<%=Footer%>
</div>
<!-- end="脚注" -->

<script src="<%=CommonPath%>jquery/core.js"></script> 
<script src="<%=CommonPath%>json2.js"></script>
<script src="<%=CommonPath%>aliui/ali.min.js"></script>
<%If PageLang == "UYG" || PageLang == "KZA" || PageLang == "KGA"%>
	<script src="<%=CommonPath%>IlgharIme.js"></script>
<%EndIf%>
<script src="<%=JsPath("global.js")%>"></script>
<script src="<%=JsPath%>common.js"></script>
<%=StatCode%>
</body>
</html>
