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

📄 authorization.jsp

📁 基于Sturts+Spring+Hibernate的一个高级销售管理系统。内容丰富
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="com.yuanchung.sales.service.admin.AuthorizationMgrImpl"%>
     <%@page import="com.yuanchung.sales.constants.SystemConstant"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; UTF-8">
<title>Y6高级销售管理平台--系统授权</title>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
  <%
  		int model = AuthorizationMgrImpl.getAuthorizationModel();
  		if(model == SystemConstant.AUTHORIZATION_POSITION ){
   %>
   <tr >
    <td width="30%" valign="top"> 
       <iframe name="leftframe" src="${pageContext.request.contextPath}/admin/position/left.jsp" width="100%" height="600" scrolling="auto"></iframe>        
    </td>
    <td  width="70%" valign="top">
      <iframe name="mainframe" src="${pageContext.request.contextPath}/position.do?dispatch=getObjToPage" width="100%" height="600" scrolling="auto"></iframe>
    </td>
  </tr>
  <%
  		}else if(model == SystemConstant.AUTHORIZATION_ROLE ){
   %>
   <tr >
    <td width="30%" valign="top">
       <iframe name="leftframe" src="${pageContext.request.contextPath}/role.do?dispatch=getRolesToPage&type=2" width="100%" height="600" scrolling="auto"></iframe>        
    </td>
    <td  width="70%" valign="top">
      <iframe name="mainframe" src="${pageContext.request.contextPath}/role.do?dispatch=getObjToPage" width="100%" height="600" scrolling="auto"></iframe>
    </td>
  </tr>
  <%
  		}else{
   %>
   <br/><br/>
   	<div align="center" ><font color="red" size="4">还没选择授权方式</font></div>
   	<form action="${pageContext.request.contextPath}/authorization.do" onsubmit="return checkForm(this);">
		<input type="hidden" name="dispatch" value="setModel"/>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="60" class="dtree" colspan="2" align="center">
							<input type="radio" name="authorizationMode" value="<%=SystemConstant.AUTHORIZATION_POSITION %>" checked="checked"/>对岗位授权
					<br/>
					<input type="radio" name="authorizationMode" value="<%=SystemConstant.AUTHORIZATION_ROLE %>" />对角色授权
				</td>
			</tr>
			<tr>
				<td colspan="2" height="60" align="center">
					<input type="submit" class="userButton" value="确 定" >&nbsp;
					<input type="button" class="userButton" value="取 消" onclick="window.close();">
				</td>
			</tr>
			<tr>
				<td colspan="2" id="message">
					
				</td>
			</tr>
		</table>
	</form>
   <%
  		}
   %>
  </table>
</body>
</html>

⌨️ 快捷键说明

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