17) { $type = 0; } if ($type2 < 0 || $type2 > 6) { $type2 = 0; } //로그인 검사 $session = Session::requireGameLogin()->setReadOnly(); if ($session->userGrade < 5) { die(requireAdminPermissionHTML()); } $db = DB::db(); $sel = []; $sel2 = []; $sel[$type] = "selected"; $sel2[$type2] = "selected"; ?> 일제정보
일 제 정 보
정렬순서 :
query($query) as $nation) { $gen = $db->queryFirstRow('SELECT COUNT(*) as cnt, ROUND(AVG(gold)) as avgg, ROUND(AVG(rice)) as avgr, SUM(leadership) as leadership, ROUND(AVG(leadership), 1) as avgl, ROUND(AVG(strength), 1) as avgs, ROUND(AVG(intel), 1) as avgi, ROUND(AVG(explevel), 1) as avge, SUM(crew) as crew from general where nation=%i', $nation['nation']); $city = $db->queryFirstRow('SELECT COUNT(*) as cnt, SUM(pop) as pop, SUM(pop_max) as pop_max, ROUND(SUM(pop)/SUM(pop_max)*100, 2) as rate, trust, ROUND(SUM(agri)/SUM(agri_max)*100, 2) as agri, ROUND(SUM(comm)/SUM(comm_max)*100, 2) as comm, ROUND(SUM(secu)/SUM(secu_max)*100, 2) as secu, ROUND(SUM(wall)/SUM(wall_max)*100, 2) as wall, ROUND(SUM(def)/SUM(def_max)*100, 2) as def from city where nation=%i', $nation['nation']); echo " "; } ?>
국명 접률 단접 국력 장수 속령 기술 전략 국고 병량 평금 평쌀 평통 평무 평지 평Lv 보숙 궁숙 기숙 귀숙 차숙 총병 인구 인구율 농업 상업 치안 성벽 수비 국명
{$nation['name']}  {$nation['connect']}   {$nation['con']}   {$nation['power']}   {$gen['cnt']}   {$city['cnt']}   " . sprintf('%.1f', $nation['tech']) . "   {$nation['strategic_cmd_limit']}   {$nation['gold']}   {$nation['rice']}   {$gen['avgg']}   {$gen['avgr']}   {$gen['avgl']}   {$gen['avgs']}   {$gen['avgi']}   {$gen['avge']}   {$nation['dex1']}   {$nation['dex2']}   {$nation['dex3']}   {$nation['dex4']}   {$nation['dex5']}   {$gen['crew']}/{$gen['leadership']}00   {$city['pop']}/{$city['pop_max']}   " . sprintf('%.1f', $city['pop'] / Util::valueFit($city['pop_max'], 1) * 100) . "%   {$city['agri']}%   {$city['comm']}%   {$city['secu']}%   {$city['wall']}%   {$city['def']}%  {$nation['name']}
국력(국력,장수수,도시수,인구/100,최대인구/100,국가자원/100,장수자원/100,능력치,숙련/1000,경험공헌/100)"; break; case 1: echo ""; break; case 2: echo ""; break; case 3: echo ""; break; case 4: echo ""; break; case 5: echo ""; break; case 6: echo ""; break; } ?> query('SELECT * from statistic where month=1 or no=1') as $stat) { echo " "; switch ($type2) { default: case 0: echo ""; break; case 1: echo ""; break; case 2: echo ""; break; case 3: echo ""; break; case 4: echo ""; break; case 5: echo ""; break; case 6: echo ""; break; } echo " "; } ?>
국가수 장수수 국가별성향국가성향장수성격장수특기병종수기타
{$stat['year']} {$stat['month']} {$stat['nation_count']} {$stat['gen_count']}{$stat['power_hist']}{$stat['nation_name']}{$stat['nation_hist']}{$stat['personal_hist']}{$stat['special_hist']}{$stat['crewtype']}{$stat['etc']}