index.jsp taglib.jsp 수정

main
이범준 1 year ago
parent 3fa82556e8
commit fffc163fb3

@ -1,257 +0,0 @@
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="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="sec" uri="http://www.springframework.org/security/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<aside class="layout-menu-fixed aside-left">
<div id="sneatMenu" style="height: 56rem;">
<div class="app-brand border py-1 px-3">
<a href="#" class="app-brand-link gap-2 logo" onclick="$('#ifrTabs .nav-link').eq(0).trigger('click');">
<img src="<c:url value='/'/>resources/image/fims/framework/login/mainLogo_01.png" class="app-brand-logo w-px-30 h-px-30" alt="logo" />
<span id="logoName" class="app-brand-text fs-big fw-bold">과태료 통합 관리 시스템</span>
</a>
</div>
<div class="app-brand-link gap-2 personalArea">
<i class="app-brand-logo bx bx-user ps-3"></i>
<div class="app-brand-text d-block gap-2">
<div class="txtArea">
<strong>
<c:out value="${sessionScope.XitLoginSession.name }" />[<c:out value="${sessionScope.XitLoginSession.id }" />]
</strong>
<em><c:out value="${sessionScope.XitLoginSession.orgnztNm }" /></em>
</div>
<div class="btnArea mt-2">
<a href="${ctx }/login/actionLogout.do" id="logout_btn"style="background: #eb1909;color: #fff;">로그아웃</a>
</div>
</div>
</div>
<ul id="sneatMenuUl">
</ul>
</div>
</aside>
<div class="content-wrapper">
<header>
<button type="button" class="hamberger active">
<span class="hamburger-box">
<span class="hamburger-inner" style="color: transparent">메뉴</span>
</span>
</button>
<!-- 공지사항 롤링 -->
<div id="rolling_noti" class="d-flex" style="width: 100%;min-width: 200px;max-width: 400px;">
<ul class="list" style="width: 100%;">
</ul>
</div>
<div class="ms-2 me-2" style="min-width: max-content;">
<select id="schOpt" class="form-select">
<option value="vhrno">차량번호</option>
<option value="rtpyrNm">납부자명</option>
<option value="rtpyrNo">납부자번호</option>
<option value="petitionerNm">신고인명</option>
</select>
<input type="text" id="schWord" class="form-control" />
<button type="button" id="fastSearch" class="btn btn-outline-dark bg-orange" title="통합조회">
<i class="bx bx-search"></i>통합조회
</button>
</div>
<div class="ms-auto me-2" style="min-width: max-content;">
<div class="form-check-inline custom-option custom-option-basic" style="background-color: #d9dee3">
<label for="securityMode" class="form-check-label custom-option-content">
<input type="checkbox" id="securityMode" name="securityMode" class="form-check-input" value="Y" />
보안모드
</label>
</div>
<button type="button" class="btn btn-outline-dark">
민원관리
</button>
<button type="button" class="btn btn-outline-dark">
일정관리
</button>
<button type="button" class="btn btn-outline-dark">
공지사항
</button>
<button type="button" class="btn btn-primary">
사용자 메뉴얼
</button>
<button type="button" class="btn btn-secondary" onclick="fn_goMyView('${sessionScope.XitLoginSession.uniqId}','${sessionScope.XitLoginSession.userSe}');">
환경설정
</button>
</div>
</header>
<main class="flex-grow-1 container-p-y">
<!-- 업무 화면 iframe tab add -->
<div id="ifrTabs" class="nav-align-top">
<ul class="nav nav-tabs nav-tabs-ifr"></ul>
</div>
<div id="ifrTabContents" class="tab-content"></div>
</main>
<aside class="aside-right">
<div id="fastMenu" class="fastmenu-close">
<div class="text-center mt-2">
<button type="button" id="favorites" class="btn btn-xs btn-square btn-outline-dark h-px-30 text-orange" title="즐겨찾기">
<i class="bx bx-star"></i>
</button>
</div>
</div>
</aside>
<footer class="content-footer footer bg-light">
<div class="container-fluid d-flex flex-md-row flex-column justify-content-between align-items-md-center gap-1 py-1">
<div class="footer-text fw-bolder">
<a class="footer-text fw-bolder">COPYRIGHT 2021 BY COMPANY NAME CO.LTD. ALL RIGHTS RESERVED.</a>
</div>
<div>
<a href="javascript:void(0)" class="footer-link me-4" target="_blank">국민신문고</a>
<a href="javascript:void(0)" class="footer-link me-4">외부1</a>
<a href="javascript:void(0)" class="footer-link me-4">외부2</a>
<a href="javascript:void(0)" class="footer-link">외부3</a>
</div>
</div>
</footer>
</div>
<script>
/*--------------------- 보안모드 체크박스 제어 ---------------------*/
$( "#securityMode" ).on( "click", function() {
if($("#securityMode").is(":checked")){
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
}
});
/*--------------------- 햄버거 버튼 제어 ---------------------*/
$( "body" ).on( "click", "button.hamberger", function() {
var e=$(this);
var eHasClass=e.hasClass('active');
if(eHasClass==true){
$( "header, button.hamberger").removeClass('active');
document.querySelector('#sneatMenu').classList.add("menu-collapsed");
}else{
$( "header, button.hamberger").addClass('active');
document.querySelector('#sneatMenu').classList.remove("menu-collapsed");
}
});
/*--------------------- 즐겨찾기 버튼 제어 ---------------------*/
$( "#favorites" ).on( "click", function() {
var e= $('#fastMenu');
var eHasClass=e.hasClass('fastmenu-open');
if(eHasClass==true){
document.querySelector('#fastMenu').classList.replace('fastmenu-open', 'fastmenu-close');
}else{
document.querySelector('#fastMenu').classList.replace('fastmenu-close', 'fastmenu-open');
}
});
/*--------------------- 통합조회버튼,키워드 제어 ---------------------*/
$("#schWord").on("keypress" , function(){
if(event.keyCode == 13){
fn_loadFastSearch();
}
});
$( "#fastSearch" ).on( "click", function() {
fn_loadFastSearch();
});
function fn_loadFastSearch(){
if($("iframe[id='80000000']").length < 1){
openMenu('80000000', '통합조회',
"&schOpt="+ $("[id='schOpt']").val() + "&schWord=" + $("[id='schWord']").val()
);
return;
}
$("button[data-bs-target='#tab-80000000']").trigger("click");
if($("[id='schWord']").val() == ""){
return;
}
let searchOpt = $("[id='schOpt']").val();
let searchWord = $("[id='schWord']").val();
let iframeObj = document.getElementById('80000000');
iframeObj.contentWindow.document.getElementsByName(searchOpt)[0].value = searchWord;
iframeObj.contentWindow.fn_fastSearch();
}
</script>
<script defer type="text/javascript">
/**************************************************************************
* initialize
**************************************************************************/
$(document).ready(() => {
//사용자별 메뉴 목록 조회
cmmAjax({
showSuccessMsg: false
,url: "<c:url value='/framework/biz/cmm/cache/getMenuListAll.do'/>"
,data: {uniqId: '${sessionScope.XitLoginSession.uniqId}'}
,type: "get"
,success: (data) => {
let mr = new FimsMenuSupport('');
mr.menuDraw(data.allMenuList);
}
});
//메인 탭 오픈
openMenu('main', '메인');
//공지사항 롤링 Event 처리
$('#rolling_noti').vTicker({
speed: 400, // 스크롤 속도(default: 700)
pause: 4000, // 스크롤 사이의 대기시간(default: 4000)
animation: 'fade', // 스크롤 애니메이션
mousePause: true, // 마우스 over 일때 멈출 설정
showItems: 1, // 한번에 보일 리스트수(default: 2)
height: 19, // 스크롤 컨테이너 높이(default: 0)
direction: 'up' // 아이템이 움직이는 방향, up/down (default: up)
});
//공지 목록 조회
cmmAjax({
showSuccessMsg: false
,url: "<c:url value='/framework/biz/cmm/cache/getNoticeList.do'/>"
,data: {uniqId: '${sessionScope.XitLoginSession.uniqId}'}
,type: "get"
,success: (data) => {
if(data.resultList1 != null && data.resultList1.length > 0){
let noticeList = data.resultList1;
for(let i=0; i < noticeList.length;i++){
if(noticeList[i].useYn == "Y"){
let content = "<li class='item d-flex justify-content-between'>";
content += "<a href='/framework/biz/mng/bbs/mngBoardBasicMgtForm.do?bbsId=BBSMSTR_00001'>";
content += "<i class='bx bxs-megaphone'></i>";
content += noticeList[i].nttSj;
content += "</a>";
content += "<span>"+noticeList[i].regDt+"</span>";
content += "</li>";
$("#rolling_noti ul").append(content);
}
}
}
}
});
});
</script>

@ -1,4 +0,0 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="code" uri="/WEB-INF/tlds/code.tld"%>
<%@ taglib prefix="privacy" uri="/WEB-INF/tlds/privacy.tld"%>

@ -0,0 +1,4 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"
%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

@ -1,4 +1,7 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"
%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="code" uri="/WEB-INF/tlds/code.tld"%>
<%@ taglib prefix="privacy" uri="/WEB-INF/tlds/privacy.tld"%>

@ -0,0 +1,30 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<jsp:include page="/WEB-INF/jsp/include/head.jsp" />
<body>
<!-- Layout wrapper -->
<div class="layout-wrapper layout-content-navbar">
<div class="layout-container">
<jsp:include page="/WEB-INF/jsp/include/userMenus.jsp" />
<!-- Layout container -->
<div class="layout-page">
<jsp:include page="/WEB-INF/jsp/include/top.jsp" />
</div>
<!-- / Layout page -->
</div>
</div>
<!-- / Layout wrapper -->
<jsp:include page="/WEB-INF/jsp/include/tail.jsp" />
<script >
${functions}
${userMenus}
$(function(){
${onload}
});
</script>
</body>
</html>

@ -1,30 +1,256 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<jsp:include page="/WEB-INF/jsp/include/head.jsp" />
<body>
<!-- Layout wrapper -->
<div class="layout-wrapper layout-content-navbar">
<div class="layout-container">
<jsp:include page="/WEB-INF/jsp/include/userMenus.jsp" />
<!-- Layout container -->
<div class="layout-page">
<jsp:include page="/WEB-INF/jsp/include/top.jsp" />
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<aside class="layout-menu-fixed aside-left">
<div id="sneatMenu" style="height: 56rem;">
<div class="app-brand border py-1 px-3">
<a href="#" class="app-brand-link gap-2 logo" onclick="$('#ifrTabs .nav-link').eq(0).trigger('click');">
<img src="<c:url value='/'/>resources/image/fims/framework/login/mainLogo_01.png" class="app-brand-logo w-px-30 h-px-30" alt="logo" />
<span id="logoName" class="app-brand-text fs-big fw-bold">과태료 통합 관리 시스템</span>
</a>
</div>
<div class="app-brand-link gap-2 personalArea">
<i class="app-brand-logo bx bx-user ps-3"></i>
<div class="app-brand-text d-block gap-2">
<div class="txtArea">
<strong>
<c:out value="${sessionScope.XitLoginSession.name }" />[<c:out value="${sessionScope.XitLoginSession.id }" />]
</strong>
<em><c:out value="${sessionScope.XitLoginSession.orgnztNm }" /></em>
</div>
<div class="btnArea mt-2">
<a href="${ctx }/login/actionLogout.do" id="logout_btn"style="background: #eb1909;color: #fff;">로그아웃</a>
</div>
</div>
</div>
<ul id="sneatMenuUl">
</ul>
</div>
</aside>
<div class="content-wrapper">
<header>
<button type="button" class="hamberger active">
<span class="hamburger-box">
<span class="hamburger-inner" style="color: transparent">메뉴</span>
</span>
</button>
<!-- 공지사항 롤링 -->
<div id="rolling_noti" class="d-flex" style="width: 100%;min-width: 200px;max-width: 400px;">
<ul class="list" style="width: 100%;">
</ul>
</div>
<!-- / Layout page -->
<div class="ms-2 me-2" style="min-width: max-content;">
<select id="schOpt" class="form-select">
<option value="vhrno">차량번호</option>
<option value="rtpyrNm">납부자명</option>
<option value="rtpyrNo">납부자번호</option>
<option value="petitionerNm">신고인명</option>
</select>
<input type="text" id="schWord" class="form-control" />
<button type="button" id="fastSearch" class="btn btn-outline-dark bg-orange" title="통합조회">
<i class="bx bx-search"></i>통합조회
</button>
</div>
<div class="ms-auto me-2" style="min-width: max-content;">
<div class="form-check-inline custom-option custom-option-basic" style="background-color: #d9dee3">
<label for="securityMode" class="form-check-label custom-option-content">
<input type="checkbox" id="securityMode" name="securityMode" class="form-check-input" value="Y" />
보안모드
</label>
</div>
<button type="button" class="btn btn-outline-dark">
민원관리
</button>
<button type="button" class="btn btn-outline-dark">
일정관리
</button>
<button type="button" class="btn btn-outline-dark">
공지사항
</button>
<button type="button" class="btn btn-primary">
사용자 메뉴얼
</button>
<button type="button" class="btn btn-secondary" onclick="fn_goMyView('${sessionScope.XitLoginSession.uniqId}','${sessionScope.XitLoginSession.userSe}');">
환경설정
</button>
</div>
<!-- / Layout wrapper -->
</header>
<jsp:include page="/WEB-INF/jsp/include/tail.jsp" />
<script >
${functions}
${userMenus}
<main class="flex-grow-1 container-p-y">
<!-- 업무 화면 iframe tab add -->
<div id="ifrTabs" class="nav-align-top">
<ul class="nav nav-tabs nav-tabs-ifr"></ul>
</div>
<div id="ifrTabContents" class="tab-content"></div>
</main>
<aside class="aside-right">
<div id="fastMenu" class="fastmenu-close">
<div class="text-center mt-2">
<button type="button" id="favorites" class="btn btn-xs btn-square btn-outline-dark h-px-30 text-orange" title="즐겨찾기">
<i class="bx bx-star"></i>
</button>
</div>
</div>
</aside>
<footer class="content-footer footer bg-light">
<div class="container-fluid d-flex flex-md-row flex-column justify-content-between align-items-md-center gap-1 py-1">
<div class="footer-text fw-bolder">
<a class="footer-text fw-bolder">COPYRIGHT 2021 BY COMPANY NAME CO.LTD. ALL RIGHTS RESERVED.</a>
</div>
<div>
<a href="javascript:void(0)" class="footer-link me-4" target="_blank">국민신문고</a>
<a href="javascript:void(0)" class="footer-link me-4">외부1</a>
<a href="javascript:void(0)" class="footer-link me-4">외부2</a>
<a href="javascript:void(0)" class="footer-link">외부3</a>
</div>
</div>
</footer>
</div>
$(function(){
${onload}
});
<script>
/*--------------------- 보안모드 체크박스 제어 ---------------------*/
$( "#securityMode" ).on( "click", function() {
if($("#securityMode").is(":checked")){
fn_securityModeToggle(true);
} else {
fn_securityModeToggle(false);
}
});
/*--------------------- 햄버거 버튼 제어 ---------------------*/
$( "body" ).on( "click", "button.hamberger", function() {
var e=$(this);
var eHasClass=e.hasClass('active');
if(eHasClass==true){
$( "header, button.hamberger").removeClass('active');
document.querySelector('#sneatMenu').classList.add("menu-collapsed");
}else{
$( "header, button.hamberger").addClass('active');
document.querySelector('#sneatMenu').classList.remove("menu-collapsed");
}
});
/*--------------------- 즐겨찾기 버튼 제어 ---------------------*/
$( "#favorites" ).on( "click", function() {
var e= $('#fastMenu');
var eHasClass=e.hasClass('fastmenu-open');
if(eHasClass==true){
document.querySelector('#fastMenu').classList.replace('fastmenu-open', 'fastmenu-close');
}else{
document.querySelector('#fastMenu').classList.replace('fastmenu-close', 'fastmenu-open');
}
});
/*--------------------- 통합조회버튼,키워드 제어 ---------------------*/
$("#schWord").on("keypress" , function(){
if(event.keyCode == 13){
fn_loadFastSearch();
}
});
$( "#fastSearch" ).on( "click", function() {
fn_loadFastSearch();
});
function fn_loadFastSearch(){
if($("iframe[id='80000000']").length < 1){
openMenu('80000000', '통합조회',
"&schOpt="+ $("[id='schOpt']").val() + "&schWord=" + $("[id='schWord']").val()
);
return;
}
$("button[data-bs-target='#tab-80000000']").trigger("click");
if($("[id='schWord']").val() == ""){
return;
}
let searchOpt = $("[id='schOpt']").val();
let searchWord = $("[id='schWord']").val();
let iframeObj = document.getElementById('80000000');
iframeObj.contentWindow.document.getElementsByName(searchOpt)[0].value = searchWord;
iframeObj.contentWindow.fn_fastSearch();
}
</script>
</body>
<script defer type="text/javascript">
/**************************************************************************
* initialize
**************************************************************************/
$(document).ready(() => {
//사용자별 메뉴 목록 조회
cmmAjax({
showSuccessMsg: false
,url: "<c:url value='/framework/biz/cmm/cache/getMenuListAll.do'/>"
,data: {uniqId: '${sessionScope.XitLoginSession.uniqId}'}
,type: "get"
,success: (data) => {
let mr = new FimsMenuSupport('');
mr.menuDraw(data.allMenuList);
}
});
//메인 탭 오픈
openMenu('main', '메인');
</html>
//공지사항 롤링 Event 처리
$('#rolling_noti').vTicker({
speed: 400, // 스크롤 속도(default: 700)
pause: 4000, // 스크롤 사이의 대기시간(default: 4000)
animation: 'fade', // 스크롤 애니메이션
mousePause: true, // 마우스 over 일때 멈출 설정
showItems: 1, // 한번에 보일 리스트수(default: 2)
height: 19, // 스크롤 컨테이너 높이(default: 0)
direction: 'up' // 아이템이 움직이는 방향, up/down (default: up)
});
//공지 목록 조회
cmmAjax({
showSuccessMsg: false
,url: "<c:url value='/framework/biz/cmm/cache/getNoticeList.do'/>"
,data: {uniqId: '${sessionScope.XitLoginSession.uniqId}'}
,type: "get"
,success: (data) => {
if(data.resultList1 != null && data.resultList1.length > 0){
let noticeList = data.resultList1;
for(let i=0; i < noticeList.length;i++){
if(noticeList[i].useYn == "Y"){
let content = "<li class='item d-flex justify-content-between'>";
content += "<a href='/framework/biz/mng/bbs/mngBoardBasicMgtForm.do?bbsId=BBSMSTR_00001'>";
content += "<i class='bx bxs-megaphone'></i>";
content += noticeList[i].nttSj;
content += "</a>";
content += "<span>"+noticeList[i].regDt+"</span>";
content += "</li>";
$("#rolling_noti ul").append(content);
}
}
}
}
});
});
</script>
Loading…
Cancel
Save