⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.jsp

📁 Jbuilder2006开发的严格按MVC设计模式组织开发过程
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.tops.j2eebase.security.*,com.tops.j2eebase.web.outlookmenu.*, java.util.*"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<%
  LoginUser user = (LoginUser) request.getSession().getAttribute(com.tops.j2eebase.security.LoginUserFactory.getLoginUserFactory().getSessionValName());
  List moduleFunctionList = com.tops.j2eebase.web.outlookmenu.TopsOutlookMenuMaker.getInstance().getFunctionList(user.getPopedomString());
  boolean prevFlag = false, curFlag = false;
  String text = "";
%>
<html>
<head>
<html:base/>
<base target="main">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK REL="stylesheet" TYPE="text/css" href="<%=request.getContextPath()%>/_normal/css/menustyle.css">
<script language="JavaScript1.2" type="text/javascript">
<!--
var OutlookBar={
format:{
  target:'main',
  blankImage:'<%=request.getContextPath()%>/_normal/menuico/b.gif',
  rollback:true,
  animationSteps:2,
  animationDelay:20,
  templates:{
    panel:{
      common:'<table width="100%" height="26" border="0" cellspacing="0" cellpadding="0" background="<%=request.getContextPath()%>/_normal/menuico/panel_middle_{state}.gif"><tr><td><img src="<%=request.getContextPath()%>/_normal/menuico/panel_left_{state}.gif" width="10" height="26" /></td><td align="center"><div style="font: bold 9pt trebuchet ms, arial;">{text}</div></td><td align="right"><img src="<%=request.getContextPath()%>/_normal/menuico/panel_right_{state}.gif" width="10" height="26" /></td></tr></table>',
				normal:{state:'n'}
    },
    item:{
      normal:'<table border="0" bgcolor="#E9E9E9" cellspacing="3" width="100%"><tr><td width="30" align="center"><img src="{icon}" width="30" height="24" style="display: block;"/></td><td style="font: 8pt tahoma;">{text}</td></tr></table>'
    },
    upArrow:{
      normal:'<img src="<%=request.getContextPath()%>/_normal/menuico/arr_up.gif" width="30" height="30" />'
    },
    downArrow:{
      normal:'<img src="<%=request.getContextPath()%>/_normal/menuico/arr_down.gif" width="30" height="30" />'
    }
  }
},
panels:[
<%
  for (Iterator it = moduleFunctionList.iterator(); it.hasNext();) {
    ApplicationFunction function = (ApplicationFunction) it.next();
    if(function.getEnable().equals("0")) continue;
    if(function.getFolderText()==null) continue;
    if(text==null)text="";
    if (text.equals(function.getFolderText())) {
      %>
      ,
    {"text":"<%=function.getItemText()%>","textCSS":"a2", "icon":'menuimages/<%=function.getImage()%>',    "url":'<%=request.getContextPath()%>/<%=function.getUrl()%>', "classCSS":"imgstyle", "overclassCSS":"imgstyle_over"}
    <%
    }else{
      text = function.getFolderText();
      if (prevFlag == true) {
        %>
      ]
    },
    <%}%>
    {text:"<%=text%>", url:'',
      "items":
      [
      {"text":"<%=function.getItemText()%>","textCSS":"a2", "icon":'menuimages/<%=function.getImage()%>',    "url":'<%=request.getContextPath()%>/<%=function.getUrl()%>', "classCSS":"imgstyle", "overclassCSS":"imgstyle_over"}
      <%
      prevFlag = true;
    }
  }%>
]
}
]
};

-->
</script>
<script language="JavaScript1.2" src="<%=request.getContextPath()%>/_normal/script/outlook.js" type="text/javascript"></script>
</head>

<body link="#000000"  vlink="#000000">
<script language="JavaScript" type="text/javascript">
	new COOLjsOutlookBar(OutlookBar);
</script>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -