<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<!-- HOME -->
<%
String councilCd = (String)session.getAttribute("councilCd");
String councilNm = (String)session.getAttribute("councilCd");
%>
<sec:authorize access="isAuthenticated()">
   <dir id="title"><a href="javascript:void(0)" onclick="javascript:location.href='<%=session.getAttribute("councilHomeUrl") %>';">온라인자료대출관리 (<%=session.getAttribute("councilHomeUrl") %>)</a></dir>
</sec:authorize>
<sec:authorize access="not isAuthenticated()">
   <dir id="title"><a href="javascript:void(0)" onclick="javascript:location.href='${pageContext.request.contextPath}/';">온라인자료대출관리(${pageContext.request.contextPath}/)</a></dir>
</sec:authorize>

<ul class="gnb-right">
     <li><a href="javascript:void(0)" onclick="javascript:location.href='${pageContext.request.contextPath}/inform/selectPrivacyInfo.do';">개인정보처리방침</a></li>
     <li><a href="javascript:void(0)" onclick="javascript:location.href='${pageContext.request.contextPath}/inform/selectTermsInfo.do';">이용약관</a></li>
     
     <sec:authorize access="not isAuthenticated()">
        <li><a href="javascript:void(0)" onclick="javascript:location.href='${pageContext.request.contextPath}/login/loginCouncil.do';">로그인</a></li>
     </sec:authorize>
     
     <sec:authorize access="isAuthenticated()">
     <li><a href="javascript:void(0)" onclick="javascript:location.href='${pageContext.request.contextPath}/userInfo/getMyInfo.do';">내 정보</a></li>
        <li><a href="javascript:void(0)" onclick="javascript:location.href='${pageContext.request.contextPath}/logout';">로그아웃</a></li>
     </sec:authorize>
     <sec:authorize access="not isAuthenticated()">
        <li><a href="javascript:void(0)" onclick="javascript:location.href='${pageContext.request.contextPath}/user/member/searchIdForm.do';">ID/PW찾기</a></li>
        <li><a href="javascript:void(0)" onclick="javascript:location.href='${pageContext.request.contextPath}/login/loginCouncil.do?callType=member';">회원가입</a></li>
     </sec:authorize>
     <li>
        <sec:authorize access="isAuthenticated()">
            <sec:authentication property="principal.name" var="userName" />
            <sec:authentication property="principal.loginUserId" var="userId" />
              ${userName}님 (${userId})
        </sec:authorize>
        <sec:authorize access="not isAuthenticated()">
                        손님 __${councilCd }---
        </sec:authorize>
     </li>
</ul>
<script type="text/javascript">

window.onload = function() {
	
};

</script>