gjjx-dept-list.jsp 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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="assetBase" value="/main/ffkj-portal/assets"/>
  5. <c:set var="departmentLogo" value="${assetBase}/official/logo.png"/>
  6. <c:if test="${not empty website.logo}"><c:set var="departmentLogo" value="${website.logo}"/></c:if>
  7. <c:set var="navigationBadge" value="${navigation.name}"/>
  8. <c:if test="${not empty navigation.nameAssistant}"><c:set var="navigationBadge" value="${navigation.nameAssistant}"/></c:if>
  9. <c:set var="listStyleCode" value="10010"/>
  10. <c:if test="${not empty navigation.wnlscode}"><c:set var="listStyleCode" value="${navigation.wnlscode}"/></c:if>
  11. <c:set var="isTextList" value="${listStyleCode == 10000}"/>
  12. <c:set var="isGraphicList" value="${listStyleCode == 10010}"/>
  13. <c:set var="isMediaList" value="${listStyleCode == 10020 or listStyleCode == 10030 or listStyleCode == 10050}"/>
  14. <c:set var="isVideoList" value="${listStyleCode == 10050}"/>
  15. <c:set var="mediaListClass" value="article-image-grid"/>
  16. <c:if test="${isVideoList}"><c:set var="mediaListClass" value="article-video-grid"/></c:if>
  17. <c:set var="articleListClass" value="article-text-list article-date-free-list"/>
  18. <c:if test="${isGraphicList}"><c:set var="articleListClass" value="article-graphic-list"/></c:if>
  19. <c:set var="articleThumbStyle" value=""/>
  20. <c:if test="${not empty navigation.photoSizeWidth and not empty navigation.photoSizeHeight}">
  21. <c:set var="articleThumbStyle" value="--article-thumb-ratio:${navigation.photoSizeWidth} / ${navigation.photoSizeHeight};"/>
  22. </c:if>
  23. <!doctype html>
  24. <html lang="zh-CN">
  25. <head>
  26. <meta charset="UTF-8">
  27. <meta name="viewport" content="width=device-width, initial-scale=1">
  28. <title>${navigation.name}_${website.seoTitle}</title>
  29. <link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20261117-360-legacy-layout-r2"><link rel="stylesheet" href="/web/upload/modules/sys/upload/files/2026/11/17/portal-360-compat-r2.css?v=20261117-360-compat-r2">
  30. <c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
  31. </head>
  32. <body class="${portalThemeClass}">
  33. <div class="college-page college-department-page college-blue-page department-subpage ${portalThemeClass}">
  34. <header class="college-header department-header">
  35. <div class="department-utility"><div class="wrap department-utility-inner"><nav aria-label="学院快捷入口"><c:choose><c:when test="${not empty utilityLinksNmv.articleList}"><c:forEach items="${utilityLinksNmv.articleList}" var="item" varStatus="vs"><c:if test="${vs.count le 8}"><a class="${vs.first ? 'department-school-home' : ''}" href="${item.url}" target="${item.target}">${item.title}</a></c:if></c:forEach></c:when><c:otherwise><a class="department-school-home" href="${schoolHomeUrl}">${schoolHomeName}</a></c:otherwise></c:choose></nav><form class="department-search" action="/search" method="get"><input name="str" type="search" placeholder="搜索" aria-label="学院站内搜索"><button type="submit" aria-label="提交搜索"><svg class="department-search-icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="10.8" cy="10.8" r="6.6"></circle><path d="m15.7 15.7 4.7 4.7"></path></svg></button></form></div></div>
  36. <div class="department-brand"><div class="wrap department-brand-inner"><a class="department-logo" href="/" aria-label="${website.name}"><img src="${departmentLogo}" alt="${website.name}"><span>${website.seoTitle}</span></a><button class="mobile-menu department-mobile-menu" type="button" aria-label="打开导航"><span></span><span></span><span></span></button></div></div>
  37. </header>
  38. <nav class="college-nav department-nav" aria-label="${website.name}导航"><div class="wrap college-nav-inner">${desktopNavHtmlWithHome}</div></nav>
  39. <div class="drawer-layer" hidden><button class="drawer-mask" type="button" aria-label="关闭导航"></button><aside class="drawer" aria-label="${website.name}移动端导航"><div class="drawer-head"><strong>${website.seoTitle}</strong><button type="button" aria-label="关闭导航">×</button></div>${drawerNavHtmlWithHome}</aside></div>
  40. <main>
  41. <section class="department-inner-hero">
  42. <div class="wrap"></div>
  43. </section>
  44. <section class="department-inner-meta">
  45. <div class="wrap crumb-links">
  46. <a href="/">${website.seoTitle}</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach>
  47. </div>
  48. </section>
  49. <section class="department-inner-content">
  50. <div class="wrap department-list-layout">
  51. <aside class="department-column-nav">
  52. <strong>${website.seoTitle}栏目</strong>
  53. <c:choose>
  54. <c:when test="${not empty childrenNavList}"><c:forEach items="${childrenNavList}" var="item"><a href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when>
  55. <c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when>
  56. <c:otherwise><a href="${navigation.url}">${navigation.name}</a></c:otherwise>
  57. </c:choose>
  58. </aside>
  59. <article class="department-column-list">
  60. <div class="department-section-title"><h2>${navigation.name}</h2><a href="/">${website.seoTitle}首页</a></div>
  61. <c:choose>
  62. <c:when test="${not empty childrenNavList}">
  63. <ul class="department-child-list">
  64. <c:forEach items="${childrenNavList}" var="item">
  65. <li><a href="${item.href}" target="${item.target}"><div><span>${navigationBadge}</span><strong>${item.name}</strong><p><c:choose><c:when test="${not empty item.desc}">${item.desc}</c:when><c:otherwise>进入${item.name}栏目。</c:otherwise></c:choose></p></div></a></li>
  66. </c:forEach>
  67. </ul>
  68. </c:when>
  69. <c:otherwise>
  70. <c:choose>
  71. <c:when test="${isMediaList}">
  72. <ul class="article-media-grid ${mediaListClass}">
  73. <c:forEach items="${articleList}" var="item">
  74. <li>
  75. <a href="${item.url}" target="${item.target}" style="${articleThumbStyle}">
  76. <span class="article-media-thumb">
  77. <c:choose>
  78. <c:when test="${not empty item.thumbnail}"><img src="${item.thumbnail}" alt="${item.title}"></c:when>
  79. <c:otherwise><em>暂无缩略图</em></c:otherwise>
  80. </c:choose>
  81. <c:if test="${isVideoList}"><i class="article-video-play" aria-hidden="true"></i></c:if>
  82. </span>
  83. <strong>${item.title}</strong>
  84. </a>
  85. </li>
  86. </c:forEach>
  87. <c:if test="${empty articleList}"><li><a href="javascript:void(0)" role="button" data-empty-article="true" data-empty-article-message="该栏目还未有文章,请浏览其他栏目"><strong>暂无内容</strong></a></li></c:if>
  88. </ul>
  89. </c:when>
  90. <c:otherwise>
  91. <ul class="${articleListClass}">
  92. <c:forEach items="${articleList}" var="item">
  93. <li>
  94. <a href="${item.url}" target="${item.target}" style="${articleThumbStyle}">
  95. <c:choose>
  96. <c:when test="${isGraphicList}">
  97. <span class="article-list-thumb">
  98. <c:choose>
  99. <c:when test="${not empty item.thumbnail}"><img src="${item.thumbnail}" alt="${item.title}"></c:when>
  100. <c:otherwise><em>暂无缩略图</em></c:otherwise>
  101. </c:choose>
  102. </span>
  103. <div class="article-graphic-copy">
  104. <div class="article-graphic-head">
  105. <strong class="article-graphic-title">${item.title}</strong>
  106. <time class="article-graphic-time"><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time>
  107. </div>
  108. <p>${item.desc}</p>
  109. </div>
  110. </c:when>
  111. <c:otherwise>
  112. <div><strong>${item.title}</strong><p>${item.desc}</p></div>
  113. </c:otherwise>
  114. </c:choose>
  115. </a>
  116. </li>
  117. </c:forEach>
  118. <c:if test="${empty articleList}"><li><a href="javascript:void(0)" role="button" data-empty-article="true" data-empty-article-message="该栏目还未有文章,请浏览其他栏目"><div><strong>暂无内容</strong><p>该栏目暂未发布文章。</p></div></a></li></c:if>
  119. </ul>
  120. </c:otherwise>
  121. </c:choose>
  122. </c:otherwise>
  123. </c:choose>
  124. <c:if test="${empty childrenNavList and pageCount > 1}">
  125. <nav class="inner-pagination" data-page-count="${pageCount}" data-current-page="${curPageNo}" aria-label="分页"><c:if test="${curPageNo > 1}"><a href="${curHerf}?page=${curPageNo - 1}">上一页</a></c:if><a class="active" href="${curHerf}?page=${curPageNo}">${curPageNo}</a><c:if test="${curPageNo < pageCount}"><a href="${curHerf}?page=${curPageNo + 1}">下一页</a></c:if></nav>
  126. </c:if>
  127. </article>
  128. </div>
  129. </section>
  130. </main>
  131. <%@ include file="gjjx-dept-footer.jsp"%>
  132. </div>
  133. <script src="/main/ffkj-portal/portal-zq.js?v=20260623-college-blue-nju-title"></script>
  134. <script src="/main/ffkj-portal/pagination-jump.js?v=20261123-all-list-v7"></script>
  135. </body>
  136. </html>