xingong-search.jsp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  4. <!doctype html>
  5. <html lang="zh-CN">
  6. <head>
  7. <meta charset="UTF-8">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. <meta name="description" content="${website.seoDescription}">
  10. <title>站内搜索_${website.seoTitle}</title>
  11. <link rel="stylesheet" href="/main/ffkj-portal/xingong-blue.css?v=20261123-left-nav-width-r2"><link rel="stylesheet" href="/web/upload/modules/sys/upload/files/2026/11/17/portal-360-compat-r2.css?v=20261117-360-compat-r2">
  12. <%@ include file="school-schema-jsonld-include.jsp"%>
  13. </head>
  14. <body>
  15. <%@ include file="xingong-header.jsp"%>
  16. <main class="inner-page">
  17. <section class="inner-hero"><div class="wrap inner-hero-inner"><div class="crumb-links"><a href="/">首页</a><span>/</span><span>站内搜索</span></div><h1>站内搜索</h1><p>搜索${website.name}及下级网站已发布文章。</p></div></section>
  18. <section class="inner-content"><div class="wrap">
  19. <article class="inner-list-panel">
  20. <c:choose>
  21. <c:when test="${isNullKey eq '1'}"><div class="search-empty-panel"><strong>请输入搜索关键词</strong><p>输入文章标题或摘要中的关键词后再搜索。</p></div></c:when>
  22. <c:when test="${empty articleList}"><div class="search-empty-panel"><strong>暂无结果</strong><p>没有找到包含“${str}”的已发布文章。</p></div></c:when>
  23. <c:otherwise>
  24. <p class="search-result-meta">关键词:${str}</p>
  25. <ul class="inner-news-list">
  26. <c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><span class="article-list-thumb"><c:choose><c:when test="${not empty item.thumbnail}"><img src="${item.thumbnail}" alt="${item.title}"></c:when><c:otherwise><em>暂无缩略图</em></c:otherwise></c:choose></span><div class="article-copy"><div class="article-graphic-head"><strong class="article-graphic-title">${item.title}</strong><time class="article-graphic-time">${fn:substring(item.release_time, 0, 10)}</time></div><p>${item.desc}</p><span class="search-result-source">${item.website_name}<c:if test="${not empty item.navigation_name}"> / ${item.navigation_name}</c:if></span></div></a></li></c:forEach>
  27. </ul>
  28. <c:if test="${pageCount gt 1}"><nav class="inner-pagination" data-page-count="${pageCount}" data-current-page="${curPageNo}" aria-label="分页"><span class="page-summary">共 ${pageCount} 页</span><c:if test="${curPageNo gt 1}"><c:url var="prevUrl" value="/search"><c:param name="str" value="${str}"/><c:param name="page" value="${curPageNo - 1}"/></c:url><a href="${prevUrl}">上一页</a></c:if><span class="active">${curPageNo}</span><c:if test="${curPageNo lt pageCount}"><c:url var="nextUrl" value="/search"><c:param name="str" value="${str}"/><c:param name="page" value="${curPageNo + 1}"/></c:url><a href="${nextUrl}">下一页</a></c:if></nav></c:if>
  29. </c:otherwise>
  30. </c:choose>
  31. </article>
  32. </div></section>
  33. </main>
  34. <%@ include file="xingong-footer.jsp"%>
  35. <script src="/main/ffkj-portal/xingong-blue.js?v=20261026-tab-overflow-1"></script>
  36. <%@ include file="website-guest-gate-include.jsp"%>
  37. <script src="/main/ffkj-portal/pagination-jump.js?v=20261128-search-pages-r3"></script>
  38. </body>
  39. </html>