[FO] HTML 레이아웃 적용

This commit is contained in:
김현주
2025-06-10 13:48:53 +09:00
parent 08ae6e1ada
commit d73167148c
162 changed files with 7696 additions and 269 deletions

View File

@@ -10,52 +10,50 @@
██ ██ ██ ███████ ██ ██ ██████ ██
-->
<head th:fragment="head">
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta name="_csrf" th:content="${_csrf.token}"/>
<meta name="_csrf_header" th:content="${_csrf.headerName}"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<!-- <meta name="format-detection" content="telephone=no" /> -->
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta charset="utf-8" />
<title th:text="${currentURI.ogTitle}">KRI 임가경제조사</title>
<meta name="description" th:content="${currentURI.ogDesc}"/>
<meta name="keywords" th:content="${currentURI.ogKeywords}"/>
<meta property="og:type" content="website" />
<meta property="og:site_name" content="" />
<meta property="og:title" th:content="${currentURI.ogTitle}"/>
<meta property="og:description" th:content="${currentURI.ogDesc}"/>
<meta property="og:keywords" th:content="${currentURI.ogKeywords}"/>
<meta property="og:image" th:content="${currentURI.ogImage}"/>
<meta name="_csrf" th:content="${_csrf.token}"/>
<meta name="_csrf_header" th:content="${_csrf.headerName}"/>
<title th:text="${currentURI.ogTitle}"></title>
<meta name="title" th:content="${currentURI.ogTitle}"/>
<meta name="description" th:content="${currentURI.ogDesc}"/>
<meta name="keywords" th:content="${currentURI.ogKeywords}"/>
<meta property="og:title" th:content="${currentURI.ogTitle}"/>
<meta property="og:description" th:content="${currentURI.ogDesc}"/>
<meta property="og:keywords" th:content="${currentURI.ogKeywords}"/>
<meta property="og:image" th:content="${currentURI.ogImage}"/>
<link rel="icon" type="image/x-icon" href="pathImages/" />
<link rel="shortcut icon" type="image/x-icon" href="pathImages/" />
<link th:href="@{/static/assets/styles/style.css}" type="text/css" rel="stylesheet" />
<script th:src="@{/static/assets/scripts/common.ui.plugin.js}"></script>
<script th:src="@{/static/assets/scripts/common.ui.js}"></script>
<script th:src="@{/static/assets/scripts/common.js}"></script>
<script th:src="@{/static/library/jquery/jquery-3.7.1.min.js}"></script>
<script th:src="@{/static/library/jsUri/Uri.js}"></script>
<script th:src="@{/static/library/jsRender/jsrender.min.js}"></script>
<script th:src="@{/static/ui/uiUtil.js}"></script>
<script th:src="@{/static/ui/ajaxUtil.js}"></script>
<script th:src="@{/static/ui/commonUtil.js}"></script>
<script th:src="@{/static/library/jquery/jquery-serializeObject.min.js}"></script>
<script th:src="@{/static/library/jquery/jquery-3.7.1.min.js}"></script>
<script th:src="@{/static/library/jsUri/Uri.js}"></script>
<script th:src="@{/static/library/jsRender/jsrender.min.js}"></script>
<script th:src="@{/static/ui/uiUtil.js}"></script>
<script th:src="@{/static/ui/ajaxUtil.js}"></script>
<script th:src="@{/static/ui/commonUtil.js}"></script>
<script th:src="@{/static/library/jquery/jquery-serializeObject.min.js}"></script>
<link rel="stylesheet" th:href="@{/static/library/flatpickr/flatpickr.min.css}">
<link rel="stylesheet" th:href="@{/static/library/flatpickr/flatpickr.dark.css}">
<script th:src="@{/static/library/flatpickr/flatpickr.min.js}"></script>
<script th:each="flashMsg : ${session.flashAlertMessages}" th:if="${session.flashAlertMessages != null}"
th:inline="javascript">
$(function () {
const flashAlertMessage = [[${flashMsg}]];
if (flashAlertMessage) {
alert(flashAlertMessage);
}
});
</script>
<script th:each="flashMsg : ${session.flashAlertMessages}" th:if="${session.flashAlertMessages != null}"
th:inline="javascript">
$(function () {
const flashAlertMessage = [[${flashMsg}]];
if (flashAlertMessage) {
alert(flashAlertMessage);
}
});
</script>
<script th:if="${session.flashAlertMessages != null}" th:inline="javascript">
[[${#session.removeAttribute('flashAlertMessages')}]]
</script>
<style type="text/css">
.active {
font-weight: bold;
}
</style>
<script th:if="${session.flashAlertMessages != null}" th:inline="javascript">
[[${#session.removeAttribute('flashAlertMessages')}]]
</script>
</head>
<body>
@@ -67,74 +65,55 @@
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ████ ██ ██ ████ ██ ██ ██ ███████ ██ ██ ██████ ███████ ██ ██
-->
<nav th:fragment="header">
<section style="background:#eee; border-radius: 1px;">
<h2>Header 영역</h2>
<p>
<strong>Current Locale</strong> :
<select name="localeSelect" onchange="localeChange(this);">
<option>언어 설정</option>
<option th:selected="${#locale.toString() == 'ko_KR'}" value="ko_KR">ko_KR</option>
<option th:selected="${#locale.toString() == 'en_US'}" value="en_US">en_US</option>
</select>
</p>
<p>
<strong>Current Device</strong> : [[${currentDevice}]]
</p>
<p>
<strong>Current URI</strong> : [[${currentURI.id}]]
</p>
<div>
<strong>Current Login User</strong> :
<p sec:authorize="isAnonymous()" th:remove="tag">
<a href="/login">[로그인]</a>
</p>
<p sec:authorize="isAuthenticated()" th:remove="tag">
<strong th:text="${#authentication.principal.ownerName}">로그인 사용자명</strong>
, seq=<strong th:text="${#authentication.principal.householdSeq}">로그인 사용자SEQ</strong>
<a href="/logout">[로그아웃]</a>
<a href="/user/info">[정보수정]</a>
</p>
</div>
<script th:inline="javascript">
function localeChange(oj) {
if (!oj.value) {
return;
}
location.href = new Uri(location.href).replaceQueryParam('lang', oj.value);
}
</script>
<ul th:if="${topNode != null}">
<li>
<a th:classappend="${topNode.uri eq currentURI.uri} ? 'active'"
th:href="${topNode.uri}">[[${#messages.msg(topNode.id)}]]</a>
</li>
<li th:each="menu : ${topNode.children}" th:if="${menu.showOnNavi}">
<!-- 자식 nodes 가 없는 경우 -->
<a th:classappend="${currentURI.id == menu.id}? 'active'"
th:href="${menu.uri}" th:if="${#lists.size(menu.children) == 0}"
th:text="${#messages.msg(menu.id)}">메뉴명</a>
<!-- 자식 nodes 가 있는 경우 -->
<a th:classappend="${@coreUtil.containsCurrentURI(menuHierarchy, menu.id)}? 'active'"
th:href="${menu.uri}"
th:if="${#lists.size(menu.children) > 0}" th:text="${#messages.msg(menu.id)}">메뉴명</a>
<ul th:if="${#lists.size(menu.children) > 0}">
<li th:each="child : ${menu.children}" th:if="${child.showOnNavi}">
<a class="dropdown-item"
th:classappend="${@coreUtil.containsCurrentURI(menuHierarchy, child.id)}? 'active'"
th:href="${child.uri}" th:text="${#messages.msg(child.id)}">메뉴명</a>
</li>
<th:block th:fragment="header">
<header id="header" class="header"><!-- 스크롤 시 class='scroll' 추가 -->
<ul class="skipnav">
<li>
<a href="#content">컨텐츠 바로가기</a>
</li>
</ul>
</li>
</ul>
</section>
</nav>
<div class="header-wrap"><!-- sub페이지에 class='sub' 추가 -->
<h1>
<a href="javascript:void(0);" onclick="kri.menu.main();" class="logo"><img th:src="@{/static/assets/images/common/logo_kri.svg}" alt="KRI 로고"> <span>[[${#messages.msg(currentURI.id)}]]</span></a>
</h1>
<!--/* TODO 전체메뉴 S */-->
<p>
<strong>Current Device</strong> : [[${currentDevice}]]
</p>
<ul th:if="${topNode != null}">
<li>
<a th:classappend="${topNode.uri eq currentURI.uri} ? 'active'"
th:href="${topNode.uri}">[[${#messages.msg(topNode.id)}]]</a>
</li>
<li th:each="menu : ${topNode.children}" th:if="${menu.showOnNavi}">
<!-- 자식 nodes 가 없는 경우 -->
<a th:classappend="${currentURI.id == menu.id}? 'active'"
th:href="${menu.uri}" th:if="${#lists.size(menu.children) == 0}"
th:text="${#messages.msg(menu.id)}">메뉴명</a>
<!-- 자식 nodes 가 있는 경우 -->
<a th:classappend="${@coreUtil.containsCurrentURI(menuHierarchy, menu.id)}? 'active'"
th:href="${menu.uri}"
th:if="${#lists.size(menu.children) > 0}" th:text="${#messages.msg(menu.id)}">메뉴명</a>
<ul th:if="${#lists.size(menu.children) > 0}">
<li th:each="child : ${menu.children}" th:if="${child.showOnNavi}">
<a class="dropdown-item"
th:classappend="${@coreUtil.containsCurrentURI(menuHierarchy, child.id)}? 'active'"
th:href="${child.uri}" th:text="${#messages.msg(child.id)}">메뉴명</a>
</li>
</ul>
</li>
</ul>
<!--/* TODO 전체메뉴 E */-->
<div class="inner">
<button type="button" class="btn-back"><span class="hide-txt">이전으로 이동</span></button>
<div class="page-tit">
<h2>화면 타이틀</h2>
</div>
</div>
<button type="button" class="btn-allmenu"><span class="hide-txt">전체메뉴 열기</span></button>
</div>
</header>
</th:block>
<!--
██████ ██████ ███████ █████ ██████ ██████ ██████ ██ ██ ███ ███ ██████
@@ -144,21 +123,21 @@
██████ ██ ██ ███████ ██ ██ ██████ ██████ ██ ██ ██████ ██ ██ ██████
-->
<div th:fragment="breadcrumb">
<div style="background:#eee;">
<h2>Breadcrumb 영역</h2>
<nav>
<ol>
<li th:classappend="${item.id == currentURI.id}? 'active'"
th:each="item, status : ${menuHierarchy}">
<a th:href="${item.uri}" th:if="${item.id != currentURI.id}">
<span th:remove="tag" th:text="${@coreUtil.getUriTitle(item)}"></span>
</a>
<span th:if="${item.id == currentURI.id}" th:remove="tag"
th:text="${@coreUtil.getUriTitle(item)}"></span>
</li>
</ol>
</nav>
</div>
<!--<div style="background:#eee;">
<h2>Breadcrumb 영역</h2>
<nav>
<ol>
<li th:classappend="${item.id == currentURI.id}? 'active'"
th:each="item, status : ${menuHierarchy}">
<a th:href="${item.uri}" th:if="${item.id != currentURI.id}">
<span th:remove="tag" th:text="${@coreUtil.getUriTitle(item)}"></span>
</a>
<span th:if="${item.id == currentURI.id}" th:remove="tag"
th:text="${@coreUtil.getUriTitle(item)}"></span>
</li>
</ol>
</nav>
</div>-->
</div>
<!--
@@ -169,7 +148,7 @@
██ ██ ██ ██████ ███████ ██ ██ ███████ ██ ██ ██████ ██ ██ ████ ██████
-->
<div th:fragment="pageHeading">
<h1 th:text="${#messages.msg(currentURI.id)}"></h1>
<h1 th:text="${#messages.msg(currentURI.id)}"></h1>
</div>
<!--
@@ -180,8 +159,8 @@
██████ ██ ███████ ██ ██ ██ ██ ██ ██ ██████ ██ ████ ██ ██ ███████ ██████
-->
<div class="row" th:fragment="operationMessage" th:if="${not #strings.isEmpty(operationMessage)}">
<div class="alert alert-info fw-bold" th:utext="${operationMessage}">
</div>
<div class="alert alert-info fw-bold" th:utext="${operationMessage}">
</div>
</div>
<!--
@@ -191,14 +170,37 @@
██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██████ ██████ ██ ███████ ██ ██
-->
<div th:fragment="footer">
<footer>
<div>
<span>&copy; 2022 All rights reserved</span>
</div>
</footer>
<div th:fragment="bottom-bar">
<footer id="footer" class="footer">
<nav class="footer-menu">
<ul>
<li class="menu-acco active"><a href="javascript:void(0);" onclick="kri.menu.daily();">일계부</a></li>
<!--/* TODO : 2차 오픈 */-->
<!--<li class="menu-regi"><a href="">입력현황</a></li>
<li class="menu-stat"><a href="">통계</a></li>-->
<li class="menu-info"><a href="javascript:void(0);" onclick="kri.menu.my();">내정보</a></li>
<!--/* TODO : 전체메뉴 적용 전 임시 메뉴 S */-->
<li sec:authorize="isAnonymous()" th:remove="tag">
<a href="/login">[로그인]</a>
</li>
<li sec:authorize="isAuthenticated()" th:remove="tag">
<strong th:text="${#authentication.principal.ownerName}">로그인 사용자명</strong>
, seq=<strong th:text="${#authentication.principal.householdSeq}">로그인 사용자SEQ</strong>
<a href="/logout">[로그아웃]</a>
</li>
<!--/* TODO : 전체메뉴 적용 전 임시 메뉴 E */-->
</ul>
</nav>
</footer>
</div>
<!--/* 플로팅 : 위로가기 */-->
<th:block th:fragment="floating-totop">
<div id="btn-gotop">
<a class="gotop"><span class="hide-txt">화면 제일위로 이동</span></a>
</div>
</th:block>
</body>
</html>