You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
3.7 KiB
95 lines
3.7 KiB
<%@page language="java" contentType="text/html; character=UTF-8" pageEncoding="UTF-8" %>
|
|
<%@include file="/common/taglibs.jsp"%>
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<title>管理员后台</title>
|
|
<link rel="stylesheet" href="${ctx}/resource/css/pintuer.css">
|
|
<link rel="stylesheet" href="${ctx}/resource/css/admin.css">
|
|
<script src="${ctx}/resource/js/jquery.js"></script>
|
|
<script src="${ctx}/resource/js/pintuer.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="panel admin-panel">
|
|
<form action="${ctx}/message/findBySql" id="listform" method="post">
|
|
<div class="padding border-bottom">
|
|
<ul class="search" style="padding-left: 10px;">
|
|
<li>
|
|
<input type="text" placeholder="请输入姓名" name="name" class="input" value="${obj.name}"
|
|
style="width: 250px;line-height: 17px;display: inline-block" />
|
|
<a href="javascript:void(0)" onclick="changeSearch()" class="button border-main icon-search">搜索</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</form>
|
|
<table class="table table-hover text-center">
|
|
<tr>
|
|
<th>留言人姓名</th>
|
|
<th>手机号</th>
|
|
<th>留言内容</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
<c:forEach items="${pagers.datas}" var="data" varStatus="l">
|
|
<tr>
|
|
<td>${data.name}</td>
|
|
<td>${data.phone}</td>
|
|
<td>${data.content}</td>
|
|
<td>
|
|
<a class="button border-red" href="${ctx}/message/delete?id=${data.id}"><span class="icon-trash-o">删除</span> </a>
|
|
</td>
|
|
|
|
</tr>
|
|
</c:forEach>
|
|
<tr>
|
|
<td colspan="8">
|
|
<div class="pagelist">
|
|
<!--分页开始-->
|
|
<pg:pager url="${ctx}/message/findBySql" maxIndexPages="5" items="${pagers.total}" maxPageItems="15" export="curPage=pageNumber">
|
|
<pg:last>
|
|
共${pagers.total}记录,共${pageNumber}页,
|
|
</pg:last>
|
|
当前第${curPage}页
|
|
<pg:first>
|
|
<a href="${pageUrl}">首页</a>
|
|
</pg:first>
|
|
<pg:prev>
|
|
<a href="${pageUrl}">上一页</a>
|
|
</pg:prev>
|
|
<pg:pages>
|
|
<c:choose>
|
|
<c:when test="${curPage eq pageNumber}">
|
|
<font color="red">[${pageNumber}]</font>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<a href="${pageUrl}">${pageNumber}</a>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</pg:pages>
|
|
<pg:next>
|
|
<a href="${pageUrl}">下一页</a>
|
|
</pg:next>
|
|
<pg:last>
|
|
<c:choose>
|
|
<c:when test="${curPage eq pageNumber}">
|
|
<font color="red">尾页</font>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<a href="${pageUrl}">尾页</a>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</pg:last>
|
|
</pg:pager>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<script>
|
|
function changeSearch(){
|
|
$("#listform").submit();
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html> |