|
@@ -0,0 +1,197 @@
|
|
|
+<?php
|
|
|
+// 轮播图数据 - 修改为单张图片
|
|
|
+$carouselItems = [
|
|
|
+ [
|
|
|
+ "image" => "/images/test-header-2.png",
|
|
|
+ "alt" => "党建工作"
|
|
|
+ ]
|
|
|
+];
|
|
|
+
|
|
|
+// 党建工作数据
|
|
|
+$partyBuilding = [
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ]
|
|
|
+];
|
|
|
+
|
|
|
+// 党建要闻数据
|
|
|
+$partyNews = [
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ "title" => "厦门市文化和旅游局关于2025年厦门市乡村旅游高质量发展的通知",
|
|
|
+ "date" => "2025-12-07"
|
|
|
+ ],
|
|
|
+];
|
|
|
+
|
|
|
+// 分页数据
|
|
|
+$totalPages = 5;
|
|
|
+$currentPage = 1;
|
|
|
+?>
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="zh-CN">
|
|
|
+
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>厦门市文化遗产保护中心 - 党建工作</title>
|
|
|
+ <link rel="stylesheet" href="/css/fonts.css">
|
|
|
+ <link rel="stylesheet" href="/css/fontawesome.min.css">
|
|
|
+ <link rel="stylesheet" href="/css/bootstrap.min.css">
|
|
|
+ <link rel="stylesheet" href="/css/swiper-bundle.min.css">
|
|
|
+ <link rel="stylesheet" href="/css/style.css">
|
|
|
+ <script src="/js/jquery-3.7.1.js"></script>
|
|
|
+ <script src="/js/bootstrap.bundle.js"></script>
|
|
|
+ <script src="/js/swiper-bundle.min.js"></script>
|
|
|
+</head>
|
|
|
+
|
|
|
+<body>
|
|
|
+ <?php include __DIR__ . '/components/navbar.php'; ?>
|
|
|
+
|
|
|
+ <!-- 轮播图 -->
|
|
|
+ <div class="swiper mySwiper" style="width: 100%; height: 400px;">
|
|
|
+ <div class="swiper-wrapper">
|
|
|
+ <?php foreach ($carouselItems as $item): ?>
|
|
|
+ <div class="swiper-slide">
|
|
|
+ <img src="<?php echo $item['image']; ?>" alt="<?php echo $item['alt']; ?>" style="width: 100%; height: 100%; object-fit: cover;">
|
|
|
+ </div>
|
|
|
+ <?php endforeach; ?>
|
|
|
+ </div>
|
|
|
+ <div class="swiper-pagination"></div>
|
|
|
+ <div class="swiper-button-prev"></div>
|
|
|
+ <div class="swiper-button-next"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 主要内容 -->
|
|
|
+ <div class="main-content">
|
|
|
+ <div class="container">
|
|
|
+ <div class="row">
|
|
|
+ <!-- 左侧导航 -->
|
|
|
+ <div class="col col-sm-12 col-md-3 col-lg-3">
|
|
|
+ <div class="sidebar">
|
|
|
+ <div class="title">
|
|
|
+ <h2>党建工作</h2>
|
|
|
+ </div>
|
|
|
+ <ul class="sidebar-menu">
|
|
|
+ <li><a href="#">党建工作<i class="fa fa-arrow-right"></i></a></li>
|
|
|
+ <li><a href="#">党建要闻<i class="fa fa-arrow-right"></i></a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 右侧内容 -->
|
|
|
+ <div class="col col-sm-12 col-md-9 col-lg-9">
|
|
|
+ <div class="content">
|
|
|
+ <div class="section-title">
|
|
|
+ <h2 class="icon">党建工作</h2>
|
|
|
+
|
|
|
+ <nav aria-label="breadcrumb">
|
|
|
+ <ol class="breadcrumb">
|
|
|
+ <li class="breadcrumb-item"><a href="/">首页</a></li>
|
|
|
+ <li class="breadcrumb-item active" aria-current="page">党建工作</li>
|
|
|
+ </ol>
|
|
|
+ </nav>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 文章列表 -->
|
|
|
+ <div class="news-list">
|
|
|
+ <?php foreach ($partyBuilding as $item): ?>
|
|
|
+ <div class="news-item">
|
|
|
+ <a href="./xinWenXiangQing.php?id=<?php echo $item['title']; ?>" class="title"><?php echo $item['title']; ?></a>
|
|
|
+ <span class="date"><?php echo $item['date']; ?></span>
|
|
|
+ </div>
|
|
|
+ <?php endforeach; ?>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 分页 -->
|
|
|
+ <nav aria-label="List Page navigation">
|
|
|
+ <ul class="pagination mt-4">
|
|
|
+ <?php for ($i = 1; $i <= $totalPages; $i++): ?>
|
|
|
+ <li class="<?php echo $i == $currentPage ? 'active' : ''; ?>"><a href="?page=<?php echo $i?>"><?php echo $i; ?></a></li>
|
|
|
+ <?php endfor; ?>
|
|
|
+ </ul>
|
|
|
+ </nav>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <?php include __DIR__ . '/components/footer.php'; ?>
|
|
|
+
|
|
|
+ <script>
|
|
|
+ $(document).ready(function() {
|
|
|
+ // 初始化 Swiper
|
|
|
+ const swiper = new Swiper(".mySwiper", {
|
|
|
+ slidesPerView: 1,
|
|
|
+ spaceBetween: 30,
|
|
|
+ loop: true,
|
|
|
+ pagination: {
|
|
|
+ el: ".swiper-pagination",
|
|
|
+ clickable: true,
|
|
|
+ },
|
|
|
+ navigation: {
|
|
|
+ nextEl: ".swiper-button-next",
|
|
|
+ prevEl: ".swiper-button-prev",
|
|
|
+ },
|
|
|
+ autoplay: {
|
|
|
+ delay: 5000,
|
|
|
+ disableOnInteraction: false,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+
|
|
|
+</html>
|