<?php include ADMIN_COMMON_PATH.'/header.html';?>
<div class="layui-container fly-marginTop fly-user-main">
    <?php include ADMIN_COMMON_PATH.'/products-nav.html';?>
    <div class="fly-panel fly-panel-user" pad20>
        <div class="layui-tab layui-tab-brief" lay-filter="user">
            <ul class="layui-tab-title" id="LAY_mine">
                <li class="layui-this" lay-id="info">产品类型</li>
                <li class="" lay-id="add"><a href="/<?php echo ADMIN_DIR;?>/productstype/add">新增</a></li>
            </ul>
            <div class="layui-tab-content" style="padding: 20px 0;">
                <div class="layui-form layui-form-pane layui-tab-item layui-show">
                    <div class="layui-form-item layui-show">
                        <table class="layui-table" id="table" lay-filter="table"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="opt">
    <a class="layui-btn layui-btn-warm layui-btn-xs" href="/<?php echo ADMIN_DIR;?>/productstype/edit/?id={{d.id}}">编辑</a>
	 {{# if(d.active ==0){ }}
	<a data-href="/<?php echo ADMIN_DIR;?>/productstype/delete/?id={{d.id}}" class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
	 {{# } }}
</script>
<script type="text/html" id="active">
    {{# if(d.active >0){ }}
    <span class="layui-badge layui-bg-green">已激活</span>
    {{# } else { }}
    <span class="layui-badge layui-bg-gray">未激活</span>
    {{# } }}
</script>
<!--引入公共底文件-->
<?php include ADMIN_COMMON_PATH.'/footer.html';?>
<script>
layui.use('adminproductstype');
</script>