-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlistall.jsp
61 lines (59 loc) · 1.87 KB
/
listall.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
<%@ page import="util.Item" %>
<%@ page import="java.util.List" %><%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2017/5/8
Time: 14:41
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>本月明细</title>
</head>
<body style="text-align: center;">
<h2>餐饮</h2>
<div style="margin-bottom: 15px">
<a href="zengjia.jsp" style="margin-left: 250px;margin-top: 70px;text-decoration: none;">返回首页</a>
</div>
<div style="margin-left: 115px">
<form action="mohu" method="post">
<input type="text" name="search">
<input type="submit" value="搜索">
</form>
</div>
<div>
<div>
<table border="1" cellpadding="5" style="text-align: center;margin:auto;">
<thead>
<tr>
<td>编号</td>
<td>时间</td>
<td>商品</td>
<td>价格</td>
<td>删除</td>
</tr>
<thead>
<c:forEach var="item" items="${page.getPageData()}">
<tr>
<td><c:out value="${item.getId()}" /></td>
<td><c:out value="${item.getDateTimes()}"/></td>
<td><c:out value="${item.getGoods()}" /></td>
<td><c:out value="${item.getSums()}" /></td>
<td><a href="./delete?itemID=${item.getId()}">删除</a></td>
</tr>
</c:forEach>
</thead>
</table>
</div>
<div style="width: 500px;margin:0 auto;padding-top: 15px">
<a href="./listall?pagenumber=1">首页</a>
<a href="./listall?pagenumber=${page.getPreviousNumber()}">上一页</a>
<a href="./listall?pagenumber=${page.getNextNumber()}">下一页</a>
<a href="./listall?pagenumber=${page.getPageCount()}">末页</a>
当前第${page.getPagenumber()}页,总共${page.getPageCount()}页
</div>
</div>
</body>
</html>