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

📄 menu.jsp

📁 Java开发的权限管理的例子
💻 JSP
字号:
<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="/WEB-INF/tld/auth.tld" prefix="auth" %>
<html>
<HEAD>
<TITLE>menu</TITLE>
<link title=Style href="../common/css/left.css" type=text/css rel=stylesheet>

<SCRIPT language=javascript1.2>
<!--
function show(con)
{
divroll = document.all.tags("DIV"); 
  for(i=0; i<divroll.length; i++) 
  { 
    whichEl = divroll(i); 
    idtag = con; 
    if (whichEl.id == idtag) 
    { 
       if (whichEl.style.display == "none") 
             whichEl.style.display = "block";  
       else 
         whichEl.style.display = "none"; 
    }
	else
	    whichEl.style.display = "none";
  } 
}

function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
function switchSysBar(){
  if (switchPoint.innerText==3){
    switchPoint.innerText=4
    document.all("frmTitle").style.display="none"
  }else{
    switchPoint.innerText=3
    document.all("frmTitle").style.display=""
  }
}
-->
</SCRIPT>
</HEAD>
<BODY leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
	<TABLE width=140 align=center cellPadding=0 cellSpacing=0 bgcolor="#ECF4EF">
        <TBODY>
        <TR>
          <TD width="100%" 
            height=19 align="left" background=../common/images/menu_bg.gif class=menu_title
           id=menuTitle1 onClick="show('content1')"
		   onMouseMove="style.cursor='hand'"
          onmouseover="this.className='menu_title2';" 
          onmouseout="this.className='menu_title';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>系统管理</span>
		  </TD>
        </TR>
        <TR>
          <TD width="100%" bgcolor="#ECF4EF" id=submenu0>
            <DIV class=sec_menu  id="content1" style="display:block">
            <TABLE width="100%" align=center cellPadding=0 cellSpacing=0 bgcolor="#ECF4EF">
              <TBODY>
			  <!-- 一个单元格的开始 -->
              <TR>
                <TD width="100%" align="center" bgcolor="#ECF4EF">
      <table  width="50" onMouseUp="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      onmousedown="this.borderColorLight='#000000';this.borderColorDark='#cccccc'" 
      onmouseover="this.borderColorLight='#cccccc';this.borderColorDark='#000000'" 
      onmouseout="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      cellSpacing=0 borderColorDark=#ffffff cellPadding=0 bgColor=#ECF4EF 
      borderColorLight=#ffffff border=1 >
                    <tr>
                      <td width="42" align="right">
                      <a href="userMessage.jsp" 
            target=main><img  src="../common/images/advise.gif" width="32" height="35" align="middle" alt=系统管理 border=0></a></td>
                    </tr>
                      </table>                  </TD>
              </TR>
			   <!-- 一个单元格的结束 -->
              <TR>
                <TD class=chinese_text height=20 align="center" ><a 
            href="userMessage.jsp" target=main class="style1">系统管理</a></TD>
              </TR>
              </TABLE>
            </DIV> 
			</TD></TR>
			
		  </TBODY></TABLE>
 
      <TABLE width=140 align=center cellPadding=0 cellSpacing=0 bgcolor="#ECF4EF">
        <TBODY>
          <TR>
            <TD width="100%" 
            height=19 align="left" background=../common/images/menu_bg.gif class=menu_title
           id=menuTitle1 onClick="show('content2')" 
		   onMouseMove="style.cursor='hand'"
          onmouseover="this.className='menu_title2';" 
          onmouseout="this.className='menu_title';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>文件管理</span></TD>
          </TR>

          <TR>
            <TD width="100%" bgcolor="#ECF4EF" id=submenu1>
              <DIV class=sec_menu  id="content2" style="display:block">
                <TABLE width="100%" align=center cellPadding=0 cellSpacing=0 bgcolor="#ECF4EF">
                  <TBODY>
                    <TR>
                      <TD width="100%" align="center" bgcolor="#ECF4EF"><table  width="50" onMouseUp="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      onmousedown="this.borderColorLight='#000000';this.borderColorDark='#cccccc'" 
      onmouseover="this.borderColorLight='#cccccc';this.borderColorDark='#000000'" 
      onmouseout="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      cellSpacing=0 borderColorDark=#ffffff cellPadding=0 bgColor=#ECF4EF 
      borderColorLight=#ffffff border=1 >
                          <tr>
                            <td width="42" align="right"><a 
            href="upload/file_upload.jsp" 
            target=main><img  src="../common/images/url.gif" width="32" height="32" align="middle" alt=文件上传 border=0></a></td>
                          </tr>
                      </table>
					  </TD>
                    </TR>
                    <TR>
                      <TD class=chinese_text height=20 align="center" ><a 
            href="upload/file_upload.jsp" target=main class="style1">文件上传</a></TD>
                    </TR>
         <!-- end -->         
             <TR>
                      <TD width="100%" align="center" bgcolor="#ECF4EF"><table  width="50" onMouseUp="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      onmousedown="this.borderColorLight='#000000';this.borderColorDark='#cccccc'" 
      onmouseover="this.borderColorLight='#cccccc';this.borderColorDark='#000000'" 
      onmouseout="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      cellSpacing=0 borderColorDark=#ffffff cellPadding=0 bgColor=#ECF4EF 
      borderColorLight=#ffffff border=1 >
                          <tr>
                            <td width="42" align="right"><a 
            href="upload/file_view.jsp" 
            target=main><img  src="../common/images/docu.gif" width="32" height="32" align="middle" alt=查看文件 border=0></a></td>
                          </tr>
                      </table></TD>
                    </TR>
                    <TR>
                      <TD class=chinese_text height=20 align="center" ><a 
            href="upload/file_view.jsp" target=main class="style1">查看文件</a></TD>
                    </TR>         
<TR>
                      <TD width="100%" align="center" bgcolor="#ECF4EF"><table  width="50" onMouseUp="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      onmousedown="this.borderColorLight='#000000';this.borderColorDark='#cccccc'" 
      onmouseover="this.borderColorLight='#cccccc';this.borderColorDark='#000000'" 
      onmouseout="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      cellSpacing=0 borderColorDark=#ffffff cellPadding=0 bgColor=#ECF4EF 
      borderColorLight=#ffffff border=1 >
                          <tr>
                            <td width="42" align="right"><a 
            href="upload/upload.jsp" 
            target=main><img  src="../common/images/docu.gif" width="32" height="32" align="middle" alt=上传图片 border=0></a></td>
                          </tr>
                      </table></TD>
                    </TR>
                    <TR>
                      <TD class=chinese_text height=20 align="center" ><a 
            href="upload/upload.jsp" target=main class="style1">上传图片</a></TD>
                    </TR>    
                </TABLE>
            </DIV></TD>
          </TR>

        </TBODY>
      </TABLE>
      <TABLE width="140" align=center cellPadding=0 cellSpacing=0 bgcolor="#ECF4EF">
        <TBODY>
          <TR>
            <TD width="100%" 
            height=19 align="left" background=../common/images/menu_bg.gif class=menu_title
           id=menuTitle1 onClick="show('content5')" 
		   onMouseMove="style.cursor='hand'"
          onmouseover="this.className='menu_title2';" 
          onmouseout="this.className='menu_title';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>用户权限管理</span></TD>
          </TR>
          <TR>
            <TD width="100%" bgcolor="#ECF4EF" id=submenu2>
              <DIV class=sec_menu  id="content5" style="display:block">
                <TABLE width="100%" align=center cellPadding=0 cellSpacing=0 bgcolor="#ECF4EF">
                  <TBODY>
				  <auth:auth ifAnyGranted="findAllUser,findUserById">
				  <TR>
                      <TD width="100%" align="center" bgcolor="#ECF4EF"><table  width="50" onMouseUp="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      onmousedown="this.borderColorLight='#000000';this.borderColorDark='#cccccc'" 
      onmouseover="this.borderColorLight='#cccccc';this.borderColorDark='#000000'" 
      onmouseout="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      cellSpacing=0 borderColorDark=#ffffff cellPadding=0 bgColor=#ECF4EF 
      borderColorLight=#ffffff border=1 >
                          <tr>
                            <td width="42" align="right"><a 
            href="user/usersList.do" 
            target=main><img  src="../common/images/advise.gif" width="32" height="35" align="middle" alt=用户管理 border=0></a></td>
                          </tr>
                      </table></TD>
                    </TR>
					  <TR>
                      <TD class=chinese_text height=20 align="center" ><a 
            href="user/usersList.do" target=main class="style1">用户管理</a></TD>
                    </TR>
					 </auth:auth>
					 <auth:auth ifAnyGranted="findAllRole">
                    <TR>
                      <TD width="100%" align="center" bgcolor="#ECF4EF"><table  width="50" onMouseUp="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      onmousedown="this.borderColorLight='#000000';this.borderColorDark='#cccccc'" 
      onmouseover="this.borderColorLight='#cccccc';this.borderColorDark='#000000'" 
      onmouseout="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      cellSpacing=0 borderColorDark=#ffffff cellPadding=0 bgColor=#ECF4EF 
      borderColorLight=#ffffff border=1 >
                          <tr>
                            <td width="42" align="right"><a 
            href="right/findAllRole.do" 
            target=main><img  src="../common/images/advise.gif" width="32" height="35" align="middle" alt=角色管理 border=0></a></td>
                          </tr>
                      </table></TD>
                    </TR>
					  <TR>
                      <TD class=chinese_text height=20 align="center" ><a 
            href="right/findAllRole.do" target=main class="style1">角色管理</a></TD>
                    </TR>
					 </auth:auth>
					  <auth:auth ifAnyGranted="findAllFunction">
					<TR>
                      <TD width="100%" align="center" bgcolor="#ECF4EF"><table  width="50" onMouseUp="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      onmousedown="this.borderColorLight='#000000';this.borderColorDark='#cccccc'" 
      onmouseover="this.borderColorLight='#cccccc';this.borderColorDark='#000000'" 
      onmouseout="this.borderColorLight='#ffffff';this.borderColorDark='#ffffff'" 
      cellSpacing=0 borderColorDark=#ffffff cellPadding=0 bgColor=#ECF4EF 
      borderColorLight=#ffffff border=1 >
                          <tr>
                            <td width="42" align="right"><a 
            href="right/listFunction.do" 
            target=main><img  src="../common/images/advise.gif" width="32" height="35" align="middle" alt=权限管理 border=0></a></td>
                          </tr>
                      </table></TD>
                    </TR>
					  <TR>
                      <TD class=chinese_text height=20 align="center" ><a 
            href="right/listFunction.do" target=main class="style1">权限管理</a></TD>
                    </TR>
                </auth:auth>
                </TABLE>
            </DIV></TD>
          </TR>
        </TBODY>
      </TABLE>
    
	</BODY>
	</html>

⌨️ 快捷键说明

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