feat(wip): 연감에서 지도를 부르는 작업 준비중

This commit is contained in:
2022-04-20 20:59:10 +09:00
parent e014bc05e8
commit 1e19213f76
4 changed files with 150 additions and 44 deletions
+7
View File
@@ -15,6 +15,11 @@ $serverID = Util::getReq('serverID', 'string', null);
if (!$serverID) {
$serverID = UniqueConst::$serverID;
}
if ($serverID !== UniqueConst::$serverID) {
$mapName = $db->queryFirstField('SELECT map FROM ng_games WHERE server_id=%s', $serverID) ?: 'che';
} else {
$mapName = GameConst::$mapName;
}
[$f_year, $f_month] = $db->queryFirstList('SELECT year, month FROM ng_history WHERE server_id = %s ORDER BY year ASC, month ASC LIMIT 1', $serverID);
[$l_year, $l_month] = $db->queryFirstList('SELECT year, month FROM ng_history WHERE server_id = %s ORDER BY year DESC, month DESC LIMIT 1', $serverID);
@@ -32,6 +37,8 @@ $me = $db->queryFirstRow('SELECT con, turntime FROM general WHERE owner = %i', $
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=500" />
<?= WebUtil::printJS('../d_shared/common_path.js', true) ?>
<?= WebUtil::printJS("js/map/theme_{$mapName}.js") ?>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css" />
<?= WebUtil::printStaticValues([
'staticValues' => [
'fisrtYearMonth' => Util::joinYearMonth($f_year, $f_month),