totalNumber.html
3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!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/totalNumber?page="+curr;
}
}
});
});
//=================================COMMON====================================
function checkIsNull(val) {
return val === "" || val === undefined || val === null;
}
</script>
</body>
</html>