| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <%@ 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="vehicleDefaultImage" value="/main/ffkj-portal/vehicle-source/hero-01-q2ERYw8krpzmxfjShDx5cSW2PU.jpg"/>
- <c:set var="vehiclePageImage" value="${empty navigation.backgroundImage ? vehicleDefaultImage : navigation.backgroundImage}"/>
- <c:set var="vehicleSidebarTitle" value="${empty parNavigation.name ? navigation.name : parNavigation.name}"/>
- <c:if test="${empty articleList and not empty childrenNavList}"><c:redirect url="https://${pageContext.request.serverName}${childrenNavList[0].href}"/></c:if>
- <!doctype html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>${navigation.name}_${empty website.seoTitle ? website.name : website.seoTitle}</title>
- <link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
- <link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-standard">
- </head>
- <body class="vehicle-page" id="top">
- <%@ include file="vehicle-header.jsp"%>
- <main>
- <section class="vc-page-hero" style="--vc-page-bg:url('${vehiclePageImage}')">
- <div class="vc-page-hero-inner">
- <small>COLLEGE NEWS · 栏目列表</small>
- <div class="vc-page-hero-title">${navigation.name}</div>
- <p>${empty navigation.desc ? '汇集车辆学院教学、科研、实践与校园动态,记录学院发展。' : navigation.desc}</p>
- </div>
- </section>
- <div class="vc-breadcrumb"><div class="vc-wrap"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div></div>
- <section class="vc-list-section">
- <div class="vc-wrap vc-list-layout">
- <aside class="vc-sidebar">
- <div class="vc-sidebar-head"><small>COLUMN NAVIGATION</small><h2>${empty vehicleSidebarTitle ? '学院栏目' : vehicleSidebarTitle}</h2></div>
- <nav class="vc-sidebar-nav" aria-label="${vehicleSidebarTitle}导航">
- <c:choose>
- <c:when test="${not empty childrenNavList}"><c:forEach items="${childrenNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
- <c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:forEach></c:when>
- <c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq navigation.navigationid ? 'is-active' : ''}" href="${item.href}" target="${item.target}" rel="noopener">${item.name}</a></c:if></c:forEach></c:otherwise>
- </c:choose>
- </nav>
- </aside>
- <article class="vc-list-panel">
- <div class="vc-list-head"><h1>${navigation.name}</h1><span>${empty navigation.nameAssistant ? 'News List' : navigation.nameAssistant}</span></div>
- <c:choose>
- <c:when test="${empty articleList and not empty childrenNavList}">
- <div class="vc-catalog-grid">
- <c:forEach items="${childrenNavList}" var="item"><a class="vc-catalog-card" href="${item.href}" target="${item.target}" rel="noopener"><strong>${item.name}</strong><p>${empty item.desc ? '进入该栏目查看更多内容。' : item.desc}</p></a></c:forEach>
- </div>
- </c:when>
- <c:when test="${empty articleList}"><div class="vc-empty" style="margin-top:22px">暂无内容,请在后台发布文章。</div></c:when>
- <c:otherwise>
- <ul class="vc-article-list">
- <c:forEach items="${articleList}" var="item">
- <li><a class="vc-article-card" href="${item.url}" target="${item.target}" rel="noopener">
- <div class="vc-article-thumb"><img src="${empty item.thumbnail ? vehicleDefaultImage : item.thumbnail}" alt="${item.title}"></div>
- <div class="vc-article-copy">
- <h2>${item.title}</h2>
- <c:if test="${not empty item.desc}"><p>${item.desc}</p></c:if>
- <div class="vc-article-meta"><span>${navigation.name}</span><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></div>
- </div>
- </a></li>
- </c:forEach>
- </ul>
- </c:otherwise>
- </c:choose>
- <c:if test="${not empty articleList}">
- <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="vc-pagination" data-page-count="${pageCount}" data-current-page="${curPageNo}" aria-label="分页">
- <span class="vc-page-summary">共 ${pageCount} 页</span>
- <c:choose><c:when test="${curPageNo > 1}"><a href="${curHerf}?page=${curPageNo - 1}">上一页</a></c:when><c:otherwise><span class="is-disabled">上一页</span></c:otherwise></c:choose>
- <c:if test="${pageWindowStart > 1}"><a href="${curHerf}?page=1">1</a><c:if test="${pageWindowStart > 2}"><span class="vc-ellipsis">…</span></c:if></c:if>
- <c:forEach begin="${pageWindowStart}" end="${pageWindowEnd}" var="pageNo"><a class="${pageNo eq curPageNo ? 'is-active' : ''}" href="${curHerf}?page=${pageNo}">${pageNo}</a></c:forEach>
- <c:if test="${pageWindowEnd < pageCount}"><c:if test="${pageWindowEnd < pageCount - 1}"><span class="vc-ellipsis">…</span></c:if><a href="${curHerf}?page=${pageCount}">${pageCount}</a></c:if>
- <c:choose><c:when test="${curPageNo < pageCount}"><a href="${curHerf}?page=${curPageNo + 1}">下一页</a></c:when><c:otherwise><span class="is-disabled">下一页</span></c:otherwise></c:choose>
- </nav>
- </c:if>
- </article>
- </div>
- </section>
- </main>
- <%@ include file="vehicle-footer.jsp"%>
- <script src="/main/ffkj-portal/pagination-jump.js?v=20261123-all-list-v7"></script>
- </body>
- </html>
|