<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>
<!-- <script type="text/javascript" src="<?php echo mvc::$cfg['ADMIN_URL'];?>static/js/brand.js?ver=<?php echo mvc::$cfg['VER']['js'];?>"></script> -->
<link rel="stylesheet" href="<?php echo mvc::$cfg['ADMIN_URL'];?>static/zTree_v3-master/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="<?php echo mvc::$cfg['ADMIN_URL'];?>static/zTree_v3-master/js/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="<?php echo mvc::$cfg['ADMIN_URL'];?>static/js/brand.js?ver=<?php echo mvc::$cfg['VER']['js'];?>"></script>
<div class="list main_auto" style="margin-top: 8px;margin-left: 75px;">
	<div class="part-nav brand-nav" style="margin-bottom: 8px;">
		<ul>
			<li><a href="javascript:void(0);" onclick="BRAND.getEditTpl();" target="main_frame">添加配件品牌</a></li>
		</ul>
	</div>
	<div class="brandList">
		<table class="table table-bordered table-hover">
			<thead>
				<tr>
					<th width="60px">操作</th>
					<th width="100px">配件品牌名称</th>
					<th width="60px">使用中的配件</th>
					<th width="60px">使用中的店铺</th>
					<th width="60px">是否为热门</th>
					<th width="60px">排序</th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($brandList as $brand){?>
				<tr>
					<td>
						<a href="javascript:void(0);" onclick="BRAND.getEditTpl(<?php echo $brand['prb_id'];?>);" class="icon2 icon2_edit"></a>&nbsp;
						<a href="javascript:void(0);" onclick="MESSAGE.confirm('确认要删除该配件品牌吗？','BRAND.delBrand(<?php echo $brand['prb_id'];?>)');" class="icon2 icon2_del"></a>
					</td>
					<td><?php echo $brand['prb_name'];?></td>
					<td><?php echo $brand['proCount'];?></td>
					<td><?php echo $brand['shopCount'];?></td>
					<td><input type="checkbox" name="isHot" onclick="BRAND.changeHot(this,<?php echo $brand['prb_id'];?>,event)" <?php if($brand['prb_is_host']){echo 'checked';}?> value="1"></td>
					<td><?php echo $brand['prb_seq'];?></td>
				</tr>
				<?php }?>
			</tbody>
		</table>
	</div>
</div>
<!-- Modal -->
<div class="modal" id="layer_box" tabindex="-1" role="dialog" aria-labelledby="layer_box">
	<div class="modal-dialog" role="document">
		<div class="modal-content">
		</div>
	</div>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>