OSDN Git Service

[modify]キャラクタダンプへのリンクを順位番号からキャラクタの名前へ移動
[hengband/web.git] / killer_ranking.php
1 <?php
2 //ini_set('display_errors', 'On');
3
4 ini_set('log_errors', 'On');
5 ini_set('error_log', 'errors/'.pathinfo(__FILE__, PATHINFO_FILENAME).'.log');
6
7 ini_set('zlib.output_compression', 'On');
8
9 include "db_common.inc";
10
11 $db = new ScoreDB();
12
13 $time_start = microtime(true);
14
15 $killers = $db->get_killers_table();
16
17 $query_time = microtime(true) - $time_start;
18 ?>
19 <!DOCTYPE html>
20 <html>
21 <head>
22 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
23 <meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
24 <title>変愚蛮怒 死因ランキング</title>
25 </head>
26
27 <body>
28 <h1>変愚蛮怒 死因ランキング</h1>
29 <small>クエリ時間<?php echo sprintf("%.3f msec", $query_time * 1000) ?></small>
30 <hr>
31 <table>
32 <tr><th>回数(内、彫像・麻痺状態)</th><th>死因</th></tr>
33 <?php
34     foreach ($killers as $k) {
35         //$total = $count['knormal'] + $count['freeze'];
36         $freeze = $k['killer_count_freeze'] > 0 ? "(".$k['killer_count_freeze'].")" : "";
37         echo <<<EOM
38 <tr><td>{$k['killer_count_total']}$freeze</td><td>{$k['killer_name']}</td></tr>
39
40 EOM;
41     }
42 ?>
43 </table>
44 </body>
45 </html>