<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
<title>Management platform</title>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/Public/Admin/images/favicon.ico" >
<LINK rel="Shortcut Icon" href="/Public/Admin/images/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/html5.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/respond.min.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/PIE_IE678.js"></script>
<![endif]-->
<link href="/Public/h-ui_v2.3/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/Public/h-ui_v2.3/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/Public/h-ui_v2.3/skin/default/skin.css" rel="stylesheet" type="text/css" id="skin" />
<link href="/Public/h-ui_v2.3/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="/Public/Admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/Public/static/jquery-2.0.3.min.js"></script>

<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->


<!-- 页面header钩子，一般用于加载插件CSS文件和代码 -->
<?php echo hook('pageHeader');?>

</head>
<body>

	<!-- 主体 -->
	

<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> Home <span class="c-gray en">&gt;</span> <?php echo ($meta_title); ?>
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="refresh" ><i class="Hui-iconfont">&#xe68f;</i></a>
	<a class="btn btn-secondary radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:history.go(-1);" title="back" ><i class="Hui-iconfont">&#xe66b;</i></a>
</nav>
<div class="pd-20">
	<div class="panel panel-default">
		<div class="panel-header">Order detail</div>
		<div class="panel-body">
			<table class="table table-border order_detail ">
				<tbody>
					<tr class="warning">
						<td colspan="4" class="text-l ">basic information</td>
					</tr>
					<tr class="">
						<td width="15%" class="text-r">order no.:</td>
						<td width="25%" class=""><?php echo ($info["out_trade_no"]); ?></td>
						<td width="15%" class="text-r">order state:</td>
						<td width="" class="">
							<?php echo getOrderStatus($info['status'],$info['pay_status']);?>
						</td>
					</tr>
					<tr class="">
						<td class="text-r">payment:</td>
						<td class="">
							<?php echo get_payment_title($info['pay_type']);?>
						</td>
						<td class="text-r">create time:</td>
						<td class=""><?php echo (time_format($info["createtime"])); ?></td>
					</tr>
					<tr class="">
						<td class="text-r">order amount:</td>
						<td class=""><?php echo ($info["total_fee"]); ?></td>
						<td class="text-r">pay time:</td>
						<td class=""><?php if(!empty($info["pay_time"])): echo (time_format($info["pay_time"])); else: ?>&nbsp;<?php endif; ?></td>
					</tr>
					<tr class="">
						<td class="text-r">pay fee:</td>
						<td class=""><?php echo ($info["pay_fee"]); ?></td>
						<td class="text-r">still need to pay:</td>
						<td class="">
							<?php if(($info["pay_plus"]) != "0.00"): echo ($info["pay_plus"]); ?>&nbsp;&nbsp;<?php echo get_order_plus_pay_status($info['out_trade_no']);?>
								<?php else: ?>
								<a href="<?php echo U('edit',array('id'=>$info['id']));?>" class="btn btn-link ml-5" target="dialog" height="200">click to set </a><?php endif; ?>
						</td>
					</tr>
					<tr class="">
						<td class="text-r">note:</td>
						<td class="" colspan="3"><?php echo ($info["note"]); ?></td>
					</tr>
					<tr class="">
						<td class="text-r">logs:</td>
						<td class="" colspan="3">
							<?php if(is_array($log)): $i = 0; $__LIST__ = $log;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; echo (date("Y-m-d H:i:s",$vo["createtime"])); ?>: <?php echo ($vo["content"]); ?><br><?php endforeach; endif; else: echo "" ;endif; ?>
						</td>
					</tr>


					<tr class="warning">
						<td class=" text-l" colspan="5">Items</td>
					</tr>
					<tr class="">
						<td class=" text-l" colspan="5">
							<table class="table goods_list">
								<tr class="active text-c">
									<td >title</td>
									<td >price</td>
									<td >quantity</td>
									<td >total</td>
								</tr>
								<?php if(is_array($goods)): $i = 0; $__LIST__ = $goods;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="text-c">
										<td class=" text-l"><?php echo ($vo["title"]); ?> </td>
										<td><?php echo ($vo["price"]); ?></td>
										<td><?php echo ($vo["num"]); ?></td>
										<td><?php echo ($vo['price']*$vo['num']); ?></td>
									</tr><?php endforeach; endif; else: echo "" ;endif; ?>

								<?php if(($info["discount"]) > "0"): ?><tr class="text-c no-border" >
									<td class="text-r" colspan="3" >discount：</td>
									<td ><?php echo ($info["discount"]); ?></td>
								</tr><?php endif; ?>
								<?php if(($info["credits"]) > "0"): ?><tr class="text-c no-border" >
									<td class="text-r" colspan="3" >credits：</td>
									<td ><?php echo ($info["credits"]); ?></td>
								</tr><?php endif; ?>
								<?php if(($info["coupon"]) > "0"): ?><tr class="text-c no-border" >
									<td class="text-r" colspan="3" >coupon：</td>
									<td ><?php echo ($info["coupon"]); ?></td>
								</tr><?php endif; ?>
								<?php if(($info["balance"]) > "0"): ?><tr class="text-c no-border" >
									<td class="text-r" colspan="3" >balance：</td>
									<td ><?php echo ($info["balance"]); ?></td>
								</tr><?php endif; ?>
								<tr class="text-c no-border" >
									<td class="text-r" colspan="3" >pay fee：</td>
									<td ><?php echo ($info["pay_fee"]); ?></td>
								</tr>

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


				</tbody>
			</table>

		</div>
	</div>

</div>


	<!-- /主体 -->
	
	<!-- 底部 -->
	<script type="text/javascript" src="/Public/h-ui_v2.3/lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/js/H-ui.js"></script>
<script type="text/javascript" src="/Public/h-ui_v2.3/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/Public/Common/js/common.js"></script>
<script type="text/javascript">

</script>


	<script type="text/javascript">
	</script>
 <!-- 用于加载js代码 -->
<!-- 页面footer钩子，一般用于加载插件JS文件和JS代码 -->
<?php echo hook('pageFooter', 'widget');?>
<div class="hidden"><!-- 用于加载统计代码等隐藏元素 -->
	
</div>

	<!-- /底部 -->

</body>
</html>