From 80ef98ed7e14434683cc911ebe4d850f2186c237 Mon Sep 17 00:00:00 2001 From: usami Date: Thu, 27 Mar 2025 08:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E9=97=BB=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- display.php | 116 +++++++++++++++++++++++++++ news.php | 220 ++++++++++++++++++++++++++++++++++++++++++++++++++++ submit.php | 156 +++++++++++++++++++++++++++++++++++++ 3 files changed, 492 insertions(+) create mode 100644 display.php create mode 100644 news.php create mode 100644 submit.php diff --git a/display.php b/display.php new file mode 100644 index 0000000..b4d9691 --- /dev/null +++ b/display.php @@ -0,0 +1,116 @@ + + + + + + + + 新闻列表 - 2025 + + + + + + +
+

最新新闻

+ + +
+ 暂无新闻,点击发布第一条新闻 +
+ +
+ $news): ?> +
+
+
+

+ 删除 +
+

+
+ + +
+
+
+ +
+ +
+ + + + + + diff --git a/news.php b/news.php new file mode 100644 index 0000000..ab6bd6c --- /dev/null +++ b/news.php @@ -0,0 +1,220 @@ + $title, + 'content' => $content, + 'categories' => $categories, + 'time' => date('Y-m-d H:i:s') + ]; + } +} +?> + + + + + + + 新闻发布系统 + + + + + + +
+
+

发布新闻

+

分享最新资讯

+
+ +
+
+ + +
+ +
+ + +
+ +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+ +
+
+ +

最新动态

+ + $news): ?> +
+
+

+ 删除 +
+

+
+ + + + +
+
+ +
+ + + + + + diff --git a/submit.php b/submit.php new file mode 100644 index 0000000..f6831ff --- /dev/null +++ b/submit.php @@ -0,0 +1,156 @@ + $title, + 'content' => $content, + 'category' => $category, + 'time' => date('Y-m-d H:i:s') + ]; + $success = true; + } else { + $error = true; + } +} +?> + + + + + + + 新闻发布 - 2025 + + + + + + +
+ +
+ 新闻发布成功!查看新闻 +
+ +
+ 请填写所有必填字段! +
+ + +
+

发布新闻

+

分享2025最新资讯

+
+ +
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+ + +
+ +
+
+ +
+ +
+
+
+ + + + + + +