nowPutStorage.html 3.4 KB
<!DOCTYPE html>
<#include "/common/common.html" >
<html>
<head>
  <#include "/common/head.html" >
    <style>
        .layui-center {
            text-align: center;
        }
    </style>
</head>
<body>

<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">
                    <table class="layui-table">
                        <thead>
                        <tr>
                            <th width="25%" style="text-align: center">书名</th>
                            <th width="20%" style="text-align: center">最新章节</th>
                            <th width="20%" style="text-align: center">作者</th>
                            <th width="10%" style="text-align: center">字数</th>
                            <th width="15%" style="text-align: center">更新时间</th>
                            <th width="10%" style="text-align: center">状态</th>
                        </tr>
                        </thead>
                        <tbody>
                        <#list novelList as item>
                        <tr>
                            <td class="layui-center"><a href="javascript:void(0);" style="color: #1E9FFF" onclick="jumpNovelInfo('${item.novelId!}','${item.novelName!}')">${item.novelName!}</a></td>
                            <td class="layui-center">${item.lastChapter!}</td>
                            <td class="layui-center">${item.novelAuthor!}</td>
                            <td class="layui-center">${item.novelWords!}</td>
                            <td class="layui-center">${item.lastChapterUpdate!}</td>
                            <td class="layui-center">
                                <#if item.status == 1>
                                    连载
                                    <#else>
                                    完结
                                </#if>
                            </td>
                        </tr>
                        </#list>
                        </tbody>
                    </table>
                        <div id="clickPage"></div>
                </div>
            </div>
        </div>
    </div>
</div>




<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
<script src="${ctx}/layuiadmin/layui/layui.js"></script>
<script type="text/javascript">

    var currentPage = '${currentPage!}';
    var count = '${count!}';
    layui.use(['layer','laypage'],function () {
        var $ = layui.jquery,
            layer = layui.layer,
            laypage = layui.laypage;

        laypage.render({
            elem: 'clickPage'
            ,count : count
            ,curr : currentPage
            ,layout: ['count', 'prev', 'page', 'next', 'skip']
            ,jump : function (obj,first) {
                if (!first){
                    var curr = obj.curr;
                    window.location.href="${ctx}/ranking/nowPutStorage?page="+curr;
                }
            }
        });

    });


    //=================================COMMON====================================
    function checkIsNull(val) {
        return val === "" || val === undefined || val === null;
    }


  </script>
</body>
</html>