|
@@ -34,6 +34,23 @@
|
|
|
href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
|
|
|
</nav>
|
|
|
<div class="page-container">
|
|
|
+ <form action="adminnews.html" method="get" id="search">
|
|
|
+ <div class="text-c">
|
|
|
+ <span class="select-box inline">
|
|
|
+ <select name="typeid" id="typeid" class="select">
|
|
|
+ <option value="" <c:if test="${typeid == 0 }">selected="selected"</c:if>>全部</option>
|
|
|
+ <c:forEach items="${types}" var="types">
|
|
|
+ <option value="${types.id}"
|
|
|
+ <c:if test="${typeid == types.id }">selected="selected"</c:if>>${types.title}</option>
|
|
|
+ </c:forEach>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ <button onClick="$('#search').submit()" class="btn btn-success" type="submit"><i class="Hui-iconfont"></i>
|
|
|
+ 搜索
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <input name="type" value="${type}" hidden="hidden"/>
|
|
|
+ </form>
|
|
|
<div class="cl pd-5 bg-1 bk-gray mt-20">
|
|
|
<span class="l">
|
|
|
<a class="btn btn-primary radius" href="updnews.html?type=${type}"><i
|
|
@@ -95,24 +112,28 @@
|
|
|
<section>
|
|
|
<div class="bd points-goods-list">
|
|
|
<ul class="pages">
|
|
|
- <li><a href="adminnews.html?type=${type}&page=1&rows=${pageInfo.pageSize}">首页</a></li>
|
|
|
+ <li><a href="adminnews.html?typeid=${typeid}&type=${type}&page=1&rows=${pageInfo.pageSize}">首页</a>
|
|
|
+ </li>
|
|
|
<li class="prev"><a
|
|
|
- href="adminnews.html?type=${type}&page=${pageInfo.prePage}&rows=${pageInfo.pageSize}">上一页</a>
|
|
|
+ href="adminnews.html?typeid=${typeid}&type=${type}&page=${pageInfo.prePage}&rows=${pageInfo.pageSize}">上一页</a>
|
|
|
</li>
|
|
|
<c:forEach items="${pageInfo.navigatepageNums}" var="nav">
|
|
|
<c:if test="${nav == pageInfo.pageNum}">
|
|
|
- <li><a href="adminnews.html?type=${type}&page=${nav}&rows=${pageInfo.pageSize}"
|
|
|
+ <li>
|
|
|
+ <a href="adminnews.html?typeid=${typeid}&type=${type}&page=${nav}&rows=${pageInfo.pageSize}"
|
|
|
class="active">${nav}</a></li>
|
|
|
</c:if>
|
|
|
<c:if test="${nav != pageInfo.pageNum}">
|
|
|
- <li><a href="adminnews.html?type=${type}&page=${nav}&rows=${pageInfo.pageSize}">${nav}</a>
|
|
|
+ <li>
|
|
|
+ <a href="adminnews.html?typeid=${typeid}&type=${type}&page=${nav}&rows=${pageInfo.pageSize}">${nav}</a>
|
|
|
</li>
|
|
|
</c:if>
|
|
|
</c:forEach>
|
|
|
<li class="next"><a
|
|
|
- href="adminnews.html?type=${type}&page=${pageInfo.nextPage}&rows=${pageInfo.pageSize}">下一页</a>
|
|
|
+ href="adminnews.html?typeid=${typeid}&type=${type}&page=${pageInfo.nextPage}&rows=${pageInfo.pageSize}">下一页</a>
|
|
|
</li>
|
|
|
- <li><a href="adminnews.html?type=${type}&page=${pageInfo.pages }&rows=${pageInfo.pageSize}">末页</a>
|
|
|
+ <li>
|
|
|
+ <a href="adminnews.html?typeid=${typeid}&type=${type}&page=${pageInfo.pages }&rows=${pageInfo.pageSize}">末页</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|