| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 | <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>        </span>        <!-- <span class="r">共有数据:<strong>54</strong> 条</span>  -->    </div>    <div class="mt-10">        <table class="table table-border table-bordered table-hover table-bg">            <thead>                <tr class="text-c">                    <th width="25">                        <input type="checkbox" value="" name="allcheck">                    </th>                    <th width="80px">ID</th>                    <th width="40px">userid</th>                    <th width="80px">用户名</th>                    <th width="100px">标题</th>                    <th>内容</th>                    <th width="140px">时间</th>                    <th width="120px">ip</th>                    <th>操作</th>                </tr>            </thead>            <tbody>                {notempty name="list"}                {foreach $list as $val}                <tr class="text-c">                    <td>                        <input type="checkbox" value="{$val.id}" name="checkbox[]">                    </td>                    <td>{$val.id}</td>                    <td>{$val.userid}</td>                    <td>{$val.username}</td>                    <td>{$val.title}</td>                    <td>{$val.content}</td>                    <td>{$val.create_time}</td>                    <td>{$val.ip}</td>                    <td class="td-manage">                        <a title="删除" href="javascript:;" onclick="del(this,'{$val.id}')" class="ml-5 btn btn-danger radius">                            <i class="Hui-iconfont"></i>                        </a>                    </td>                </tr>                {/foreach}                {/notempty}            </tbody>        </table>    </div>    <div class="cl pd-5 bg-1 bk-gray mt-20 ">        <span class="r">{$list->render()|raw}</span>    </div></article><!--请在下方写此页面业务相关的脚本--><script type="text/javascript"><<<<<<< HEAD    // 删除条目    // 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');    //     });    // }=======>>>>>>> 12a23a8ae7cd9871a9ece818a1ef3f502a7edd39</script><!--请在上方写此页面业务相关的脚本-->
 |