| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 | 
							- <article class="cl pd-20">
 
-     <div class="cl pd-5 bg-1 bk-gray">
 
-         <span class="l">
 
-             <a href="javascript:;" onclick="del_all()" class="btn btn-danger radius">
 
-                 <i class="Hui-iconfont"></i> 批量删除</a>
 
-             <a href="javascript:save(0);" class="btn btn-primary radius">
 
-                 <i class="Hui-iconfont"></i> 添加管理员</a>
 
-         </span>
 
-     </div>
 
-     <div class="mt-10" style="min-width:800px;">
 
-         <table class="table table-border table-bordered table-bg">
 
-             <thead>
 
-                 <tr class="text-c">
 
-                     <th width="25">
 
-                         <input type="checkbox" name="allcheck" value="">
 
-                     </th>
 
-                     <th width="40px">ID</th>
 
-                     <th width="120px">登录名</th>
 
-                     <th width="120px">用户组</th>
 
-                     <th width="120px">姓名</th>
 
-                     <th width="120px">昵称</th>
 
-                     <th width="160px">邮箱</th>
 
-                     <th width="80px">登录次数</th>
 
-                     <th width="140px">最后登录时间</th>
 
-                     <th width="120px">最后登录ip</th>
 
-                     <th width="140px">创建时间</th>
 
-                     <th>操作</th>
 
-                 </tr>
 
-             </thead>
 
-             <tbody>
 
-                 {foreach $list as $val}
 
-                 <tr class="text-c">
 
-                     <td>
 
-                         <input type="checkbox" value="{$val.userid}" name="checkbox[]">
 
-                     </td>
 
-                     <td>{$val.userid}</td>
 
-                     <td>{$val.username}</td>
 
-                     <td>{$val.rolename}</td>
 
-                     <td>{$val.truename}</td>
 
-                     <td>{$val.nickname}</td>
 
-                     <td>{$val.email}</td>
 
-                     <td>{$val.login_num}</td>
 
-                     <td>{$val.per_time}</td>
 
-                     <td>{$val.per_ip}</td>
 
-                     <td>{$val.create_time}</td>
 
-                     <td class="td-manage">
 
-                         <a title="编辑" href="javascript:save({$val.userid});" style="text-decoration:none">
 
-                             <i class="Hui-iconfont"></i>
 
-                         </a>
 
-                         <a title="删除" href="javascript:;" onclick="del(this,'{$val.userid}')" class="ml-5"
 
-                             style="text-decoration:none">
 
-                             <i class="Hui-iconfont"></i>
 
-                         </a>
 
-                     </td>
 
-                 </tr>
 
-                 {/foreach}
 
-             </tbody>
 
-         </table>
 
-     </div>
 
- </article>
 
- <!--请在下方写此页面业务相关的脚本-->
 
- <script type="text/javascript">
 
-     function save(id) {
 
-         var title = id == 0 ? '添加管理员' : '修改管理员'
 
-         var url = "{:url('save')}" + "?_layer=true&id=" + id
 
-         layer_show(title, url, 800, 600);
 
-     }
 
-     // 列表删除条目
 
-     function del(obj, id) {
 
-         layer.confirm('确认要删除吗?', function (index) {
 
-             $.post('delete', {
 
-                 'id': id
 
-             }, function (data) {
 
-                 if (data.code == 1) {
 
-                     $(obj).parents("tr").remove();
 
-                     layer.msg(data.msg, {
 
-                         icon: 1,
 
-                         time: 1000
 
-                     });
 
-                 } else {
 
-                     layer.msg(data.msg, {
 
-                         icon: 5,
 
-                         time: 2000
 
-                     });
 
-                     return false;
 
-                 }
 
-             }, 'json');
 
-         });
 
-     }
 
-     // 批量删除条目
 
-     function del_all() {
 
-         var checkbox = $('.text-c input[name="checkbox[]"]');
 
-         var ids = new Array();
 
-         checkbox.each(function (x) {
 
-             if (this.checked)
 
-                 ids.push(this.value);
 
-         })
 
-         // console.log(ids);
 
-         layer.confirm('确认要删除吗?', function (index) {
 
-             $.post('delete', {
 
-                 'id': ids
 
-             }, function (data) {
 
-                 if (data.code == 1) {
 
-                     layer.msg(data.msg, {
 
-                         icon: 1,
 
-                         time: 1000
 
-                     });
 
-                     checkbox.each(function (x) {
 
-                         if (this.checked)
 
-                             $(this).parents("tr").remove();
 
-                     })
 
-                 } else {
 
-                     layer.msg(data.msg, {
 
-                         icon: 5,
 
-                         time: 1000
 
-                     });
 
-                 }
 
-             }, 'json')
 
-         });
 
-     }
 
- </script>
 
- <!--/请在上方写此页面业务相关的脚本-->
 
 
  |