<!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>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<title>{%$lngpack.sitename%}</title>
		<meta name="keywords" content="{%$lngpack.keyword%}" />
		<meta name="description" content="{%$lngpack.description%}" />
		<script type="text/javascript" src="{%$rootdir%}js/jquery.js"></script>
		<script type="text/javascript" src="{%$rootdir%}js/basicrun.js"></script>
		<script type="text/javascript" src="{%$rootdir%}js/jquery.Slide.js"></script>
		<script type="text/javascript" src="{%$rootdir%}js/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/citydb.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/cityselect.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_dialog.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_formvalidation.js"></script>
		<link href="{%$rootpath%}css/espcms_public.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/espcms_v5div.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/espcms_page.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
			$(window).load(function () {
				$("#clickmenubotton li span").hover(function () {
					$(this).addClass("menuhover");
					$(this).parent().find("ul.subnav").slideDown('fast').show();
					$(this).parent().hover(function () {
					}, function () {
						$(this).parent().find("ul.subnav").fadeOut('fast');
						$(this).parent().find("span").removeClass("menuhover");
					});
				});
			});
		</script>
	</head>

	<body>
		{%link file="public/head.html"%}
		<div class="espcms_page_bannpic"><img src="{%$rootpath%}images/bann/type_pic.jpg"/></div>

		<div class="espcms_page espcms_page_left_linkbg">
			<div class="espcms_page_left">
				{%list name=memmenu%}
			</div>
			<div class="espcms_page_right">
				<div class="espcms_page_typename">我的订单</div>
				<div class="espcms_page_location">您现在的位置：<a href="{%$homelink%}">首页</a> » <b>会员中心</b></div>
				<div class="espcms_page_right_line"></div>
				{%if count($array) > 0%}
				<table style="width: 100%" class="tablelist mt10">
					<tr>
						<td class="td01">订单编号</td>
						<td class="td01">金额</td>
						<td class="td01">支付状态</td>
						<td class="td01">处理状态</td>
						<td class="td01">时间</td>
						<td class="td01">操作</td>
					</tr>
					{%forlist from=$array key=i%}
					<tr>
						<td class="td02 tc">{%$array[i].ordersn%}</td>
						<td class="td02 tc">{%$array[i].orderamount|espcms_format_money(3)%}</td>
						<td class="td02 tc">
							{%if $array[i].ispay==1%}<span class="colorthree">已支付</span>{%/if%}
							{%if $array[i].ispay==2%}<span class="colorgorningage">已支付</span>{%/if%}
							{%if $array[i].ispay==0%}<span class="colorgreg">未支付</span>{%/if%}
						</td>
						<td class="td02 tc">
							{%if $array[i].ordertype==0%}<span class="colorgorning2">作废</span>{%/if%}
							{%if $array[i].ordertype==1%}<span class="colorgreg">新订单</span>{%/if%}
							{%if $array[i].ordertype==2%}<span class="colorthree">已处理</span>{%/if%}
						</td>
						<td class="td02 tc">{%$array[i].addtime|espcms_timeformat(3)%}</td>
						<td class="td02 tc">
							<a href="{%$array[i].view%}" class="button blue2">查看</a>
							{%if $array[i].islock==0 && $array[i].ordertype==1%}<a href="javascript:if (confirm('您确定要取消该订单吗？')) location.href='{%$array[i].cancel%}';" class="button">取消订单</a>{%/if%}
							{%if $array[i].islock==0 && $array[i].ordertype==1 && $array[i].ispay==0%}<a href="{%$array[i].edit%}" class="button orange">修改</a>{%/if%}
						</td>
					</tr>
					{%/forlist%}
				</table>
				<div class="espcms_page_botton">
					<div id="pagelist">{%$pagetext%}</div>
				</div>
				<div class="espcms_page_botton">
					<div id="pagination" class="pagination">
						{%$pagebotton%}
					</div>
				</div>
				{%else%}
				<div class="espcms_page_botton">
					<div id="pagination">暂无内容</div>
				</div>
				{%/if%}
			</div>
		</div>

		{%link file="public/footer.html"%}
	</body>
</html>
