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(),"消息")%> 
  • --%>