From: Habu Date: Thu, 29 Mar 2018 11:35:57 +0000 (+0900) Subject: [modify]死因ランキングテーブルにCSS適用 X-Git-Url: http://git.sourceforge.jp/view?p=hengband%2Fweb.git;a=commitdiff_plain;h=47fac8830b842832d39f8a233447a48986445a88 [modify]死因ランキングテーブルにCSS適用 --- diff --git a/score/killer_ranking.php b/score/killer_ranking.php index ae0d66c..5d2674d 100644 --- a/score/killer_ranking.php +++ b/score/killer_ranking.php @@ -7,6 +7,7 @@ ini_set('error_log', 'errors/'.pathinfo(__FILE__, PATHINFO_FILENAME).'.log'); ini_set('zlib.output_compression', 'On'); require_once "db_common.inc"; +require_once "web_template.inc"; $db = new ScoreDB(); @@ -15,31 +16,40 @@ $time_start = microtime(true); $killers = $db->get_killers_table(); $query_time = microtime(true) - $time_start; -?> - - - - - -変愚蛮怒 死因ランキング - - - -

変愚蛮怒 死因ランキング

-クエリ時間 -
- - - 0 ? "(".$k['killer_count_freeze'].")" : ""; - echo << - -EOM; - } -?> -
回数(内、彫像・麻痺状態)死因
{$k['killer_count_total']}$freeze{$k['killer_name']}
- - + +$wt = new WebTemplate(); +$wt->add_head_contents(''); +$wt->set_title("変愚蛮怒 スコア 死因ランキング"); + +$fp = $wt->main_contents_fp(); +fwrite($fp, <<変愚蛮怒 死因ランキング + + + + + + + + + +EOM +); + +fwrite($fp, "\n"); +foreach ($killers as $k) { + //$freeze = $k['killer_count_freeze'] > 0 ? "(".$k['killer_count_freeze'].")" : ""; + fwrite($fp, << + + + + + +EOM + ); +} +fwrite($fp, "\n"); +fwrite($fp, "
回数彫像・
麻痺状態
死因
{$k['killer_count_total']}{$k['killer_count_freeze']}{$k['killer_name']}
\n"); + +$wt->print_page();