| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
- <c:set var="searchLabel" value="${empty str ? '请输入关键词' : '关键词:'}${str}"/>
- <!doctype html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>站内搜索_${website.seoTitle}</title>
- <link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-footer-1">
- </head>
- <body class="screen-red-theme">
- <%@ include file="dept-red-header.jsp"%>
- <main>
- <section class="section"><div class="wrap news-list-panel">
- <div class="news-list-head"><h1>站内搜索</h1><span>${searchLabel}</span></div>
- <c:choose>
- <c:when test="${empty articleList}"><div class="empty-line">没有找到匹配内容</div></c:when>
- <c:otherwise>
- <ul class="article-list"><c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time><div class="article-copy"><strong>${item.title}</strong><p>${item.desc}</p></div></a></li></c:forEach></ul>
- <c:if test="${not empty articleList}">
- <c:url var="searchPageUrl" value="/search"><c:param name="str" value="${str}"/></c:url>
- <c:set var="pageWindowStart" value="${curPageNo - 2 < 1 ? 1 : curPageNo - 2}"/>
- <c:set var="pageWindowEnd" value="${pageWindowStart + 4 > pageCount ? pageCount : pageWindowStart + 4}"/>
- <c:set var="pageWindowStart" value="${pageWindowEnd - 4 < 1 ? 1 : pageWindowEnd - 4}"/>
- <nav class="news-pagination" data-page-count="${pageCount}" data-current-page="${curPageNo}" aria-label="搜索分页">
- <span class="page-summary">共 ${pageCount} 页</span>
- <c:choose><c:when test="${curPageNo > 1}"><a class="page-arrow" href="${searchPageUrl}&page=${curPageNo - 1}">上一页</a></c:when><c:otherwise><span class="page-arrow is-disabled">上一页</span></c:otherwise></c:choose>
- <c:if test="${pageWindowStart > 1}"><a href="${searchPageUrl}&page=1">1</a><c:if test="${pageWindowStart > 2}"><span class="page-ellipsis">…</span></c:if></c:if>
- <c:forEach begin="${pageWindowStart}" end="${pageWindowEnd}" var="pageNo"><a class="${pageNo eq curPageNo ? 'active' : ''}" href="${searchPageUrl}&page=${pageNo}">${pageNo}</a></c:forEach>
- <c:if test="${pageWindowEnd < pageCount}"><c:if test="${pageWindowEnd < pageCount - 1}"><span class="page-ellipsis">…</span></c:if><a href="${searchPageUrl}&page=${pageCount}">${pageCount}</a></c:if>
- <c:choose><c:when test="${curPageNo < pageCount}"><a class="page-arrow" href="${searchPageUrl}&page=${curPageNo + 1}">下一页</a></c:when><c:otherwise><span class="page-arrow is-disabled">下一页</span></c:otherwise></c:choose>
- </nav>
- </c:if>
- </c:otherwise>
- </c:choose>
- </div></section>
- </main>
- <%@ include file="dept-red-footer.jsp"%>
- <script src="/main/ffkj-portal/pagination-jump.js?v=20261128-search-pages-r3"></script>
- </body>
- </html>
|