college-list.jsp 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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="listStyleCode" value="10010"/>
  6. <c:if test="${not empty navigation.wnlscode}"><c:set var="listStyleCode" value="${navigation.wnlscode}"/></c:if>
  7. <c:set var="isTextList" value="${listStyleCode == 10000}"/>
  8. <c:set var="isGraphicList" value="${listStyleCode == 10010}"/>
  9. <c:set var="isMediaList" value="${listStyleCode == 10020 or listStyleCode == 10030 or listStyleCode == 10050}"/>
  10. <c:set var="isVideoList" value="${listStyleCode == 10050}"/>
  11. <c:set var="mediaListClass" value="article-image-grid"/>
  12. <c:if test="${isVideoList}"><c:set var="mediaListClass" value="article-video-grid"/></c:if>
  13. <c:set var="articleListClass" value="article-text-list"/>
  14. <c:if test="${isGraphicList}"><c:set var="articleListClass" value="article-graphic-list"/></c:if>
  15. <c:set var="articleThumbStyle" value=""/>
  16. <c:if test="${not empty navigation.photoSizeWidth and not empty navigation.photoSizeHeight}">
  17. <c:set var="articleThumbStyle" value="--article-thumb-ratio:${navigation.photoSizeWidth} / ${navigation.photoSizeHeight};"/>
  18. </c:if>
  19. <!doctype html>
  20. <html lang="zh-CN">
  21. <head>
  22. <meta charset="UTF-8">
  23. <meta name="viewport" content="width=device-width, initial-scale=1">
  24. <title>${navigation.name}_${website.seoTitle}</title>
  25. <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">
  26. </head>
  27. <body>
  28. <div class="college-page college-department-page department-subpage">
  29. <header class="college-header department-header">
  30. <div class="department-utility"><div class="wrap department-utility-inner"><nav aria-label="学院快捷入口"><a class="department-school-home" href="http://127.0.0.1:4188/">学校首页</a><a href="/">学院首页</a></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>
  31. <div class="department-brand"><div class="wrap department-brand-inner"><a class="department-logo" href="/" aria-label="${website.name}"><img src="${assetBase}/official/logo.png" alt="广州华夏职业学院"><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>
  32. <nav class="college-nav department-nav" aria-label="${website.name}导航"><div class="wrap college-nav-inner">${desktopNavHtmlWithHome}</div></nav>
  33. </header>
  34. <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>
  35. <main>
  36. <section class="department-inner-hero">
  37. <div class="wrap">
  38. <div class="crumb-links">
  39. <a href="/">${website.seoTitle}</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach>
  40. </div>
  41. <h1>${navigation.name}</h1>
  42. <span><c:choose><c:when test="${not empty navigation.desc}">${navigation.desc}</c:when><c:otherwise>聚合${navigation.name}相关内容。</c:otherwise></c:choose></span>
  43. </div>
  44. </section>
  45. <section class="department-inner-content">
  46. <div class="wrap department-list-layout">
  47. <aside class="department-column-nav">
  48. <strong>${website.seoTitle}栏目</strong>
  49. <c:choose>
  50. <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>
  51. <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>
  52. <c:otherwise><a href="${navigation.url}">${navigation.name}</a></c:otherwise>
  53. </c:choose>
  54. </aside>
  55. <article class="department-column-list">
  56. <div class="department-section-title"><h2>${navigation.name}</h2><a href="/">${website.seoTitle}首页</a></div>
  57. <c:choose>
  58. <c:when test="${not empty childrenNavList}">
  59. <ul>
  60. <c:forEach items="${childrenNavList}" var="item">
  61. <li><a href="${item.href}" target="${item.target}"><time>${item.nameAssistant}</time><div><span>${navigation.name}</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>
  62. </c:forEach>
  63. </ul>
  64. </c:when>
  65. <c:otherwise>
  66. <c:choose>
  67. <c:when test="${isMediaList}">
  68. <ul class="article-media-grid ${mediaListClass}">
  69. <c:forEach items="${articleList}" var="item">
  70. <li>
  71. <a href="${item.url}" target="${item.target}" style="${articleThumbStyle}">
  72. <span class="article-media-thumb">
  73. <c:choose>
  74. <c:when test="${not empty item.thumbnail}"><img src="${item.thumbnail}" alt="${item.title}"></c:when>
  75. <c:otherwise><em>暂无缩略图</em></c:otherwise>
  76. </c:choose>
  77. <c:if test="${isVideoList}"><i class="article-video-play" aria-hidden="true"></i></c:if>
  78. </span>
  79. <strong>${item.title}</strong>
  80. </a>
  81. </li>
  82. </c:forEach>
  83. <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>
  84. </ul>
  85. </c:when>
  86. <c:otherwise>
  87. <ul class="${articleListClass}">
  88. <c:forEach items="${articleList}" var="item">
  89. <li>
  90. <a href="${item.url}" target="${item.target}" style="${articleThumbStyle}">
  91. <c:choose>
  92. <c:when test="${isGraphicList}">
  93. <span class="article-list-thumb">
  94. <c:choose>
  95. <c:when test="${not empty item.thumbnail}"><img src="${item.thumbnail}" alt="${item.title}"></c:when>
  96. <c:otherwise><em>暂无缩略图</em></c:otherwise>
  97. </c:choose>
  98. </span>
  99. <div class="article-graphic-copy">
  100. <div class="article-graphic-head">
  101. <strong class="article-graphic-title">${item.title}</strong>
  102. <time class="article-graphic-time"><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time>
  103. </div>
  104. <p>${item.desc}</p>
  105. </div>
  106. </c:when>
  107. <c:otherwise>
  108. <time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time>
  109. <div><span>${navigation.name}</span><strong>${item.title}</strong><p>${item.desc}</p></div>
  110. </c:otherwise>
  111. </c:choose>
  112. </a>
  113. </li>
  114. </c:forEach>
  115. <c:if test="${empty articleList}"><li><a href="javascript:void(0)" role="button" data-empty-article="true" data-empty-article-message="该栏目还未有文章,请浏览其他栏目"><div><span>${navigation.name}</span><strong>暂无内容</strong><p>该栏目暂未发布文章。</p></div></a></li></c:if>
  116. </ul>
  117. </c:otherwise>
  118. </c:choose>
  119. </c:otherwise>
  120. </c:choose>
  121. <c:if test="${empty childrenNavList and pageCount > 1}">
  122. <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>
  123. </c:if>
  124. </article>
  125. </div>
  126. </section>
  127. </main>
  128. <footer class="college-footer department-footer"><div class="wrap college-footer-inner"><p>${website.name}</p><nav aria-label="${website.name}页脚链接"><a href="http://127.0.0.1:4188/">学校首页</a><a href="/">${website.seoTitle}首页</a></nav></div></footer>
  129. </div>
  130. <script src="/main/ffkj-portal/portal-zq.js?v=20261109-nav-focus-close"></script>
  131. <%@ include file="website-guest-gate-include.jsp"%>
  132. <script src="/main/ffkj-portal/pagination-jump.js?v=20261128-search-pages-r2"></script>
  133. </body>
  134. </html>