<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="description" content="">
		<meta name="keywords" content="">
		<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport" />
		<title><?php echo ($meta_title); ?></title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<meta name="mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="/Public/Home/css/amazeui.min.css">
		<link rel="stylesheet" href="/Public/Home/css/app.css">
		
	<link rel="stylesheet" href="/Public/Home/css/bootstrap.css">
	<style>
		<?php $num = count($cates); if($num==1){ echo ".am-nav-justify>li{ width: 98%; float: left;}"; }elseif($num==2){ echo ".am-nav-justify>li{ width: 49%; float: left;}"; }elseif($num==3){ echo ".am-nav-justify>li{ width: 32%; float: left;}"; }elseif($num==4){ echo ".am-nav-justify>li{ width: 23%; float: left;}"; } ?>

	</style>

	</head>
	<body>
		<header data-am-widget="header" class="am-header am-header-default">
			<div class="am-header-left am-header-nav back " style="display:none;">
			   <a href="#left-link"><img src="/Public/Home/images/back.png"></a>
	     	</div>
	        <h1 class="am-header-title us-top am-text-center"><?php echo ($meta_title); ?></h1>

	      	<div class="am-header-right am-header-nav" style="display:none;">
	          <a href="#right-link" class=""  data-am-offcanvas="{target: '#nav-ctrl'}">
	              <img class="am-header-icon-custom" src="/Public/Home/images/app-nav.png" alt=""/>
	          </a>
	      	</div>
      	</header>

      	

	<!--我的订单无开始-->
	   <div class="bg-line"></div>
	   <div class="yy-order">
	   	<form action="<?php echo U();?>" method="post" class="form form-horizontal" id="form-horizontal">
	   	   <div class="table-xd">
	   	   	  <div class="am-tabs" id="doc-my-tabs">
				  <ul class="am-tabs-nav am-cf am-nav am-nav-tabs am-nav-justify yw-select">

				    <?php if(is_array($cates)): $i = 0; $__LIST__ = $cates;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cate): $mod = ($i % 2 );++$i;?><li <?php if(($i) == "1"): ?>class="am-active"<?php endif; ?>>
				    	<a href="">
				    	<div class="yw-tp"><img src="<?php echo ($cate["icon_path"]); ?>"></div>
				    	<h3><?php echo ($cate["title"]); ?></h3>
				    	</a>
				    </li>
				    <?php if(($i) < $cates_num): ?><div class="shu-line"></div><?php endif; endforeach; endif; else: echo "" ;endif; ?>

				  </ul>
				  <div class="bg-line-1"></div>
				  <div class="am-tabs-bd">

				    <?php if(is_array($goods_arr)): $i = 0; $__LIST__ = $goods_arr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods): $mod = ($i % 2 );++$i;?><div class="am-tab-panel am-active am-scrollable-vertical">
				    	<table class="am-table  xy-table" style="table-layout:fixed;">
						    <thead>
						        <tr>
						            <th style="width:30%;"><?php echo (L("item")); ?></th>
						            <th style="width:20%;"><?php echo (L("price")); ?></th>
						            <th style="width:50%;"><?php echo (L("quantity")); ?></th>
						        </tr>
						    </thead>
						    <tbody>
						        <?php if(is_array($goods)): $i = 0; $__LIST__ = $goods;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$g): $mod = ($i % 2 );++$i;?><tr>
						            <td><?php echo ($g["title"]); ?></td>
						            <td><?php echo ($g["price"]); ?></td>
						            <td>
						            	<input class="goods" id="goods_<?php echo ($g["id"]); ?>" type="text" value="0" name="goods_<?php echo ($g["id"]); ?>" >
						            </td>
						        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
						    </tbody>
						</table>

				    </div><?php endforeach; endif; else: echo "" ;endif; ?>

				  </div>
				  <div class="yixz-bk">
				  	<button class="yixz-button ajax-post" type="submit" target-form="form-horizontal"><?php echo (L("place_order")); ?></button>
	   	          </div>
			</div>

	   	   </div>
	   	</form>
	   </div>
	   <!--附近设备弹框内容-->


		<script type="text/javascript" src="/Public/Home/js/jquery.min.js" ></script>
		<script type="text/javascript" src="/Public/Home/js/amazeui.min.js" ></script>
		<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/Common/js/common.js"></script>
		
	<script type="text/javascript" src="/Public/Home/js/jquery.bootstrap-touchspin.min.js" ></script>
	<script >
		$("input.goods").TouchSpin();

		$(function() {
		    $('#doc-my-tabs').tabs();
		})
	</script>


	</body>
</html>