
<link href="resources/css/constyle.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="resources/js/jquery.js"></script>
<script type="text/javascript" src="resources/js/jquery.slide.js"></script>
<script type="text/javascript" src="resources/js/jquery.tabs.js"></script>
<script type="text/javascript" src="resources/js/global.js"></script>
<script type="text/javascript" src="resources/js/common.js"></script>



<div id="main">
<div class="inner">
	<div class="left">{{include file="user_d_left.inc.html"}}</div>
	
	<div class="right">
	    <ul class="maintitle">
			<li id="mainlink"><img src="resources/images/user/ordericon.gif" align="absmiddle"> 订单列表 </li>
			<li class="tar"><a   href="javascript:location.replace(location.href);" title="刷新" >刷新本页</a> </li>
		</ul>
		<form method='post' action='../user/order_list.php'>
			快速搜索：<input type="text" name="keyword" class="inputbox">
		    <input type="submit" value="搜索" class="btn2">
			<span>
			   <a href='../user/order_list.php'>所有订单</a> -
			   <a href='../user/order_list.php?iStatus=1'>已交费</a> -
			   <a href='../user/order_list.php?iStatus=2'>已发货</a> -
			      <a href='../user/order_list.php?iStatus=3'>已完成</a> -
			   <a href='../user/order_list.php?iStatus=0'>不生效订单</a>
			</span>
		</form>
		<div style="margin-top:10px;">
		<form method='post' action='../user/order_list.php'>
			按日期搜索：
			<select name="fromYear"><option value=""></option>{{$option_fromYear}}</select>年
			<select name="fromMonth"><option value=""></option>{{$option_fromMonth}}</select>月
			<select name="fromDay"><option value=""></option>{{$option_fromDay}}</select>日 -->
			<select name="toYear"><option value=""></option>{{$option_toYear}}</select>年
			<select name="toMonth"><option value=""></option>{{$option_toMonth}}</select>月
			<select name="toDay"><option value=""></option>{{$option_toDay}}</select>日 
			<select name='iStatus'><option value="">不限</option>{{$option_iStatus}}</select>
			<input type="submit" value="搜索" class="btn2">
		</form>
		</div>
		<table class="table tac">
		<tr class="tBar">
			  <td nowrap>编号</td>
			  <td nowrap>金额</td>
			  <td nowrap>说明</td>
			  <td nowrap>状态</td>
			  <td>时间</td>
			  <td> 物流</td>
			  <td>操作/管理</td>
		</tr>
		{{section name=OrderItem loop=$OrderItems}}
		<tr bgcolor='{{if $OrderItems[OrderItem].bg == "#FFFFFF"}}#ffffff{{else}}#FFFFFF{{/if}}' height='20' onmouseout='outStyle(this)' onmouseover='inStyle(this)'>
			<td>{{$OrderItems[OrderItem].OrderID}}</td>
			<td>{{$OrderItems[OrderItem].Amount}}</td>
			<td>{{$OrderItems[OrderItem].About}}</td>
			<td>
				{{if $OrderItems[OrderItem].iStatus == 2}} 
				<font color='green'>已发货</font> 
				{{elseif $OrderItems[OrderItem].iStatus == 1}} 
				<font color='red'>已交费</font> 
				{{elseif $OrderItems[OrderItem].iStatus == 3}} 
				<font color='green'>交易完成</font> 
				{{else}} 
				 <font color='gray'>未生效 </font> 
				{{/if}} 
			</td>
			<td>{{$OrderItems[OrderItem].dtCreate}}</td>



				<td>{{$OrderItems[OrderItem].wuliu}}	</td>
			<td>
			    {{ if $OrderItems[OrderItem].iStatus == 0}}
				<a href="../user/order_pay.php?OrderID={{$OrderItems[OrderItem].OrderID}}">结算交费</a> -
				<a href="../user/onlinepay.php?Amount={{$OrderItems[OrderItem].Amount}}&OrderID={{$OrderItems[OrderItem].OrderID}}">网上支付</a>
			   
				{{elseif $OrderItems[OrderItem].iStatus == 2 }}

				<a href="../user/order_end.php?OrderID={{$OrderItems[OrderItem].OrderID}}"><font color='red'>确认收货</font> </a> 
				{{elseif $OrderItems[OrderItem].iStatus == 3 }}
<a href="/user/question.php">意见反馈</a>
				{{else}}
				<font color='green'>等待发货</font>
				{{/if}}


			</td>
		</tr>
		{{/section}}
		<tr>
		    <td colspan="7">{{$pagers}}</td>
		</tr>
		</table>
	</div>


</div>
</div>
{{include_php file="user_foot.inc.php"}}
