-
Notifications
You must be signed in to change notification settings - Fork 0
/
loanlogt.jsp
71 lines (71 loc) · 3.19 KB
/
loanlogt.jsp
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
<%@ page language="java" contentType="text/html;" pageEncoding="gb2312"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>分页显示贷款记录</title>
<script type="text/javascript">
function select() {
var curPage=document.getElementById("curPage").value;
location.href="/ssh2-netBank/transaction/loanlist1?pager.curPage="+curPage;
}
</script>
</head>
<body>
<div align="center">
<table width="650" border="1" cellpadding="0" cellspacing="0">
<tbody align="center">
<tr>
<td colspan="5" style="font-size: 20px; color: red;" align="center">贷款记录一览表</td>
</tr>
<tr>
<td width="50">序号</td>
<td width="80">贷款金额</td>
<td width="80">代还金额</td>
<td>交易日期</td>
</tr>
<s:iterator value="#request.logs" status="status">
<tr>
<td><s:property value="#status.count"/></td>
<td><s:property value="loan_money"/></td>
<td><s:property value="huan_money"/></td>
<td><s:property value="datetime"/></td>
</tr>
</s:iterator>
</tbody>
</table>
<!-- 分页超链接部分 -->
<table>
<tr>
<td></td>
<td>
<s:if test="pager.curPage > 1">
<a href='/ssh2-netBank/transaction/loanlist1?pager.curPage=1&id=${account.accountid} & status.id=${status.id}'>首页</a>
<a href='/ssh2-netBank/transaction/loanlist1?pager.curPage=${pager.curPage-1}&id=${account.accountid} & status.id=${status.id}'>上一页</a>
</s:if>
</td>
<td>
<s:if test="pager.curPage < pager.pageCount">
<a href='/ssh2-netBank/transaction/loanlist1?pager.curPage=${pager.curPage+1}&id=${account.accountid} & status.id=${status.id}'>下一页</a>
<a href='/ssh2-netBank/transaction/loanlist1?pager.curPage=${pager.pageCount}&id=${account.accountid} & status.id=${status.id}'>尾页</a>
</s:if>
</td>
<td>
共${pager.curPage}/${pager.pageCount}页 转至
<select onchange="select()" id="curPage">
<s:iterator>
<s:if test="#status.count == pager.curPage">
<option value="${status.count}" selected="selected">${status.count}</option>
</s:if>
<s:else>
<option value="${status.count}">${status.count}</option>
</s:else>
</s:iterator>
</select>页
</td>
</tr>
</table>
</div>
</body>
</html>