add "from" section
This commit is contained in:
parent
a566a9fb26
commit
0280256a9f
9
.github/ISSUE_TEMPLATE/new.yml
vendored
9
.github/ISSUE_TEMPLATE/new.yml
vendored
@ -13,6 +13,13 @@ body:
|
|||||||
id: author
|
id: author
|
||||||
attributes:
|
attributes:
|
||||||
label: 作者
|
label: 作者
|
||||||
description: 这个句子是哪位角色说的
|
description: 这个句子是哪位角色说的,例如:"桂乃芬"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: from
|
||||||
|
attributes:
|
||||||
|
label: 出处
|
||||||
|
description: 这个句子是哪个游戏哪个任务里的,例如:"崩坏:星穹铁道《狐斋志异》双生"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
@ -51,7 +51,14 @@ require("track.php");
|
|||||||
if ($row["author"] != NULL) {
|
if ($row["author"] != NULL) {
|
||||||
?>
|
?>
|
||||||
<div id="author" style="font-size: 1.5rem;">
|
<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>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
3
soul.sql
3
soul.sql
@ -22,7 +22,8 @@ SET time_zone = "+08:00";
|
|||||||
CREATE TABLE `soul` (
|
CREATE TABLE `soul` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`title` varchar(300) NOT NULL,
|
`title` varchar(300) NOT NULL,
|
||||||
`author` varchar(30)
|
`author` varchar(30),
|
||||||
|
`from` varchar(30)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
|
||||||
--
|
--
|
||||||
-- 转储表的索引
|
-- 转储表的索引
|
||||||
|
Loading…
x
Reference in New Issue
Block a user