order.html 1.2 KB
<link type="text/css" rel="stylesheet" href="{url:#css/ucenter.css}" />
<div class="container clearfix">
	{widget:name=sub_navs action=ucsidebar sidebar=$sidebar act=$actionId}
	<div class="uc-content">
			<h1 class="title"><span>我的订单:</span></h1>
			<table class="simple">
				<tr>
					<th >订单编号</th> <th width="100">收货人</th> <th width="100">订单金额</th> <th width="160">下单时间</th> <th width="166">订单状态</th>
				</tr>
				{query:name=order where=user_id eq $user[id] order=id desc page=1 id=$obj}
				<tr class="{if:$key%2==1}even{else:}odd{/if}">
					<td><a href="{url:/ucenter/order_detail/id/$item[id]}"><i class="icon-order-{$item['type']}-32  ie6png"></i>{$item['order_no']}</a></td> <td>{$item['accept_name']}</td> <td>{$currency_symbol}{$item['order_amount']}</td> <td>{$item['create_time']}</td> <td>{echo:$this->order_status($item)}</td>
				</tr>
				{/query}
			</table>
			<div class="page-nav">{echo:$obj->pagebar()}</div>
	</div>
</div>
<script type="text/javascript">
	function order_sign(id) {
		$.post("{url:/ucenter/order_sign}",{id:id},function(data){
			if(data['status']=='success'){
				location.reload();
			}
		},'json');
	}
</script>