
<div class="layuimini-container layuimini-page-anim">

    <div class="layuimini-main"> 
    <fieldset class="table-search-fieldset">
            <legend>搜索信息</legend>
            <div style="margin: 10px 10px 10px 10px">
               <form class="layui-form layui-form-pane" action="">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">名称</label>
                            <div class="layui-input-inline">
                                <input type="text" name="title" autocomplete="off" class="layui-input" >
                            </div>
                        </div>
                      
                      

                        
                        <div class="layui-inline">
                            <button type="submit" class="layui-btn layui-btn-primary"  lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                        </div>
                    </div>
                </form>
            </div>
        </fieldset>      
      <script type="text/html" id="toolbarDemo">
            <div class="layui-btn-container">
                <button class="layui-btn layui-btn-normal layui-btn-sm data-add-btn" lay-event="add"> 添加 </button>

                <button class="layui-btn layui-btn-danger  layui-btn-sm data-add-btn" lay-event="delete"> 批量删除  </button>
                
            </div>
        </script>
        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>

        <script type="text/html" id="currentTableBar">
            <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" lay-event="delete">删除</a>
        </script>

   <script type="text/html" id="tj_switch">
    
   <input type="checkbox" name="tj"  {{#  if(d.tj==2){ }}checked{{#  } }} lay-skin="switch" lay-text="推荐|不推荐" lay-filter="tj" value="{{d.id}}" ><div class="layui-unselect layui-form-switch"   lay-skin="_switch">
    </script>

    </div>
</div>
<script>
	var cols=[[
        {type: "checkbox", width: 50},
        {field: 'title',  title: '名称',minWidth:500}, 
     
        {title: '状态',templet: '#status_switch'}, 
     
        {field: 'sort',  title: '排序',edit:true},
        {title: '操作', minWidth: 150, toolbar: '#currentTableBar', align: "center"}
    ]]

</script>
<?
 $name="友情链接";
 $moban=1;
 include(ADMINROOT.'/template/public/list.tpl.php'); //公共模板
?>