|
|
@@ -92,7 +92,7 @@ $carouselItems = [
|
|
|
<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>
|
|
|
+ <li><a href="?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>
|
|
|
@@ -110,7 +110,7 @@ $carouselItems = [
|
|
|
<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>
|
|
|
+ <li class="breadcrumb-item"><a href="./">工作动态</a></li>
|
|
|
<?php if ($selectedChannel): ?>
|
|
|
<li class="breadcrumb-item active" aria-current="page"><?php echo $selectedChannel; ?></li>
|
|
|
<?php else: ?>
|
|
|
@@ -143,11 +143,11 @@ $carouselItems = [
|
|
|
<!-- 分页 -->
|
|
|
<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>
|
|
|
+ <li class="prev"><a href="?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>
|
|
|
+ <li class="<?php echo $i == $currentPage ? 'active' : ''; ?>"><a href="?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>
|
|
|
+ <li class="next"><a href="?channel=<?php echo urlencode($selectedChannel); ?>&page=<?php echo $currentPage < $totalPages ? $currentPage + 1 : $totalPages; ?>">></a></li>
|
|
|
</ul>
|
|
|
</nav>
|
|
|
</div>
|