-
Notifications
You must be signed in to change notification settings - Fork 0
/
story_list.php
68 lines (64 loc) · 2.73 KB
/
story_list.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
define("GF_HEADER", "aaaaa");
require_once("common.php");
$header_title = "소녀전선 메인스토리 | 소전DB";
$header_desc = "소녀전선 스토리, 소전 스토리, 소전 스토리 순서, 소녀전선 스토리 정리, 소녀전선 스토리 순서, 소녀전선 메인 스토리 순서, 소녀전선 스토리 순서, 소녀전선 스토리모음";
require_once("header.php");
if($lang == "en")
$storys = json_decode(file_get_contents("story_json/en/story.txt"));
else
$storys = json_decode(file_get_contents("story_json/story.txt"));
?>
<main role="main" class="container">
<div class="my-3 p-3 bg-white rounded box-shadow">
<h2 style="display: inline;margin-right:10px"><?=L::story_prologue?></h2>
<h6 class="border-bottom border-gray pb-2 mb-0"></h6>
<div class="media text-muted pt-3">
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
<a href="story.php?q=1001"><strong class="d-block text-dark"><?=L::story_prologue?></strong></a>
</p>
</div>
</div>
<?php foreach($storys as $story) {
if($story->num == -16) echo '<div class="my-3 p-3 bg-white rounded box-shadow"><h2 style="display: inline;margin-right:10px">특이점</h2><h6 class="border-bottom border-gray pb-2 mb-0"></h6><div class="media text-muted pt-3">
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray"><a href="singularity.php"><strong class="d-block text-dark">특이점</strong></a></p></div></div>';
if($story->num == -16 || $story->num == -17 || $story->num == -18) continue;
?>
<div class="my-3 p-3 bg-white rounded box-shadow">
<h3 style="display: inline;margin-right:10px"><?=$story->name?> : <?=$story->keyword?></h3><b><i><?=$story->desc?></i></b>
<h6 class="border-bottom border-gray pb-2 mb-0"></h6>
<div class="media text-muted pt-3">
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
<?php foreach($story->list as $list) {
if($list->type == "일반") {
$typename = L::story_normal;
$href = $list->num;
} else if($list->type == "긴급") {
$typename = L::story_emergency;
$href = $list->num . "E";
} else if($list->type == "야간") {
$typename = L::story_night;
$href = $list->num . "N";
}
if($list->num < 0) {
$typename = L::story_event;
$list->num = "";
}
if($list-> num > 1000) {
$typename = L::story_prologue;
$list->num = "";
}
?>
<a href="story.php?q=<?=$href?>"><strong class="d-block text-dark">(<?=$typename?>) <?=$list->num?> - <?=$list->name?></strong></a>
<i><?=$list->desc?></i><br><br>
<?php } ?>
</p>
</div>
</div>
<?php } ?>
</main>
<?php
require_once("footer.php");
?>
</body>
</html>