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

哈哈哈摳腳大漢我開始就

Original 2019-05-24 00:30:33 237
abstract:<!doctype html><html lang="en">{include file="/public/header"}<body><div class="x-nav">      <span class="layui-breadcrumb&

<!doctype html>
<html lang="en">
{include file="/public/header"}
<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>
<div class="x-body">
   <xblock>
       <button class="layui-btn" onclick="x_admin_show('添加用戶','{:url(\'Product/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>產(chǎn)品ID</th>
           <th>產(chǎn)品標(biāo)題</th>
           <th>產(chǎn)品分類</th>
           <th>產(chǎn)品圖片</th>
           <th>產(chǎn)品簡(jiǎn)介</th>
           <th>發(fā)布管理員</th>
           <th>發(fā)布日期</th>
           <th>操作</th>
       </tr>
       </thead>
       <tbody>
       {volist name="products" id="product"}
       <tr>
           <td>{$product.id}</td>
           <td>{$product.title}</td>
           <td>{$product.sort}</td>
           <td><img src="#"></td>
           <td>{$product.desc}</td>
           <td>{$product.username}</td>
           <td>{$product.time|date="Y-m-d"}</td>
           <td class="td-manage">
               <a title="查看" onclick="x_admin_show('編輯','{:url(\'Product/edit\')}?id=1')" href="javascript:;">
                   <i class="layui-icon">&#xe63c;</i>
               </a>
               <a title="刪除" onclick="member_del(this,'1')" href="javascript:;">
                   <i class="layui-icon">&#xe640;</i>
               </a>
           </td>
       </tr>
       {/volist}
       </tbody>
   </table>
   <div class="page">
       <div>
           {$products|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_del(obj, id) {
       layer.confirm('確認(rèn)要?jiǎng)h除嗎?', function (index) {
           //發(fā)異步刪除數(shù)據(jù)
           $.get('{:url(\'del\')}', 'id=' + id, function (data) {
               if (data.res == 1) {
                   $(obj).parents("tr").remove();
                   layer.msg('已刪除!', {icon: 1, time: 1000});
               }
           })

       });
   }

</script>
</body>

</html>

Correcting teacher:天蓬老師Correction time:2019-05-24 13:44:05
Teacher's summary:layUI框架, 看上去用得還很熟悉, 不錯(cuò).......

Release Notes

Popular Entries