137 lines
6.1 KiB
Plaintext
137 lines
6.1 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<head>
|
|
<script type="text/javascript">
|
|
$(document).ready(function (){
|
|
<c:if test="${topMenuId=='7'}">
|
|
$('.subContWrap').addClass( 'search' );
|
|
</c:if>
|
|
<c:if test="${topMenuId!='7'}">
|
|
$('.subContWrap').addClass( 'sub${topMenuId}');
|
|
</c:if>
|
|
|
|
$('.printBtn').click(function(e){
|
|
if(!confirm("프린트 하시겠습니까?")){
|
|
return false;
|
|
}
|
|
var printPopup;
|
|
printPopup= window.open("/tempPrint1.html","print_open","width=1536,height=722,top=0,left=0,noresizable,toolbar=no,status=no,scrollbars=yes,directory=n");
|
|
});
|
|
});
|
|
|
|
/* function snsShare(snsName, link, title) { */
|
|
function snsShare(snsName) {
|
|
//if (title === null) return false;
|
|
var snsPopUp;
|
|
var _width = '500';
|
|
var _height = '450';
|
|
var _left = Math.ceil(( window.screen.width - _width )/2);
|
|
var _top = Math.ceil(( window.screen.height - _height )/2);
|
|
|
|
link = location.href ;
|
|
title = $.trim ( $(document).find("title").text() );
|
|
switch(snsName){
|
|
case 'facebook':
|
|
snsPopUp = window.open("http://www.facebook.com/sharer/sharer.php?u=" + link, '', 'width='+ _width +', height='+ _height +', left=' + _left + ', top='+ _top);
|
|
break;
|
|
|
|
case 'twitter' :
|
|
snsPopUp = window.open("http://twitter.com/intent/tweet?url=" + link + "&text=" + title, '', 'width='+ _width +', height='+ _height +', left=' + _left + ', top='+ _top);
|
|
break;
|
|
|
|
case 'kakao' :
|
|
snsPopUp = window.open("https://story.kakao.com/share?url=" + link, '', 'width='+ _width +', height='+ _height +', left=' + _left + ', top='+ _top);
|
|
break;
|
|
case 'addurl' :
|
|
prompt('이 페이지의 URL입니다. Ctrl+C를 눌러 클립보드로 복사하세요', link);
|
|
break;
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<c:if test="${not empty menuCurrentResultList}">
|
|
<div class="subVisWrap" style="background-image:url('<c:url value='/cmm/fms/getImage.do'/>?atchFileId=<c:out value="${subMenuFile}"/>'); background-repeat:no-repeat;">
|
|
<!-- <div class="subVisWrap"> -->
|
|
<div class="subVisTxt">
|
|
<h2 class="subTit">
|
|
${menuCurrentResultList.get(0).menuNm}
|
|
</h2>
|
|
</div>
|
|
<div class="subTab">
|
|
<ul class="pcTab tab${fn:length(showTwoDepthMenu)}">
|
|
<c:forEach var="menuLeftResultList" items="${menuLeftResultList}" varStatus="status">
|
|
<c:if test="${menuLeftResultList.depth eq '2' }">
|
|
<li <c:if test="${menuLeftResultList.menuNo eq menuCurrentResultList[1].menuNo }">class="tabOn"</c:if>>
|
|
<c:if test="${menuLeftResultList.menuNo eq menuCurrentResultList[1].menuNo }">
|
|
<a href="${empty menuLeftResultList.url ? '#' : menuLeftResultList.url}" ${'O' eq menuLeftResultList.menuType ? 'target=_blank' : ''}>
|
|
<!-- <a href="#"> -->
|
|
</c:if>
|
|
<c:if test="${menuLeftResultList.menuNo ne menuCurrentResultList[1].menuNo }">
|
|
<a href="${empty menuLeftResultList.url ? '#' : menuLeftResultList.url}" ${'O' eq menuLeftResultList.menuType ? 'target=_blank' : ''}>
|
|
</c:if>
|
|
${menuLeftResultList.menuNm}
|
|
</a></li>
|
|
</c:if>
|
|
</c:forEach>
|
|
</ul>
|
|
<div class="mTab">
|
|
<div class="snbTit">${menuCurrentResultList[1].menuNm}<button class="snbBtn" onclick="snbTg();" title="${menuCurrentResultList.get(0).menuNm} 하위메뉴 열기"></button></div>
|
|
<div class="snb">
|
|
<ul>
|
|
<c:forEach var="menuLeftResultList" items="${menuLeftResultList}" varStatus="status">
|
|
<c:if test="${menuLeftResultList.depth eq '2' }">
|
|
<li <c:if test="${menuLeftResultList.menuNo eq menuCurrentResultList[1].menuNo }">class="active"</c:if>>
|
|
<a href="${empty menuLeftResultList.url ? '#' : menuLeftResultList.url}" ${menuLeftResultList.menuType eq'O' ? 'target="_black" title="새창열림"' : ""}>${menuLeftResultList.menuNm}<c:if test="${menuLeftResultList.menuType eq 'O' }"><img src="/publish/image/common/linkIcon.png" alt="외부링크"></c:if></a>
|
|
</li>
|
|
</c:if>
|
|
</c:forEach>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</c:if>
|
|
|
|
<div class="subUtil">
|
|
<div class="utilWrap">
|
|
<div class="subLocation">
|
|
<ul class="inline">
|
|
<li><img src="/publish/image/homeIcon.png" alt="HOME"></li>
|
|
<c:forEach var="menuCurrentResultList" items="${menuCurrentResultList}" varStatus="status">
|
|
<li>${menuCurrentResultList.menuNm}</li>
|
|
</c:forEach>
|
|
</ul>
|
|
</div>
|
|
<div class="utilBtn">
|
|
<ul class="inline"> <!-- ul 중복으로 두개 있어서 하나 삭제. -->
|
|
<li><button type="button" onclick="shareBtn(this);" title="공유하기 열기"><img src="/publish/image/shareIcon.png" alt="공유"> <p>SHARE</p></button>
|
|
<div class="shareWrap">
|
|
<ul class="flex cont3">
|
|
<li>
|
|
<button type="button" onclick="snsShare('facebook'); return false;" title="새창열림">
|
|
<img src="/publish/image/common/facebook.png" alt="페이스북 공유"><p class="fs14 fwLg">페이스북</p>
|
|
</button>
|
|
</li>
|
|
<li>
|
|
<button type="button" onclick="snsShare('kakao'); return false;" title="새창열림">
|
|
<img src="/publish/image/common/kakaostory.png" alt="카카오스토리 공유"><p class="fs14 fwLg">카카오스토리</p>
|
|
</button>
|
|
</li>
|
|
<li>
|
|
<button type="button" onclick="snsShare('addurl'); return false;">
|
|
<img src="/publish/image/common/link.png" alt="URL 복사">
|
|
<p class="fs14 fwLg">URL 복사</p>
|
|
</button>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</li>
|
|
<li><button type="button" class="printBtn" title="새창열림"><img src="/publish/image/printIcon.png" alt="프린트 열기"> <p>PRINT</p></button></li>
|
|
<!-- <button type="button" onclick="javascript:window.print();" title="새창열림"> -->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|