OSDN Git Service

bd8d04d1c7a2b3afb410714d4b307a22c44ff42d
[hengband/web.git] / score / score_search.php
1 <?php
2 //ini_set('display_errors', 'On');
3 date_default_timezone_set('UTC');
4
5 ini_set('log_errors', 'On');
6 ini_set('error_log', 'errors/'.pathinfo(__FILE__, PATHINFO_FILENAME).'.log');
7
8 ini_set('zlib.output_compression', 'On');
9
10 require_once "db_common.inc";
11 $db = new ScoreDb();
12 $defines = $db->get_defines();
13
14 function print_select_form($id_defines, $form_name)
15 {
16     echo "<select name='{$form_name}'>";
17     echo "<option value='0' selected>すべて</option>";
18     foreach ($id_defines as $num => $name) {
19         if ($num > 0 && strpos($name, '不明') !== 0) {
20             echo "<option value='{$num}'>{$name}</option>";
21         }
22     }
23     echo "</select>";
24 }
25 ?>
26
27 <!DOCTYPE html>
28
29 <html lang="jp">
30         <head>
31                 <meta charset="utf-8"/>
32                 <link rev=made href="mailto:hengband-dev@lists.sourceforge.jp">
33                 <link rel="stylesheet" type="text/css" href="/hengband.css">
34                 <title>変愚蛮怒 公式WEB</title>
35         </head>
36
37         <body>
38
39                 <header>
40
41                         <section id="title">
42                                 <img class="tama1" src="/image/tama.gif" alt="tama">
43                                 <img class="tama2" src="/image/tama.gif" alt="tama">
44                                 <img class="tama3" src="/image/tama.gif" alt="tama">
45                                 <img class="tama4" src="/image/tama.gif" alt="tama">
46                                 <img id="hengTitle" src="/image/hengband_title.png" alt="変愚蛮怒 Hengband">
47                                 <img class="tama4" src="/image/tama.gif" alt="tama">
48                                 <img class="tama3" src="/image/tama.gif" alt="tama">
49                                 <img class="tama2" src="/image/tama.gif" alt="tama">
50                                 <img class="tama1" src="/image/tama.gif" alt="tama">
51                         </section>
52
53                         <section id="mainMenu">
54                                 <a href="/index.html">トップ</a>
55                                 <a href="/download.html">ダウンロード</a>
56                                 <a href="/score.html">スコア</a>
57                                 <a href="/lists.html">コミュニティ</a>
58                                 <a href="/history.html">バージョン履歴</a>
59                                 <a href="/link.html">関連リンク</a>
60                                 <a href="/jlicense.html">著作権表記</a>
61                                 <span>English (Coming Soon)</span>
62                         </section>
63
64                 </header>
65
66                 <div id="main">
67 <h2>変愚蛮怒スコア 詳細検索</h2>
68 <form action="score_ranking.php" method="GET">
69 <p>
70 <label for="race_id">種族:</label>
71 <?php print_select_form($defines['race'], 'race_id'); ?>
72 <label for="class_id">職業:</label>
73 <?php print_select_form($defines['class'], 'class_id'); ?>
74 <label for="class_id">性格:</label>
75 <?php print_select_form($defines['personality'], 'personality_id'); ?>
76 </p>
77 <p>
78 <label for="realm_id1">領域1:</label>
79 <?php print_select_form($defines['realm'], 'realm_id1'); ?>
80 <label for="realm_id2">領域2:</label>
81 <?php print_select_form($defines['realm'], 'realm_id2'); ?>
82 </p>
83 <p>
84 <label for="name">キャラクター名</label>
85 <input type="text" name="name">
86 <label for="name_match_strict">
87 <input type="radio" name="name_match" value="strict" id="name_match_strict" checked="checked">完全一致
88 </label>
89 <label for="name_match_partial">
90 <input type="radio" name="name_match" value="partial" id="name_match_partial">部分一致
91 </label>
92 </p>
93 <p>
94 <label for="name">死因</label>
95 <input type="text" name="killer" placeholder="死因を入力(例:デスソード)">※部分一致のみ、「勝利の後引退」は'ripe'、「勝利の後切腹」は'Seppuku'と入力
96 </p>
97 <p>
98 <label for="sort">ソート順</label>
99 <select name="sort" id="sort">
100 <option value="socre">スコア順</option>
101 <option value="newcome">新着順</option>
102 </select>
103 </p>
104 <p>
105 <input type="submit" value="検索"></input>
106 </p>
107 </form>
108       <!--main contents-->
109                 </div>
110
111                 <footer>
112
113                 <section>
114                 各ページへのリンクは御自由にどうぞ。/ Link Free.<br>
115                 2018 Hengband Dev Team. <a href="mailto:hengband-dev@lists.sourceforge.jp">hengband-dev@lists.sourceforge.jp</a><br>
116                 </section>
117
118                 <section>
119                 Powered by <a href="https://osdn.net/" class="footer_banner">
120                 <img src="//osdn.net/sflogo.php?group_id=541" border="0" alt="OSDN">
121                 </a>
122                 </section>
123
124                 </footer>
125
126         </body>
127
128 </html>
129