
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@page import="egovframework.com.cmm.service.EgovProperties"%>
<c:set value="${sessionScope.loginVO}" var="loginVO" />
<c:set value="${sessionScope.menuVO}" var="menuList" />
<c:set value="${sessionScope.menuNaviVO}" var="menuNaviList" />
<c:forEach var="item" items="${menuList }">
<c:if test="${item.menuGb eq 'U' and item.upperMenuNo eq 'ROOT'}">
<c:set value="${item.menuNo }" var="userUpperMenuNo" />
</c:if>
</c:forEach>
<div class="skip"> <a href="#skip_content" title="본문 바로가기" >본문 바로가기</a> <a href="#gnb_wrap" title="대메뉴바로가기" >대메뉴 바로가기</a> </div>
<header class="header">
<h1>
<a href="<c:url value="/" />" class="logo1">TS튜닝알리고</a>
</h1>
<!-- main gnb start -->
<div class="gnb" id="gnb_wrap">
<ul>
<c:forEach var="depth1" items="${menuList }" >
<c:if test="${depth1.upperMenuNo eq userUpperMenuNo }">
<c:set var="depth1Active" value=""/>
<c:forEach var="navi" items="${menuNaviList }" varStatus="status">
<c:if test="${depth1.menuNo eq navi.menuNo }">
<c:set var="depth1Active" value=" active"/>
</c:if>
</c:forEach>
<li class="depth1 ${depth1Active }">
<a href="<c:url value='${depth1.progrUrl }'/>" title="${depth1.menuNm }">${depth1.menuNm }</a>
<c:if test="${depth1.childCnt > 0 }">
<div class="submenu_wrap">
<div class="inner"><strong>${depth1.menuNm }</strong>
<div class="submenu">
<ul class="depth2">
<c:forEach var="depth2" items="${menuList }">
<c:if test="${depth2.upperMenuNo eq depth1.menuNo }">
<c:set var="depth2Active" value=""/>
<c:forEach var="navi" items="${menuNaviList }" varStatus="status">
<c:if test="${depth2.menuNo eq navi.menuNo }">
<c:set var="depth2Active" value="active"/>
</c:if>
</c:forEach>
<li class="${depth2Active }">
<a href="<c:url value='${depth2.progrUrl }'/>" title="${depth2.menuNm }">
<c:choose>
<c:when test="${depth2.menuNo eq 'PROGR_000000001341' }">
<!-- TS검사소 체험신청 -->
${fn:replace(depth2.menuNm, 'TS', '<span class="tsimg">TS</span>') }
</c:when>
<c:otherwise>
${depth2.menuNm }
</c:otherwise>
</c:choose>
</a>
<c:if test="${depth2.childCnt > 0 }">
<div class="depth3_wrap">
<ul class="depth3">
<c:forEach var="depth3" items="${menuList }">
<c:if test="${depth3.upperMenuNo eq depth2.menuNo }">
<c:set var="depth3Active" value=""/>
<c:forEach var="navi" items="${menuNaviList }" varStatus="status">
<c:if test="${depth3.menuNo eq navi.menuNo }">
<c:set var="depth3Active" value="active"/>
</c:if>
</c:forEach>
<li class="${depth3Active }">
<a href="<c:url value='${depth3.progrUrl }'/>" title="${depth3.menuNm }">
<c:choose>
<c:when test="${depth3.menuNo eq 'PROGR_000000001341' }">
<!-- TS검사소 체험신청 -->
${fn:replace(depth3.menuNm, 'TS', '<span class="tsimg">TS</span>') }
</c:when>
<c:otherwise>
${depth3.menuNm }
</c:otherwise>
</c:choose>
</a>
</li>
</c:if>
</c:forEach>
</ul>
</div>
</c:if>
</li>
</c:if>
</c:forEach>
</ul>
</div>
</div>
</div>
</c:if>
</li>
</c:if>
</c:forEach>
</ul>
</div>
<!-- main gnb end -->
<!-- member menu start -->
<div class="mnb">
<ul>
<c:if test="${!empty loginVO }">
<li class="login_info"><p><strong>${loginVO.name }</strong><span>님</span></p></li>
</c:if>
<c:if test="${empty loginVO }">
<li class="gnb_login">
<a href="javascript:void(0);" class="a_login" title="로그인"><em>로그인</em></a>
</li>
</c:if>
<c:if test="${not empty loginVO }">
<li class="gnb_logout">
<a href="<c:url value='/uat/uia/actionLogout.do'/>" title="로그아웃"><em>로그아웃</em></a>
</li>
<li class="gnb_mypage">
<c:choose>
<c:when test="${fn:contains(loginVO.authorCode, 'ROLE_USER') }">
<a href="<c:url value='/mbe/emplyr/mypage/saveView.do'/>" title="마이페이지"><em>마이페이지</em></a>
</c:when>
<c:otherwise>
<a href="<c:url value='/mbe/entrps/mypage/saveView.do'/>" title="마이페이지"><em>마이페이지</em></a>
</c:otherwise>
</c:choose>
</li>
<c:if test="${fn:contains(loginVO.authorCode, 'ROLE_ADMIN') }">
<li class="gnb_admin">
<a href="<c:url value='/admin/index.do'/>" title="관리자"><em>관리자</em></a>
</li>
</c:if>
</c:if>
<li class="gnb_cart">
<a href="<c:url value="/mrk/cart/list.do"/>" title="장바구니"><em>장바구니</em></a>
</li>
<li class="gnb_search">
<a class="btn_is" href="javascript:void(0); fnc_trendsKeyword();" title="통합검색"><em>통합검색</em></a>
<!-- Integrated Search start -->
<div class="int_search">
<div class="is_box">
<div class="inner">
<strong>통합검색</strong>
<div class="is_search">
<input type="text" id="searchTotalTerm" name="searchTotalTerm" value="" class="inputText" placeholder="검색어를 입력하세요" title="통합검색 입력창입니다" />
<button type="button" class="btn_search" id="btn_cmmSearchTotal" title="검색버튼"><span class="blind">검색버튼</span></button>
<!-- keyword-->
<div class="keyword none">
<ul id="cmmTotalSearchAuto">
</ul>
<div class="keyword_footer">
<button class="btn_close" title="연관검색 닫기버튼">닫기</button>
</div>
</div>
<!-- keyword -->
</div>
<div class="recommend"> <strong>인기검색어</strong>
<ul class="trendsKeyword">
</ul>
</div>
</div>
<button type="button" class="close_is btn_close" title="통합검색 닫기"><em class="blind">닫기버튼</em></button>
</div>
<div class="isbg"></div>
</div>
<!-- Integrated Search end -->
</li>
<li class="gnb_sitemap">
<a href="javascript:void(0);" title="사이트맵"><em>사이트맵</em></a>
</li>
</ul>
</div>
<!-- member menu end -->
</header>
<!-- sitemap start -->
<div class="sitemap_wrap" id="sitemap_wrap">
<c:if test="${!empty loginVO }">
<p class="login_info"><strong>${loginVO.name }</strong><span>님</span></p>
</c:if>
<div class="sitemap_top">
<ul class="forM">
<c:if test="${empty loginVO }">
<li class="gnb_login">
<a href="javascript:void(0);" class="a_login" title="로그인"><em>로그인</em></a>
</li>
</c:if>
<c:if test="${not empty loginVO }">
<li class="gnb_logout">
<a href="<c:url value='/uat/uia/actionLogout.do'/>" title="로그아웃"><em>로그아웃</em></a>
</li>
<li class="gnb_mypage">
<c:choose>
<c:when test="${fn:contains(loginVO.authorCode, 'ROLE_USER') }">
<a href="<c:url value='/mbe/emplyr/mypage/saveView.do'/>" title="마이페이지"><em>마이페이지</em></a>
</c:when>
<c:otherwise>
<a href="<c:url value='/mbe/entrps/mypage/saveView.do'/>" title="마이페이지"><em>마이페이지</em></a>
</c:otherwise>
</c:choose>
</li>
<c:if test="${fn:contains(loginVO.authorCode, 'ROLE_ADMIN') }">
<li class="gnb_admin">
<a href="<c:url value='/admin/index.do'/>" title="관리자"><em>관리자</em></a>
</li>
</c:if>
</c:if>
<li class="gnb_cart">
<a href="<c:url value="/mrk/cart/list.do"/>" title="장바구니"><em>장바구니</em></a>
</li>
</ul>
<button type="button" class="close_sitemap btn_close" title="사이트맵 닫기"><em class="blind">사이트맵 닫기버튼</em>
</button>
</div>
<div class="sitemap_left">
<ul>
<c:forEach var="depth1" items="${menuList }">
<c:if test="${depth1.upperMenuNo eq userUpperMenuNo }">
<li class="depth1" >
<c:choose>
<c:when test="${depth1.childCnt > 0 }">
<strong class="sitemap_button">${depth1.menuNm }</strong>
<div class="submenu">
<ul class="depth2">
<c:forEach var="depth2" items="${menuList }">
<c:if test="${depth2.upperMenuNo eq depth1.menuNo }">
<li>
<a href="<c:url value='${depth2.progrUrl }'/>" title="${depth2.menuNm }">
<c:choose>
<c:when test="${depth2.menuNo eq 'PROGR_000000001341' }">
<!-- TS검사소 체험신청 -->
${fn:replace(depth2.menuNm, 'TS', '<span class="tsimg">TS</span>') }
</c:when>
<c:otherwise>
${depth2.menuNm }
</c:otherwise>
</c:choose>
</a>
<c:if test="${depth2.childCnt > 0 }">
<ul class="depth3">
<c:forEach var="depth3" items="${menuList }">
<c:if test="${depth3.upperMenuNo eq depth2.menuNo }">
<li>
<a href="<c:url value='${depth3.progrUrl }'/>" title="${depth3.menuNm }">
<c:choose>
<c:when test="${depth3.menuNo eq 'PROGR_000000001341' }">
<!-- TS검사소 체험신청 -->
${fn:replace(depth3.menuNm, 'TS', '<span class="tsimg">TS</span>') }
</c:when>
<c:otherwise>
${depth3.menuNm }
</c:otherwise>
</c:choose>
</a>
</li>
</c:if>
</c:forEach>
</ul>
</c:if>
</li>
</c:if>
</c:forEach>
</ul>
</div>
</c:when>
<c:otherwise>
<a class="sitemap_button no_child" href="<c:url value="${depth1.progrUrl}"/>">${depth1.menuNm }</a>
</c:otherwise>
</c:choose>
</li>
</c:if>
</c:forEach>
</ul>
</div>
<div class="sitemap_right">
<div class="cs_wrap">
<p>TS튜닝알리고<br> 고객센터</p>
<strong>1577-0990</strong>
<em>평일 09:00 ~ 18:00<br/> 통화료는 사용자 부담</em>
</div>
</div>
<div class="cloud"><span class="blind">배경이미지(구름이미지)</span></div>
</div>
<!-- sitemap end -->
<script type="text/javascript">
$(document).ready(function() {
$('.a_login').on('click', function() {
location.href = "<c:url value='/uat/uia/egovLoginUsr.do'/>";
});
// 모바일 체크
function Mobile() {
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
}
// 로그인 시 active
if ('${loginVO }' != null && '${loginVO }' != '') {
$('.gnb_mypage').addClass('active');
} else {
$('.gnb_mypage').removeClass('active');
}
/* 통합 검색 버튼 이벤트 */
$('#btn_cmmSearchTotal').on('click', function() {
var searchTotalTerm = $('#searchTotalTerm').val();
location.href = '<c:url value="/cmm/search/list.do"/>?searchTerm=' + searchTotalTerm;
});
/* 통합검색어, 연관검색어 이벤트 */
$(document).on('keyup', '#searchTotalTerm', function() {
const searchTotalTerm = $(this).val();
if (searchTotalTerm.length < 2) {
$('#cmmTotalSearchAuto').empty();
$('#cmmTotalSearchAuto').closest('div').addClass('none');
return;
}
switch (event.keyCode) {
case 13: // 엔터
location.href = '<c:url value="/cmm/search/list.do"/>?searchTerm=' + searchTotalTerm;
break;
default:
if (searchTotalTerm == '') {
$('.is_search .keyword').addClass("none");
} else {
const params = {
'searchTerm': searchTotalTerm
};
$.ajax({
type: "GET",
url: "<c:url value='/cmm/search/api/autoComplete.do'/>",
data: params,
dataType: "json",
timeout: 3000,
async: false,
success: function(data) {
if (data.returnCode == 1) {
const result = data.resultSet.result[0].resultDocuments;
$('#cmmTotalSearchAuto').empty();
$.each(result, function(i, item) {
var keyword = item.KEYWORD;
var $dom = $('<li><a href="<c:url value='/cmm/search/list.do'/>?searchTerm=' + keyword + '" title="' + keyword + '"><em>' + keyword + '</em></a></li>');
$('#cmmTotalSearchAuto').append($dom);
});
$('.is_search .keyword').removeClass("none");
} else {
alert(data.error);
}
},
error: function(xhr, ajaxSettings, thrownError) {
alert("검색을 실패하였습니다.");
},
});
}
break;
}
});
//포커스시
$(document).on('focusin', '#searchTotalTerm', function() {
if ($(this).val() != '') {
$('.is_search .keyword').removeClass("none");
}
});
// 연관검색어 닫기 버튼
$(".keyword_footer .btn_close").click(function(){
$('.is_search .keyword').addClass("none");
});
})
/* 인기검색어 */
function fnc_trendsKeyword() {
$('.trendsKeyword').empty();
$.ajax({
type: "GET",
url: "<c:url value='/cmm/search/api/trendsKeyword.do'/>",
dataType: "json",
timeout: 3000,
async: false,
success: function(data) {
if (data.returnCode == 1) {
const result = data.resultSet.result[0].resultDocuments;
$('#trendsKeyword').empty();
$.each(result, function(i, item) {
var dom = '<li><a href="javascript:void(0);" title="' + item.KEYWORD + '" onclick="location.href=\'<c:url value='/cmm/search/list.do'/>?searchTerm=' + item.KEYWORD + '\'">#' + item.KEYWORD + '</a></li>';
$('.trendsKeyword').append(dom);
});
} else {
alert(data.error);
}
},
error: function(xhr, ajaxSettings, thrownError) {
alert("검색을 실패하였습니다.");
},
});
}
</script>