초기소스
This commit is contained in:
51
src/main/webapp/WEB-INF/views/comm/itrnt/Header.jsp
Normal file
51
src/main/webapp/WEB-INF/views/comm/itrnt/Header.jsp
Normal 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>
|
||||
Reference in New Issue
Block a user