<title>网站用户</title>
  
<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>用户</cite></a>
    <a><cite>网站用户</cite></a>
  </div>
</div>

  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-header">敏感词库</div>
          <div class="layui-card-body" pad15>
            <blockquote class="layui-elem-quote layui-quote-nm">禁用：发布的内容包含敏感词，则禁止发布<br>替换：发布的内容包含敏感词，则把敏感词替换成指定词语<br>审核：发布的内容包含敏感词，则需要管理员审核通过后，才能正常显示</blockquote>
      <div style="padding-bottom: 10px;">
        <a href="../filter/add" class="layui-btn J_popup" title="" role="button">添加</a>
        <a href="../filter/del" class="layui-btn J_ajax_submit_tab" title="确定要删除吗">删除</a>
      </div>
      <table id="J_table_list" lay-filter="J_table_list"></table>
    </div>
    
  </div>
</div>
  </div>
</div>
      <script type="text/html" id="J_table_button_tpl">
        {{#  if(d.type == 1){ }}
          <button class="layui-btn layui-btn-normal layui-btn-xs">禁用</button>
        {{#  } else if(d.type == 2){ }}
          <button class="layui-btn layui-btn-xs">替换</button>
        {{#  } else{ }}
          <button class="layui-btn layui-btn-warm layui-btn-xs">审核</button>
        {{#  } }}
      </script>
      <script type="text/html" id="J_table_tool">
        <a href="../filter/edit" class="layui-btn layui-btn-normal layui-btn-xs">编辑</a>
        <a href="" class="layui-btn layui-btn-danger layui-btn-xs J_ajax_del" title="确定要删除吗" data-json="{'id':'{{d.id}}'}">删除</a>
      </script>

<script>
layui.use(['table'], function(){
  var $ = layui.$
  ,table = layui.table;
  
  //执行渲染
table.render({
  elem: '#J_table_list'
  ,data: {$data|raw}
  ,cols: [[
      {type: 'checkbox',fixed:'left'}
      ,{field:'id',title:'ID',width:80,align:'center'}
      ,{field:'name',title:'敏感词',minWidth:100}
      ,{field:'type',title:'级别',minWidth:100,templet:'#J_table_button_tpl'}
      ,{title:'操作',width:150,align:'center',toolbar:'#J_table_tool'}
  ]]
    ,limit: 20
    ,height: 'auto'
  ,text: '对不起，加载出现异常！'
});

});
</script>