admin-header.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <header>
  2. <div class="header-menu">
  3. <div class="logo" th:onclick="movePath('/phits/main')">
  4. <div>
  5. <img src="/images/logo/logo.png" alt="포항시 로고">
  6. </div>
  7. <p>포항시교통정보센터</p>
  8. </div>
  9. <div class="top-menu">
  10. <div class="top-menu-cont" th:classappend="${selected == 'notice'} ? ' on' : ''">
  11. <a th:href="@{/phits/notice-list}">공지사항</a>
  12. </div>
  13. <div class="top-menu-cont" th:classappend="${selected == 'statistics'} ? ' on' : ''">
  14. <a th:href="@{/phits/conn-statistics}">접속자통계</a>
  15. </div>
  16. <div class="top-menu-cont" th:classappend="${selected == 'popup'} ? ' on' : ''">
  17. <a th:href="@{/phits/popup-list}">팝업공지</a>
  18. </div>
  19. <div class="top-menu-cont" th:classappend="${selected == 'cctv'} ? ' on' : ''">
  20. <a th:href="@{/phits/cctv-list}">CCTV 관리</a>
  21. </div>
  22. <span id="logout" onclick="logout()" title="로그아웃">
  23. <img src="/images/icon/logout.png" alt="로그아웃">
  24. </span>
  25. </div>
  26. </div>
  27. </header>
  28. <script th:inline="javascript">
  29. function closeModal(target) {
  30. $(target).css('display', 'none');
  31. }
  32. function movePath(uri) {
  33. window.location.href = uri;
  34. }
  35. function openModal(target) {
  36. $(target).css('display', 'flex');
  37. $(target + " .content").scrollTop(0);
  38. }
  39. function logout() {
  40. window.location.href = '/phits/logout';
  41. }
  42. </script>