From 5560b4471b9ccdc91c0d3443f9e41f33c0edeaae Mon Sep 17 00:00:00 2001 From: zhulianghua Date: Fri, 17 Aug 2018 10:21:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E7=BB=8F=E9=94=80=E5=95=86?= =?UTF-8?q?=E5=A7=94=E6=89=98=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Frame/page/jspf/include/jsp_mainmenu.jspf | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/WebContent/Frame/page/jspf/include/jsp_mainmenu.jspf b/WebContent/Frame/page/jspf/include/jsp_mainmenu.jspf index 43c2e835a..63abf1b64 100644 --- a/WebContent/Frame/page/jspf/include/jsp_mainmenu.jspf +++ b/WebContent/Frame/page/jspf/include/jsp_mainmenu.jspf @@ -1,5 +1,15 @@ -<% +<%@page import="com.tenwa.httpclient.resources.QuartzPropertiesUtil"%><% request.setAttribute("as_main", new com.amarsoft.awe.ui.layout.ASMain(CurPage).init(null).setTitle(PG_TITLE).setContentTitle(PG_CONTENT_TITLE).setContnetText(PG_CONTNET_TEXT).setLeftWidth(PG_LEFT_WIDTH)); +boolean bFlag = false; +List roles = CurUser.getRoleTable(); +String distributorRole = QuartzPropertiesUtil.get("distributor_role"); +distributorRole = distributorRole == null ? "" : distributorRole; +for(String role : roles) { + if(distributorRole.indexOf(role) != -1) { + bFlag = true; + break; + } +} %> @@ -27,7 +37,11 @@ request.setAttribute("as_main", new com.amarsoft.awe.ui.layout.ASMain(CurPage).i
  • ${as_main.homeHtml}
  • <%--
  • ${as_main.skinHtml}
  • --%>
  • ${as_main.userHtml}
  • -
  •  <%=LanguageManager.getLanguage("awe/system",CurPage.getUser().getLanguage(),"委托")%> 
  • + <% + if(!bFlag) {%> +
  •  <%=LanguageManager.getLanguage("awe/system",CurPage.getUser().getLanguage(),"委托")%> 
  • + <%} + %> <%--
  •  <%=LanguageManager.getLanguage("awe/system",CurPage.getUser().getLanguage(),"消息")%> 
  • --%>