no message

main
이범준 1 year ago
parent 02531632e9
commit f76cf70bba

@ -1,85 +1,62 @@
<%@ 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" isELIgnored="false" session="false"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>
<jsp:include page="/WEB-INF/jsp/include/head.jsp" /> <!-- inner page css -->
<link rel="stylesheet" href="<c:url value="/resources/3rd-party/sneat/libs/jstree/jstree.css"/>" /--%> <link rel="stylesheet" href="<c:url value="/resources/3rd-party/sneat/libs/jstree/jstree.css"/>" />
<body> <!-- inner page html -->
<!-- Layout wrapper --> <div class="content-wrapper">
<div class="layout-wrapper layout-content-navbar"> <!-- Content -->
<div class="layout-container">
<jsp:include page="/WEB-INF/jsp/include/userMenus.jsp" /> <div class="container-xxl flex-grow-1 container-p-y">
<!-- Layout container --> <%--h4 id="pageTitle" class="fw-bold py-3 mb-4">페이지 제목</h4--%>
<!-- Layout page --> <c:set var="prefixName" scope="request">메뉴</c:set>
<div class="layout-page"> <!-- Page Body -->
<div class="card">
<jsp:include page="/WEB-INF/jsp/include/top.jsp" /> <div class="card-datatable text-nowrap">
<div id="DataTables_Table_0_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer">
<!-- Content wrapper -->
<div class="content-wrapper"> <div class="d-flex flex-row justify-content-evenly">
<!-- Content -->
<div style="width:49%;">
<div class="container-xxl flex-grow-1 container-p-y"> <h5 class="mt-3">레이아웃</h5>
<%--h4 id="pageTitle" class="fw-bold py-3 mb-4">페이지 제목</h4--%> <div id="menu-tree" class="main-left d-flex flex-column flex-grow-1">
<c:set var="prefixName" scope="request">메뉴</c:set> <div class="d-flex justify-content-between" style="padding-top:.5em; padding-bottom:.5em; border-top:1px solid #dfdfdf; border-bottom:1px solid #dfdfdf;">
<!-- Page Body --> <span>
<div class="card"> <button id="menuToggler" onclick="toggleMenus();" class="btn btn-primary"></button>
<div class="card-datatable text-nowrap"> </span>
<div id="DataTables_Table_0_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="d-flex flex-row justify-content-evenly">
<div style="width:49%;">
<h5 class="mt-3">레이아웃</h5>
<div id="menu-tree" class="main-left d-flex flex-column flex-grow-1">
<div class="d-flex justify-content-between" style="padding-top:.5em; padding-bottom:.5em; border-top:1px solid #dfdfdf; border-bottom:1px solid #dfdfdf;">
<span>
<button id="menuToggler" onclick="toggleMenus();" class="btn btn-primary"></button>
</span>
</div>
<div id="menuTree" style="padding-top:1em; min-height:26em; overflow:auto;">
</div>
</div>
</div> </div>
<div id="menuTree" style="padding-top:1em; min-height:26em; overflow:auto;">
<div style="width:49%;">
<h5 class="mt-3">등록 정보</h5>
<div class="d-flex flex-row justify-content-end p-3">
<div>
<button id="btnRemoveMenus" onclick="removeMenus();" class="btn btn-primary">- 제거</button>
</div>
</div> </div>
<jsp:include page="menu-info.jsp" /> </div>
</div>
<div style="width:49%;">
<h5 class="mt-3">등록 정보</h5>
<div class="d-flex flex-row justify-content-end p-3">
<div>
<button id="btnRemoveMenus" onclick="removeMenus();" class="btn btn-primary">- 제거</button>
</div> </div>
</div> </div>
<jsp:include page="menu-info.jsp" />
</div> </div>
</div> </div>
</div> </div>
<!-- Page Body --> </div>
</div>
<!-- Page Body -->
<hr class="my-5" /> <hr class="my-5" />
</div> </div>
<!-- / Content --> <!-- / Content -->
<jsp:include page="/WEB-INF/jsp/include/bottom.jsp" /> <jsp:include page="/WEB-INF/jsp/include/bottom.jsp" />
<div class="content-backdrop fade"></div> <div class="content-backdrop fade"></div>
</div> </div>
<!-- Content wrapper --> <!-- inner page js -->
</div>
<!-- / Layout page -->
</div>
</div>
<!-- / Layout wrapper -->
<jsp:include page="/WEB-INF/jsp/include/tail.jsp" />
<!-- script after tail1 -->
<script src="<c:url value="/resources/3rd-party/sneat/libs/jstree/jstree.js"/>"></script> <script src="<c:url value="/resources/3rd-party/sneat/libs/jstree/jstree.js"/>"></script>
<script src="<c:url value="/resources/3rd-party/jstree/jstree-support.js"/>"></script> <script src="<c:url value="/resources/3rd-party/jstree/jstree-support.js"/>"></script>
<script src="<c:url value="/resources/js/base/menu.js"/>?${ver}"></script> <script src="<c:url value="/resources/js/base/menu.js"/>?${ver}"></script>
<!-- script after tail1 --> <script>
<script >
${functions}
${userMenus}
//script after tail2
var menuBranches = treeSupport({ var menuBranches = treeSupport({
selector:"#menuTree", selector:"#menuTree",
trace:wctx.trace, trace:wctx.trace,
@ -177,9 +154,4 @@ $(function(){
menuControl.setData(${menus}); menuControl.setData(${menus});
menuBranches.open(); menuBranches.open();
}); });
//script after tail2 </script>
</script>
<!-- script after tail -->
</body>
</html>

@ -105,13 +105,7 @@ function openMenu(obj, params) {
url:menuUrl, url:menuUrl,
data:{}, data:{},
success:resp => { success:resp => {
$("#div"+dataKey).html(resp);
var cw = resp.split("<!-- Content wrapper -->")[1];
var pb = cw.split("<!-- Page Body -->")[1];
var scriptAterTail1 = resp.split("<!-- script after tail1 -->")[1];
var scriptAterTail2 = resp.split("//script after tail2")[1];
$("#div"+dataKey).html(pb + " " + scriptAterTail1 + " " + "<script>"+ scriptAterTail2 + "</script>");
} }
}); });

Loading…
Cancel
Save