Browse Source

menupath2 추가

huiwon.seo 4 năm trước cách đây
mục cha
commit
bf08828f16

+ 6 - 0
src/main/java/com/lemon/lifecenter/common/LifeCenterController.java

@@ -25,14 +25,20 @@ public class LifeCenterController {
         String url = request.getRequestURI().toString();
         String[] split = url.split("/");
         String pathType = "";
+        String pathType2 = "";
 
         if (split.length > 0) {
             pathType = split[1].toLowerCase();
         }
+        
+        if (split.length > 1) {
+            pathType2 = split[2].toLowerCase();
+        }
 
         hashMap.put("_TITLE", "생활치료센터 의료진 시스템");
         hashMap.put("_INCLUDE", "/WEB-INF/jsp/include");
         hashMap.put("_MENUPATH", pathType);
+        hashMap.put("_MENUPATH2", pathType2);
         
         try {
           String sesId         = LifeCenterSessionController.getSession( request, "sesId" );

+ 2 - 0
src/main/webapp/WEB-INF/jsp/include/sidebar.jsp

@@ -60,9 +60,11 @@
                         <li class="sidebar-item <c:if test='${data._MENUPATH eq "clinic"}'>active</c:if>">
                             <a class="sidebar-link" href="/clinic/state">진료관리</a>
                         </li>
+                        <c:if test="${data._SES_GROUP_IDX ne 3}">
                         <li class="sidebar-item <c:if test='${data._MENUPATH eq "staff"}'>active</c:if>">
                             <a class="sidebar-link" href="/staff/list">의료진관리</a>
                         </li>
+                        </c:if>
 <%--                     </c:if> --%>
                     
                     <c:if test="${data._SES_GROUP_IDX eq 1}">