<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="admin/admin/template/style/admin.css" rel="stylesheet"
	type="text/css" />
<script src="include/js/jquery.js" type="text/javascript"></script>
<script src="include/js/admin.js" type="text/javascript"></script>
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"
	type="text/javascript"></script>
</head>
<body>

<div class="maintop">当前位置：<?php echo $toptxt ?></div>
<div class="main">


			<table class="tablist" width="100%" cellspacing="0" cellpadding="8">
				<thead>
					<tr class="trbg" style="height:28px;">
						<th style="padding: 0;">商品编号</th>
						<th style="padding: 0;">商品信息</th>
						<th style="padding: 0;">商品单价</th>
						<th style="padding: 0;">订购数量</th>
						<th style="padding: 0;">小计</th>
					</tr>
				</thead>

				<tbody>
				
					<?php foreach($ordershow as $a){ ?>
					<tr id="list4">
						<td valign="middle" align="center"><?php echo $a['pid']; ?></td>
						<td valign="middle" align="left" class="clear_">
						<img style="margin: 5px; float: left; height: 50px; border: 1px solid #bbb;" src="<?php echo $a['litpic']; ?> " />
						<div style="margin: 5px 0 0 15px; float: left; height: 50px; line-height: 50px;"><?php echo $a['title']; ?></div></td>

						<td valign="middle" align="center" id="thisprice4">
						<?php echo $a['price']; ?></td>

						<td valign="middle" align="center"><?php echo $a['number']; ?></td>
						<td valign="middle" align="center" id="thistotal4">
						<?php echo $a['price'] * $a['number']; ?></td>
					</tr>
					<?php } ?>
				</tbody>
				<tfoot>
					<tr>
						<td style="text-align: right; padding-right: 20px;" colspan="7">商品总金额:<span
							style="color: red;">￥<?php echo $ordershow['0']['totalmoney']; ?></span>元</td>
					</tr>
					<tr>
						<td style="text-align: left; padding-left: 20px;" colspan="7">订单编号:<span
							style="color: #ff0000"><?php echo $ordershow['0']['order_code'].'-'.$ordershow['0']['id']; ?></span></td>
					</tr>
					<tr>
						<td style="text-align: left; padding-left: 20px;" colspan="7">订单状态:<span
							style="color: #ff0000"><?php echo $orderStatus[$ordershow['0']['status']]; ?></span></td>
					</tr>
					<tr>
						<td style="text-align: left; padding-left: 20px;" colspan="7">下单时间:<span><?php echo date('Y年m月d日 H:i:s',$ordershow['0']['adddate']); ?></span></td>
					</tr>
					<tr>
						<td style="text-align: left; padding-left: 20px;" colspan="7">联系人:<span><?php echo $ordershow['0']['reciver_user']; ?></span></td>
					</tr>
					<tr>
						<td style="text-align: left; padding-left: 20px;" colspan="7">联系电话:<span><?php echo $ordershow['0']['mobile']; ?></span></td>
					</tr>
					<tr>
						<td style="text-align: left; padding-left: 20px;" colspan="7">联系地址:<span><?php echo $ordershow['0']['address']; ?></span></td>
					</tr>
					<tr>
						<td style="text-align: left; padding-left: 20px;" colspan="7">邮政编码:<span><?php echo $ordershow['0']['postcode']; ?></span></td>
					</tr>
					<tr>
						<td style="text-align: left; padding-left: 20px;" colspan="7">订单备注1:<span><?php echo $ordershow['0']['more']; ?></span></td>
					</tr>
					<tr>
						<td style="text-align: left; padding-left: 20px;" colspan="7">
						<div style="float:left;">
							操作:&nbsp;
							</div>
							<form style="float:left;" id="form1" name="form1" method="post" action="?c=ld_order&a=modify_order">
								<select name="status" id="status">
								<?php foreach($orderStatus as $key=>$s) { 
									$checked= $key==$ordershow[0]['status'] ? "selected":"";
									echo "<option value='".$key."' ".$checked.">".$s."</option>\n";
								} ?>
								</select>
								<input type="hidden" value="<?php echo $ordershow['0']['id']; ?>" name="orderid" />
							</form>
							<div class="oper" style="width: 20px;padding-left:20px;"><a href="?c=ld_order&a=ordershow&run=1" onclick="form1.submit();return false;" >提交</a></div>
						

						</td>
					</tr>
				
						
						
				
				</tfoot>
			</table>


</div>
</body>

</html>
