diff --git a/egovframe-template-simple-react-contribution/src/components/EgovPaging.jsx b/egovframe-template-simple-react-contribution/src/components/EgovPaging.jsx
index 9fffccf..b16e8c6 100644
--- a/egovframe-template-simple-react-contribution/src/components/EgovPaging.jsx
+++ b/egovframe-template-simple-react-contribution/src/components/EgovPaging.jsx
@@ -46,59 +46,6 @@ function EgovPaging({pagination, moveToPage}) {
{moveToPage(pagination.maxNum)}} className="last">
);
}
- /*const currentPageNo = pagination.currentPageNo;
- const pageSize = pagination.pageSize;
- const totalRecordCount = pagination.contentCnt;
- const recordCountPerPage = pagination.rowCnt;
-
- const totalPageCount = Math.ceil(totalRecordCount / recordCountPerPage);
- const currentFirstPage = Math.floor((currentPageNo - 1) / pageSize) * pageSize + 1;
- let currentLastPage = currentFirstPage + pageSize - 1;
- currentLastPage = (currentLastPage > totalPageCount) ? totalPageCount : currentLastPage;
-
- if (totalPageCount > pageSize) {
- // 첫 페이지 이동
- const firstPageTag =
- {moveToPage(1)}} className="first">처음 ;
- paginationTag.push(firstPageTag);
-
- // 이전 페이지 이동
- const prevPageIndex = (currentPageNo - 1 > 0) ? currentPageNo - 1 : 1;
- const previousPageTag =
- {moveToPage(prevPageIndex)}} className="prev">이전 ;
- paginationTag.push(previousPageTag);
- }
-
- for (let i = currentFirstPage; i <= currentLastPage; i++) {
- if (i === currentPageNo) {
- // 현재 페이지
- const currentPage =
- {i}
- ;
- paginationTag.push(currentPage);
- } else {
- // 다른 페이지
- const otherPage =
- {moveToPage(i)}}>{i}
- ;
- console.log("@@@ otherpage : " + otherPage);
- paginationTag.push(otherPage);
- }
- }
-
- if (totalPageCount > pageSize) {
- // 다음 페이지 이동
- const nextPageIndex = (currentLastPage + 1 < totalPageCount) ? currentLastPage + 1 : totalPageCount;
- const nextPageTag =
- {moveToPage(nextPageIndex)}} className="next">다음
- ;
- paginationTag.push(nextPageTag);
-
- // 마지막 페이지 이동
- const lastPageTag =
- {moveToPage(totalPageCount)}} className="last"> ;
- paginationTag.push(lastPageTag);
- }*/
}
console.log("paginationTag", paginationTag);
console.groupEnd("EgovPaging");
diff --git a/egovframe-template-simple-react-contribution/src/components/leftmenu/EgovLeftNavAdmin.jsx b/egovframe-template-simple-react-contribution/src/components/leftmenu/EgovLeftNavAdmin.jsx
index c1b6fe7..03edf31 100644
--- a/egovframe-template-simple-react-contribution/src/components/leftmenu/EgovLeftNavAdmin.jsx
+++ b/egovframe-template-simple-react-contribution/src/components/leftmenu/EgovLeftNavAdmin.jsx
@@ -1,10 +1,40 @@
import React from 'react';
-
+import { useLocation } from 'react-router-dom';
import { NavLink } from 'react-router-dom';
import URL from 'constants/url';
import {Accordion} from "react-bootstrap";
-function EgovLeftNavAdmin({activeKey}) {
+function EgovLeftNavAdmin(props) {
+ const location = useLocation();
+
+ const getMiddleFolder = (url) => { // 중간 폴더를 가져오는 로직 추가
+ const parts = url.split('/').filter(Boolean); // '/'로 분할하고 빈 문자열을 필터링
+ if (parts.length >= 2) {
+ return parts[1]; // 중간 폴더 반환
+ }
+ return null;
+ };
+ const activeFolder = getMiddleFolder(location.pathname);
+
+ let activeKey;
+ if (activeFolder === "config") {
+ activeKey = "0";
+ } else if (activeFolder === "users") {
+ activeKey = "1";
+ } else if (activeFolder === "boards") {
+ activeKey = "2";
+ } else if (activeFolder === "standards") {
+ activeKey = "3";
+ } else if (activeFolder === "contents") {
+ activeKey = "4";
+ } else if (activeFolder === "committee") {
+ activeKey = "5";
+ } else if (activeFolder === "logs") {
+ activeKey = "6";
+ } else {
+ activeKey = "7";
+ }
+
return (
diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/config/BaseCodeMgt.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/config/BaseCodeMgt.jsx
index c15c435..54d6306 100644
--- a/egovframe-template-simple-react-contribution/src/pages/admin/config/BaseCodeMgt.jsx
+++ b/egovframe-template-simple-react-contribution/src/pages/admin/config/BaseCodeMgt.jsx
@@ -30,7 +30,7 @@ function BaseCodeMgt(props) {
{/* */}
-
+
{/* */}
diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/users/List.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/users/List.jsx
index 33b1ceb..725e63e 100644
--- a/egovframe-template-simple-react-contribution/src/pages/admin/users/List.jsx
+++ b/egovframe-template-simple-react-contribution/src/pages/admin/users/List.jsx
@@ -99,7 +99,7 @@ function List(props) {