dept-red-search.jsp 1.3 KB

1234567891011121314151617181920212223
  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/fmt" prefix="fmt"%>
  4. <c:set var="searchLabel" value="${empty str ? '请输入关键词' : '关键词:'}${str}"/>
  5. <!doctype html>
  6. <html lang="zh-CN">
  7. <head>
  8. <meta charset="UTF-8">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <title>站内搜索_${website.seoTitle}</title>
  11. <link rel="stylesheet" href="/main/ffkj-portal/dept-red.css?v=20261019-footer-1">
  12. </head>
  13. <body class="screen-red-theme">
  14. <%@ include file="dept-red-header.jsp"%>
  15. <main>
  16. <section class="section"><div class="wrap news-list-panel">
  17. <div class="news-list-head"><h1>站内搜索</h1><span>${searchLabel}</span></div>
  18. <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:otherwise></c:choose>
  19. </div></section>
  20. </main>
  21. <%@ include file="dept-red-footer.jsp"%>
  22. </body>
  23. </html>