初始化版本
This commit is contained in:
79
project.php
Normal file
79
project.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['auth']) || !$_SESSION['auth']) {
|
||||
// 未登录时跳回首页登录
|
||||
header('Location: index.php');
|
||||
exit;
|
||||
}
|
||||
$pid = $_GET['id'] ?? '';
|
||||
?>
|
||||
<!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/css/style.css" />
|
||||
<style>
|
||||
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
|
||||
.topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
|
||||
.topbar .left { display:flex; align-items:center; gap:8px; }
|
||||
.topbar h1 { margin: 0; font-size: 18px; }
|
||||
.notes-add-bar { display:flex; gap:8px; align-items:center; margin-top:8px; }
|
||||
.note { border:1px dashed var(--border); padding:8px; border-radius:8px; margin:8px 0; }
|
||||
.note-preview img { max-width: 100%; }
|
||||
.hidden { display:none; }
|
||||
</style>
|
||||
<script>
|
||||
window.PAGE_PROJECT_ID = '<?php echo htmlspecialchars($pid, ENT_QUOTES); ?>';
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="page-wrap">
|
||||
<div class="topbar">
|
||||
<div class="left">
|
||||
<a class="btn back-btn" href="index.php">返回列表</a>
|
||||
<strong id="pageProjectTitle">项目详情</strong>
|
||||
<span id="pageProjectStatus" class="ml-8 muted"></span>
|
||||
</div>
|
||||
<div class="right">
|
||||
<button class="btn danger" id="logoutBtn" title="退出登录">退出登录</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="project-actions">
|
||||
<input id="renameProjectInput" class="input" placeholder="重命名项目" />
|
||||
<select id="statusSelect" class="select">
|
||||
<option value="待做">待做</option>
|
||||
<option value="进行">进行</option>
|
||||
<option value="完成">完成</option>
|
||||
<option value="异常">异常</option>
|
||||
</select>
|
||||
<input id="etaInput" type="date" class="input" placeholder="计划完成日期" style="display:none" />
|
||||
<button class="btn" id="saveMetaBtn">保存项目信息</button>
|
||||
<button class="btn danger" id="deleteProjectBtn">删除项目</button>
|
||||
<button class="btn" id="exportHtmlBtn">导出为HTML</button>
|
||||
<button class="btn" id="cleanupBtn" title="后端扫描未引用文件并删除">清理未用图片</button>
|
||||
</div>
|
||||
|
||||
<div id="projectRemind" class="remind-banner" style="margin-bottom:10px;"></div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div>
|
||||
<h4 class="notes-title">笔记</h4>
|
||||
<div id="notesList"></div>
|
||||
<div class="notes-add-bar">
|
||||
<textarea id="newNoteInput" class="input" placeholder="新增笔记内容"></textarea>
|
||||
<button class="btn" id="newNoteAddImageBtn" title="为新笔记插入图片">添加图片</button>
|
||||
<input type="file" id="newNoteImageInput" accept="image/*" class="hidden" />
|
||||
<button class="btn primary" id="addNoteBtn">添加笔记</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="muted" id="pageMsg" style="margin-top:8px;"></div>
|
||||
</div>
|
||||
|
||||
<script src="assets/js/project.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user