add "from" section

This commit is contained in:
Zichao Lin 2023-11-25 17:41:02 +08:00
parent a566a9fb26
commit 0280256a9f
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB
3 changed files with 18 additions and 3 deletions

@ -13,6 +13,13 @@ body:
id: author
attributes:
label: 作者
description: 这个句子是哪位角色说的
description: 这个句子是哪位角色说的,例如:"桂乃芬"
validations:
required: true
- type: textarea
id: from
attributes:
label: 出处
description: 这个句子是哪个游戏哪个任务里的,例如:"崩坏:星穹铁道《狐斋志异》双生"
validations:
required: true

@ -51,7 +51,14 @@ require("track.php");
if ($row["author"] != NULL) {
?>
<div id="author" style="font-size: 1.5rem;">
<?php echo $row["author"] ?>
——<?php echo $row["author"] ?>
</div>
<?php
}
if ($row["from"] != NULL) {
?>
<div id="from" style="font-size: 1.5rem; color: dimgray;">
<i><?php echo $row["from"] ?></i>
</div>
<?php
}

@ -22,7 +22,8 @@ SET time_zone = "+08:00";
CREATE TABLE `soul` (
`id` int(11) NOT NULL,
`title` varchar(300) NOT NULL,
`author` varchar(30)
`author` varchar(30),
`from` varchar(30)
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
--
-- 转储表的索引