国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

管理員模塊主要頁(yè)面

Original 2019-01-01 11:28:16 269
abstract:{include file="/public/head"}<body><div class="x-nav">      <span class="layui-breadcrumb">        <a href="&

{include file="/public/head"}
<body>
<div class="x-nav">
     <span class="layui-breadcrumb">
       <a href="">首頁(yè)</a>
       <a href="">演示</a>
       <a>
         <cite>導(dǎo)航元素</cite></a>
     </span>
   <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
      href="javascript:location.replace(location.href);" title="刷新">
       <i class="layui-icon" style="line-height:30px">?</i></a>
</div>
<xblock>
   <button class="layui-btn" onclick="x_admin_show('添加用戶','{:url(\'add\')}')">
       <i class="layui-icon"></i>添加</button>
   <span class="x-right" style="line-height:40px">共有數(shù)據(jù):88 條</span>
</xblock>
<table class="layui-table">
   <thead>
   <tr>
       <th>ID</th>
       <th>登錄名</th>
       <th>手機(jī)</th>
       <th>郵箱</th>
       <th>加入時(shí)間</th>
       <th>操作</th>
   </thead>
   <tbody>
   {volist name="users" id="users"}
   <tr>
       <td>{$users.id}</td>
       <td>{$users.username}</td>
       <td>{$users.phone}</td>
       <td>{$users.email}</td>
       <td>{$users.time|date="Y-m-d"}</td>
       <td class="td-manage">
           <a title="編輯"  onclick="x_admin_show('編輯','{:url(\'edit\')}')" href="javascript:;">
               <i class="layui-icon">&#xe642;</i>
           </a>
           <a title="刪除" onclick="member_del(this,'要?jiǎng)h除的id')" href="javascript:;">
               <i class="layui-icon">&#xe640;</i>
           </a>
       </td>
   </tr>
   {/volist}
   </tbody>
</table>
<div class="page">
   <div>
       {$users|raw}
   </div>
</div>

</div>
<script>
   layui.use('laydate', function(){
       var laydate = layui.laydate;

       //執(zhí)行一個(gè)laydate實(shí)例
       laydate.render({
           elem: '#start' //指定元素
       });

       //執(zhí)行一個(gè)laydate實(shí)例
       laydate.render({
           elem: '#end' //指定元素
       });
   });

   /*用戶-停用*/
   function member_stop(obj,id){
       layer.confirm('確認(rèn)要停用嗎?',function(index){

           if($(obj).attr('title')=='啟用'){

               //發(fā)異步把用戶狀態(tài)進(jìn)行更改
               $(obj).attr('title','停用')
               $(obj).find('i').html('&#xe62f;');

               $(obj).parents("tr").find(".td-status").find('span').addClass('layui-btn-disabled').html('已停用');
               layer.msg('已停用!',{icon: 5,time:1000});

           }else{
               $(obj).attr('title','啟用')
               $(obj).find('i').html('&#xe601;');

               $(obj).parents("tr").find(".td-status").find('span').removeClass('layui-btn-disabled').html('已啟用');
               layer.msg('已啟用!',{icon: 5,time:1000});
           }

       });
   }

   /*用戶-刪除*/
   function member_del(obj,id){
       layer.confirm('確認(rèn)要?jiǎng)h除嗎?',function(index){
           //發(fā)異步刪除數(shù)據(jù)
           $(obj).parents("tr").remove();
           layer.msg('已刪除!',{icon:1,time:1000});
       });
   }



   function delAll (argument) {

       var data = tableCheck.getData();

       layer.confirm('確認(rèn)要?jiǎng)h除嗎?'+data,function(index){
           //捉到所有被選中的,發(fā)異步進(jìn)行刪除
           layer.msg('刪除成功', {icon: 1});
           $(".layui-form-checked").not('.header').parents('tr').remove();
       });
   }
</script>
<script>var _hmt = _hmt || []; (function() {
   var hm = document.createElement("script");
   hm.src = "https://#/hm.js?b393d153aeb26b46e9431fabaf0f6190";
   var s = document.getElementsByTagName("script")[0];
   s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>

Correcting teacher:天蓬老師Correction time:2019-01-01 15:23:23
Teacher's summary:.insertBefore(hm, s); 這里的insertBefore()中的第二個(gè)參數(shù)是什么意思, 應(yīng)該給個(gè)注釋會(huì)好些, 你說(shuō)呢?

Release Notes

Popular Entries