초기소스

This commit is contained in:
jazz
2025-10-29 17:08:05 +09:00
parent e531aa9540
commit 439a379a02
7551 changed files with 1234427 additions and 3 deletions

View File

@@ -0,0 +1,51 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<header class="header">
<div class="header__top">
<div class="header-left">
<div class="header__logo">
<a href="/itrnt">
<img src="<c:url value="/itrnt/images/logo_default.png"/>" alt="GC ONE 관리자">
<span class="header__logo-title">인트라넷</span>
</a>
</div>
</div>
<div class="header-right">
<button class="header-right__user-info">
<i class="icon icon_user-info"></i>
<c:out value="${userNm}"/>님
</button>
<button class="header-right__logout" onclick="location.href='/logout'">
<i class="icon icon_logout"></i>
로그아웃
</button>
</div>
</div>
<div class="header__bottom">
<nav class="header-nav">
<div class="header-nav__right">
<ul>
<c:if test="${!empty topMenuList}">
<c:forEach var="topMenuList" items="${topMenuList.menuList}" varStatus="status">
<c:set var="topMenuCd" value="${sessionScope.topMenuCd}" />
<li <c:if test="${topMenuCd eq topMenuList.menuCd}"> class="current" </c:if>>
<a href="javascript:void(0)" onclick="setTopMenuCode('<c:out value="${topMenuList.menuCd}"/>','<c:out value="${topMenuList.url}"/>')"><c:out value ="${topMenuList.menuNm}"/></a>
</li>
</c:forEach>
</c:if>
</ul>
</div>
</nav>
</div>
</header>
<script>
function setTopMenuCode(topMenuCd, topMenuUrl) {
document.cookie = "topMenuCd=" + topMenuCd + "; path=/itrnt";
document.cookie = "leftMenuCd=" + "" + "; path=/itrnt";
document.cookie = "upperMenuCd=" + "" + "; path=/itrnt";
document.cookie = "topMenuUrl=" + topMenuUrl + "; path=/itrnt";
document.cookie = "checkMenu=Y" + "; path=/itrnt";
window.location.href = topMenuUrl;
}
</script>