헤더 메뉴 링크 수정

This commit is contained in:
leejunho 2024-09-26 15:19:08 +09:00
parent d273e7a003
commit 600e09e28b
4 changed files with 49 additions and 72 deletions

View File

@ -108,6 +108,8 @@ public class MenuManageJTreeVO implements Serializable {
String [] codeArry = null; //즐겨찾기 리스트 배열 받기
private Integer childMenuCnt;
public String getTmp_snsId() {
return tmp_snsId;
}
@ -482,5 +484,14 @@ public class MenuManageJTreeVO implements Serializable {
this.depth = depth;
}
public Integer getChildMenuCnt() {
return childMenuCnt;
}
public void setChildMenuCnt(Integer childMenuCnt) {
this.childMenuCnt = childMenuCnt;
}
}

View File

@ -37,6 +37,13 @@
document.body.style.zoom = nowZoom + "%";
}
function depthTwoClick(obj){
var url = $($(obj).parent().find('ul.menu_depth03 li:first-child a')).attr('href');
if(typeof url != 'undefined'){
location.href = $($(obj).parent().find('ul.menu_depth03 li:first-child a')).attr('href');
}
}
</script>
<!-- 전자조정 헤더HTML 시작 -->
@ -85,8 +92,10 @@
<ul class="sub_menu_ul">
<c:forEach var="resultListTwo" items="${menuResultList}" varStatus="status">
<c:if test="${resultListTwo.depths eq '2' && resultListOne.menuNo eq resultListTwo.upperMenuId }">
<li class="menu_depth02">
<a href="#" class="sub_menu_title"><c:out value="${resultListTwo.menuNm}" /></a>
<li class="menu_depth02" id="depthTwo">
<a href="${resultListTwo.menuType ne 'M' ? resultListTwo.url : '#'}" class="sub_menu_title" <c:if test ="${resultListTwo.menuType eq 'M'}"> onclick="depthTwoClick(this); return false;"</c:if>>
<c:out value="${resultListTwo.menuNm}" />
</a>
<ul class="menu_depth03">
<c:forEach var="resultListThree" items="${menuResultList}" varStatus="status">
<c:if test="${resultListThree.depths eq '3' && resultListTwo.menuNo eq resultListThree.upperMenuId }">
@ -113,36 +122,6 @@
</button>
</div>
</nav>
<!-- 전체메뉴 -->
<!-- <div class="full_menu">
<div class="inner">
<h1 class="logo"><img src="/kccadrPb/usr/image/common/top_logo.png"
alt="저작권 전자조정시스템 Copyright Electronic Coordination System"></h1>
<ul class="depth01">
<c:forEach var="resultListOne" items="${menuResultList}" varStatus="status">
<c:if test="${resultListOne.depths eq '1' }">
<li class="depth01_li">
<a href="#" class="menu_link">
<c:out value="${resultListOne.menuNm}" />
</a>
<ul class="depth02">
<c:forEach var="resultListTwo" items="${menuResultList}" varStatus="status">
<c:if test="${resultListTwo.depths eq '2' && resultListOne.menuNo eq resultListTwo.upperMenuId }">
<li>
<a href="${empty resultListTwo.url ? '#' : resultListTwo.url }" ${resultListTwo.menuType eq 'O' ? 'target="_blank"' : ""} >
<c:out value="${resultListTwo.menuNm}" />
</a>
</li>
</c:if>
</c:forEach>
</ul>
</li>
</c:if>
</c:forEach>
</ul>
<button type="button" class="btn_close" title="전체메뉴 닫기"></button>
</div>
</div> -->
<!-- //전체메뉴 -->
<div class="mobile_header">
<div class="header_wrap">
@ -165,7 +144,7 @@
<div class="all_menu_wrap">
<div class="top_area">
<h1 class="logo">
<a href="./index.html" title="메인으로 이동">
<a href="/" title="메인으로 이동">
<img src="/kofair_case_seed/usr/images/layout/header_logo_m.png" alt="한국공정거래조정원 KOREA FAIR TRADE MEDIATION AGENCY">
</a>
</h1>

View File

@ -17,30 +17,17 @@
<c:forEach var="listDep2" items="${whereAmIList}" varStatus="status1">
<c:if test="${listDep2.depth eq '2'}">
<c:choose>
<c:when test="${activeYn eq 'N'}">
<li class="active">
</c:when>
<c:otherwise>
<li>
</c:otherwise>
</c:choose>
<li <c:if test="${activeYn eq 'N'}">class="active"</c:if>>
<c:forEach var="findDep2" items="${whereAmIList}" varStatus="status2">
<c:if test="${listDep2.depth eq '2'}">
<c:choose>
<c:when test="${activeYn eq 'N'}">
<c:choose>
<c:when test="${menuManageVO.menuNo eq findDep2.menuNo}">
<c:if test="${
listDep2.depth eq '2'
&& activeYn eq 'N'
&& menuManageVO.menuNo eq findDep2.menuNo
}">
<c:set var="activeYn" value="Y"/>
</c:when>
</c:choose>
</c:when>
</c:choose>
</c:if>
</c:forEach>
<a href="#none" class="lnb_menu_title">
<a href="${listDep2.menuType ne 'M' ? listDep2.url : '#none'}" class="lnb_menu_title" >
<c:out value="${listDep2.menuNm}"/>
<c:forEach var="depth2CntList" items="${depth2CntList}" varStatus="status4">
<c:if test="${
@ -51,21 +38,21 @@
</c:if>
</c:forEach>
</a>
<c:forEach var="listDep3" items="${whereAmIList}" varStatus="status3">
<c:if test="${status3.count eq 1}">
<c:forEach var="depth2CntList" items="${depth2CntList}" varStatus="status4">
<c:if test="${
depth2CntList.menuNo eq listDep2.menuNo
&& depth2CntList.cnt gt 0
}">
<ul class="lnb_sub_menu">
</c:if>
<c:forEach var="listDep3" items="${whereAmIList}" varStatus="status3">
<c:if test="${listDep3.upperMenuId eq listDep2.menuNo}">
<c:choose>
<c:when test="${listDep3.menuNo eq menuManageVO.menuNo}">
<li><a href="#" class="active" onclick="location.href='${listDep3.url}'"><c:out value="${listDep3.menuNm}"/></a></li>
</c:when>
<c:otherwise>
<li><a href="#" onclick="location.href='${listDep3.url}'"><c:out value="${listDep3.menuNm}"/></a></li>
</c:otherwise>
</c:choose>
<li>
<a href="#" <c:if test="${listDep3.menuNo eq menuManageVO.menuNo}">class="active"</c:if> onclick="location.href='${listDep3.url}'">
<c:out value="${listDep3.menuNm}"/>
</a>
</li>
</c:if>
<c:if test="${status3.count eq whereAmIList.size()}">
</c:forEach>
</ul>
</c:if>
</c:forEach>