更新网页架构,新增外部工具分区,优化web样式

This commit is contained in:
MasonLiu committed 2026-09-08 23:53:35 +08:00
1 parent 0c3d3d4977
commit c5b6f4b4c2
15 files changed
+1207 -713

No files matched your search

+7 -1
View File
@@ -6,9 +6,15 @@
function func_bar(string $title): void
{
// 从库首页“内部功能区”卡片进入时(?from=nav)返回按钮改为“返回上一页”
$fromNav = (($_GET['from'] ?? '') === 'nav');
echo '<div class="func-bar">';
echo '<div class="wrap func-bar-inner">';
echo '<a class="btn btn-sm" href="index.php">← 返回功能区首页</a>';
if ($fromNav) {
echo '<a class="btn btn-sm" href="javascript:history.back()" title="返回来源页面">← 返回上一页</a>';
} else {
echo '<a class="btn btn-sm" href="index.php">← 返回功能区首页</a>';
}
echo '<span class="func-bar-title">' . he($title) . '</span>';
echo '<a class="btn btn-sm" href="../index.php">首页</a>';
echo '</div></div>' . "\n";
+2 -2
View File
@@ -14,7 +14,7 @@ layout_head('功能区');
<section class="sub-hero">
<a class="back-home" href="../index.php">← 返回首页</a>
<h1>功能区</h1>
<p>工具统一收纳于此;新工具的入口可在后台“功能区管理”中登记</p>
<p class="st-tip">工具统一收纳于此;新工具的入口可在后台“功能区管理”中登记</p>
</section>
<div class="wrap page-body">
@@ -36,7 +36,7 @@ layout_head('功能区');
</div>
<?php else: ?>
<div class="panel-card">
<div class="tip">功能区还没有可用的工具,请到后台“功能区管理”中添加。</div>
<div class="tip">功能区还没有可用的工具<span class="st-tip">,请到后台“功能区管理”中添加</span>。</div>
</div>
<?php endif; ?>
</div>