初始化版本
This commit is contained in:
54
upload_text.php
Normal file
54
upload_text.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
// 文案投稿页面:允许用户上传文本内容,保存到 texts_pending 等待处理/审核
|
||||
?>
|
||||
<!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="assets/style.css" />
|
||||
<style>
|
||||
.upload-page { max-width: 980px; margin: 24px auto; padding: 20px; border: 2px solid #e33; border-radius: 14px; background:#fff; box-shadow: 0 4px 12px rgba(0,0,0,0.04);}
|
||||
.upload-page h1 { margin: 0 0 16px; font-size: 22px; }
|
||||
.form { display:grid; grid-template-columns: 1fr; gap: 16px; }
|
||||
.field { display:flex; flex-direction:column; gap:8px; }
|
||||
.field input[type="text"], .field textarea { padding: 10px 12px; border:1px solid #ddd; border-radius:8px; }
|
||||
.field textarea { min-height: 160px; resize: vertical; }
|
||||
.actions { display:flex; gap:12px; align-items:center; }
|
||||
.btn { background:#e33; color:#fff; border:none; padding:10px 18px; border-radius:22px; cursor:pointer; }
|
||||
.btn:hover { opacity:.92; }
|
||||
.tips { color:#666; font-size:13px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="page">
|
||||
<header class="menu">
|
||||
<div class="menu__logo">文案投稿</div>
|
||||
<nav aria-label="主菜单">
|
||||
<ul class="menu__nav">
|
||||
<li><a class="menu__link" href="index.php">返回首页</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="upload-page" aria-label="文案投稿表单">
|
||||
<h1>提交你的文案/句子</h1>
|
||||
<form class="form" action="api/upload_text.php" method="post">
|
||||
<div class="field">
|
||||
<label>标题(可选)</label>
|
||||
<input type="text" name="title" placeholder="给你的文案起个标题" />
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>文案内容</label>
|
||||
<textarea name="content" placeholder="输入你想分享的文案内容" required></textarea>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<button class="btn" type="submit">提交文案</button>
|
||||
<a class="menu__link" href="review_texts.php" title="管理员审核入口">管理员审核入口</a>
|
||||
</div>
|
||||
<p class="tips">说明:提交后文案会保存到“待处理”目录,后续可按需添加审核或自动入库。</p>
|
||||
</form>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user