|
@@ -82,77 +82,77 @@ $carouselItems = [
|
|
|
<!-- 主要内容 -->
|
|
<!-- 主要内容 -->
|
|
|
<div class="main-content">
|
|
<div class="main-content">
|
|
|
<div class="container">
|
|
<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><?php echo $mainChannelName; ?></h2>
|
|
|
|
|
- </div>
|
|
|
|
|
- <ul class="sidebar-menu">
|
|
|
|
|
- <?php if (!empty($sideMenu)): ?>
|
|
|
|
|
- <?php foreach ($sideMenu as $item): ?>
|
|
|
|
|
- <li><a href="gongZuoDongTai.php?channel=<?php echo urlencode($item['name']); ?>&page=1" class="<?php echo $selectedChannel == $item['name'] ? 'active' : ''; ?>"><?php echo $item['name']; ?><i class="fa fa-arrow-right"></i></a></li>
|
|
|
|
|
- <?php endforeach; ?>
|
|
|
|
|
- <?php else: ?>
|
|
|
|
|
- <li class="no-content">暂无相关子分类</li>
|
|
|
|
|
- <?php endif; ?>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <!-- 左侧导航 -->
|
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-4 col-lg-3">
|
|
|
|
|
+ <div class="sidebar">
|
|
|
|
|
+ <div class="title">
|
|
|
|
|
+ <h2><?php echo $mainChannelName; ?></h2>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <ul class="sidebar-menu">
|
|
|
|
|
+ <?php if (!empty($sideMenu)): ?>
|
|
|
|
|
+ <?php foreach ($sideMenu as $item): ?>
|
|
|
|
|
+ <li><a href="gongZuoDongTai.php?channel=<?php echo urlencode($item['name']); ?>&page=1" class="<?php echo $selectedChannel == $item['name'] ? 'active' : ''; ?>"><?php echo $item['name']; ?><i class="fa fa-arrow-right"></i></a></li>
|
|
|
|
|
+ <?php endforeach; ?>
|
|
|
|
|
+ <?php else: ?>
|
|
|
|
|
+ <li class="no-content">暂无相关子分类</li>
|
|
|
|
|
+ <?php endif; ?>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
- <!-- 右侧内容 -->
|
|
|
|
|
- <div class="col col-sm-12 col-md-9 col-lg-9">
|
|
|
|
|
- <div class="content">
|
|
|
|
|
- <div class="section-title">
|
|
|
|
|
- <h2 class="icon"><?php echo $queryChannel; ?></h2>
|
|
|
|
|
|
|
|
|
|
- <nav aria-label="breadcrumb">
|
|
|
|
|
- <ol class="breadcrumb">
|
|
|
|
|
- <li class="breadcrumb-item"><a href="/">首页</a></li>
|
|
|
|
|
- <li class="breadcrumb-item"><a href="gongZuoDongTai.php">工作动态</a></li>
|
|
|
|
|
- <?php if ($selectedChannel): ?>
|
|
|
|
|
- <li class="breadcrumb-item active" aria-current="page"><?php echo $selectedChannel; ?></li>
|
|
|
|
|
- <?php else: ?>
|
|
|
|
|
- <li class="breadcrumb-item active" aria-current="page">工作动态</li>
|
|
|
|
|
- <?php endif; ?>
|
|
|
|
|
- </ol>
|
|
|
|
|
- </nav>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!-- 右侧内容 -->
|
|
|
|
|
+ <div class="col-12 col-sm-12 col-md-8 col-lg-9">
|
|
|
|
|
+ <div class="content">
|
|
|
|
|
+ <div class="section-title">
|
|
|
|
|
+ <h2 class="icon"><?php echo $queryChannel; ?></h2>
|
|
|
|
|
|
|
|
- <!-- 文章列表 -->
|
|
|
|
|
- <div class="news-list">
|
|
|
|
|
- <?php if (!empty($workUpdates)): ?>
|
|
|
|
|
- <?php foreach ($workUpdates as $item): ?>
|
|
|
|
|
- <?php
|
|
|
|
|
- // 确保所有必要字段存在
|
|
|
|
|
- $title = isset($item['title']) ? $item['title'] : '暂无标题';
|
|
|
|
|
- $articleId = isset($item['id']) ? $item['id'] : '';
|
|
|
|
|
- $date = isset($item['createtime']) ? date('Y-m-d', strtotime($item['createtime'])) : '未知日期';
|
|
|
|
|
- ?>
|
|
|
|
|
- <div class="news-item">
|
|
|
|
|
- <a href="/xinWenXiangQing.php?id=<?php echo $articleId; ?>&channel=<?php echo urlencode($queryChannel); ?>" class="title"><?php echo $title; ?></a>
|
|
|
|
|
- <span class="date"><?php echo $date; ?></span>
|
|
|
|
|
|
|
+ <nav aria-label="breadcrumb">
|
|
|
|
|
+ <ol class="breadcrumb">
|
|
|
|
|
+ <li class="breadcrumb-item"><a href="/">首页</a></li>
|
|
|
|
|
+ <li class="breadcrumb-item"><a href="gongZuoDongTai.php">工作动态</a></li>
|
|
|
|
|
+ <?php if ($selectedChannel): ?>
|
|
|
|
|
+ <li class="breadcrumb-item active" aria-current="page"><?php echo $selectedChannel; ?></li>
|
|
|
|
|
+ <?php else: ?>
|
|
|
|
|
+ <li class="breadcrumb-item active" aria-current="page">工作动态</li>
|
|
|
|
|
+ <?php endif; ?>
|
|
|
|
|
+ </ol>
|
|
|
|
|
+ </nav>
|
|
|
</div>
|
|
</div>
|
|
|
- <?php endforeach; ?>
|
|
|
|
|
- <?php else: ?>
|
|
|
|
|
- <div class="no-news">暂无相关文章</div>
|
|
|
|
|
- <?php endif; ?>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 分页 -->
|
|
|
|
|
- <nav aria-label="List Page navigation">
|
|
|
|
|
- <ul class="pagination mt-4">
|
|
|
|
|
- <li class="prev"><a href="gongZuoDongTai.php?channel=<?php echo urlencode($selectedChannel); ?>&page=<?php echo $currentPage > 1 ? $currentPage - 1 : 1; ?>"><</a></li>
|
|
|
|
|
- <?php for ($i = 1; $i <= $totalPages; $i++): ?>
|
|
|
|
|
- <li class="<?php echo $i == $currentPage ? 'active' : ''; ?>"><a href="gongZuoDongTai.php?channel=<?php echo urlencode($selectedChannel); ?>&page=<?php echo $i; ?>"><?php echo $i; ?></a></li>
|
|
|
|
|
- <?php endfor; ?>
|
|
|
|
|
- <li class="next"><a href="gongZuoDongTai.php?channel=<?php echo urlencode($selectedChannel); ?>&page=<?php echo $currentPage < $totalPages ? $currentPage + 1 : $totalPages; ?>">></a></li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </nav>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 文章列表 -->
|
|
|
|
|
+ <div class="news-list">
|
|
|
|
|
+ <?php if (!empty($workUpdates)): ?>
|
|
|
|
|
+ <?php foreach ($workUpdates as $item): ?>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ // 确保所有必要字段存在
|
|
|
|
|
+ $title = isset($item['title']) ? $item['title'] : '暂无标题';
|
|
|
|
|
+ $articleId = isset($item['id']) ? $item['id'] : '';
|
|
|
|
|
+ $date = isset($item['createtime']) ? date('Y-m-d', strtotime($item['createtime'])) : '未知日期';
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <div class="news-item">
|
|
|
|
|
+ <a href="/xinWenXiangQing/?id=<?php echo $articleId; ?>&channel=<?php echo urlencode($queryChannel); ?>" class="title"><?php echo $title; ?></a>
|
|
|
|
|
+ <span class="date"><?php echo $date; ?></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <?php endforeach; ?>
|
|
|
|
|
+ <?php else: ?>
|
|
|
|
|
+ <div class="no-news">暂无相关文章</div>
|
|
|
|
|
+ <?php endif; ?>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 分页 -->
|
|
|
|
|
+ <nav aria-label="List Page navigation">
|
|
|
|
|
+ <ul class="pagination mt-4">
|
|
|
|
|
+ <li class="prev"><a href="gongZuoDongTai.php?channel=<?php echo urlencode($selectedChannel); ?>&page=<?php echo $currentPage > 1 ? $currentPage - 1 : 1; ?>"><</a></li>
|
|
|
|
|
+ <?php for ($i = 1; $i <= $totalPages; $i++): ?>
|
|
|
|
|
+ <li class="<?php echo $i == $currentPage ? 'active' : ''; ?>"><a href="gongZuoDongTai.php?channel=<?php echo urlencode($selectedChannel); ?>&page=<?php echo $i; ?>"><?php echo $i; ?></a></li>
|
|
|
|
|
+ <?php endfor; ?>
|
|
|
|
|
+ <li class="next"><a href="gongZuoDongTai.php?channel=<?php echo urlencode($selectedChannel); ?>&page=<?php echo $currentPage < $totalPages ? $currentPage + 1 : $totalPages; ?>">></a></li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </nav>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|