距离下一次大休还有

' . $days . '

'; } else { $remainingDays = $firstPeriodDays - $currentPeriod; $remainingTime = $remainingDays * (60 * 60 * 24) + $extraHours * (60 * 60); $days = floor($remainingTime / (60 * 60 * 24)); echo '

距离开学还有

1

'; } } $startDate = '2024-10-06 16:25:00'; // 开始计时的日期 $firstPeriodDays = 12; // 第一阶段的天数 $secondPeriodDays = 2; // 第二阶段的天数 $extraHours = 0; // 额外的小时数 $countdownText = startCountdown($startDate, $firstPeriodDays, $secondPeriodDays, $extraHours); ?>

今天油二

没有爆炸

活动一览

query("SELECT * FROM articles WHERE type = 'activity' ORDER BY created_at DESC"); while ($row = $stmt->fetch()) { echo "

{$row['title']}

"; echo "

{$row['content']}

"; echo "发布于: {$row['created_at']}
"; } ?>

新闻动态

query("SELECT * FROM articles WHERE type = 'news' ORDER BY created_at DESC"); while ($row = $stmt->fetch()) { echo "

{$row['title']}

"; echo "

{$row['content']}

"; echo "发布于: {$row['created_at']}
"; } ?>