<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
?>
<!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>
<title>查看订单</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script type="text/javascript" src="images/js/jquery.min.js"></script>
</head>
<body>
<div id="wrap">
	<div class="tab">
		<ul>
			<li><a href="?file=order&action=manage">订单管理</a></li>
			<li><a href="javascript:void(0);" class="on">查看订单</a></li>			
		</ul>
	</div>
	<div class="main">
	<table cellspacing="0" class="sub">
		<tr>
			<td width="80" align="right">订单状态：</td>
			<td>
			<?php 
					if($val['status']==0)
					{
						echo '待付款';
					}
					elseif($val['status']==1)
					{
						echo '已付款';
					}
					elseif($val['status']==2)
					{
						echo '已发货';
					}
					elseif($val['status']==3)
					{
						echo '交易成功';
					}
					elseif($val['status']==4)
					{
						echo '交易关闭';
					}
			?>
			</td>
		</tr>
		<tr>
			<td align="right">订单号：</td>
			<td>
			<?php echo $val['orderid'];?>
			</td>
		</tr>
		<tr>
			<td align="right">产品：</td>
			<td>
			<a href="<?php echo $val['goodsurl'];?>" target="_blank"><?php echo $val['goodsname'];?></a>
			</td>
		</tr>
		<tr>
			<td align="right">单价：</td>
			<td>
			<?php echo $val['price'];?> 元
			</td>
		</tr>
		<tr>
			<td align="right">数量：</td>
			<td>
			<?php echo $val['number'];?>
			</td>
		</tr>
		<tr>
			<td align="right">运费：</td>
			<td>
			<?php echo $val['carriage'];?> 元
			</td>
		</tr>
		<tr>
			<td align="right">付款金额：</td>
			<td>
			<?php echo $val['amount'];?> 元
			</td>
		</tr>
		<tr>
			<td align="right">下单时间：</td>
			<td>
			<?php echo date('Y-m-d H:i:s',$val['time']);?>
			</td>
		</tr>

		<tr>
			<td align="right">收货人：</td>
			<td>
			<?php echo date('Y-m-d H:i:s',$val['time']);?>
			</td>
		</tr>
		<tr>
			<td align="right">电话：</td>
			<td>
			<?php echo $val['telephone'];?>
			</td>
		</tr>
		<tr>
			<td align="right">手机：</td>
			<td>
			<?php echo $val['mobile'];?>
			</td>
		</tr>
		<tr>
			<td align="right">地址：</td>
			<td>
			<?php echo $val['address'];?>
			</td>
		</tr>
		<tr>
			<td align="right">邮编：</td>
			<td>
			<?php echo $val['postcode'];?>
			</td>
		</tr>
		<tr>
			<td align="right">留言：</td>
			<td>
			<?php echo $val['note'];?>
			</td>
		</tr>
		<tr class="bg2"><td></td><td><input type="button" class="button" onclick="window.location.href='<?php echo ADMIN_FILE;?>?file=order&action=manage'" value="返回订单管理" /></td></tr>
	</table>

	</div>
</div>
</body>
</html>