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

📄 sys_rolemanage_showpower.jsp

📁 J2ee开发的 人事管理系统 使用oracle数据库 myeclips平台开发
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ page import="java.util.*"  %>
<%@ page import="com.galaxy.vo.*"  %>
<%@ page import="com.galaxy.dao.*"  %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
<style type="text/css">
<!--
.style1 {
	font-size: 24px;
	font-weight: bold;
}
-->
</style>
<link rel="stylesheet" type="text/css" href="../css/css.css"/>
</head>

<script type="text/javascript">
function fanhui()
{
	history.back();
}
</script>

<%

	 List rplist1 = new ArrayList();//人员档案
	 List rplist2 = new ArrayList();//人事调配
	 List rplist3 = new ArrayList();//教育培训
	 List rplist4 = new ArrayList();//系统管理
	 String cond = " and r.ri_id="+request.getParameter("roleid");
	 String cond1 = cond + " and p.pi_up = 27";
	 String cond2 = cond + " and p.pi_up = 33";
	 String cond3 = cond + " and p.pi_up = 38";
	 String cond4 = cond + " and p.pi_up = 46";
	 RiPiRsIdDAO rpdao = new RiPiRsIdDAO();
	 rplist1 = rpdao.queryByCondition(cond1);
	 rplist2 = rpdao.queryByCondition(cond2);
	 rplist3 = rpdao.queryByCondition(cond3);
	 rplist4 = rpdao.queryByCondition(cond4);
%>

<body>

<form name="form1" method="post" action="sys_rolemanage_delete.htm">
<div id="Layer1" style="position:absolute; left:100px; top:10px; width:438px; z-index:1; height: 353px;">
<h2 align="center">查看角色权限</h2>
  <table class="toBeSetBgColor" width="89%"   border="1" cellpadding="0" cellspacing="0">
    <tr class="RowHeader">
      <td width="26%" height="35">角色名:</td>
      <%
      	RiPiRsIdVO ripivo = new RiPiRsIdVO();
     	ripivo = (RiPiRsIdVO)rplist1.get(0);
      %>
      <td width="74%"><input name="textfield" type="text" readonly="true" value=<%=ripivo.getRoleInfo().getRiName() %>></td>
    </tr>
    <tr class="EvenRow">
      <td  valign="top">权限:</td>
      <td><table width="96%"   border="0" cellpadding="0" cellspacing="0">
        <%if(rplist1.size() != 0){ %>
        <tr class="EvenRow">
          <td width="31%" valign="top">人员档案:</td>
          <td width="69%">
          <%
          	
          		for(int i = 0; i < rplist1.size(); i++){
          		RiPiRsIdVO rpvo = new RiPiRsIdVO();
          		rpvo = (RiPiRsIdVO)rplist1.get(i);
          %>
              <%=rpvo.getPowerInfo().getPiName() %><br>
		  <%} %> 
			 <hr width="90%">
          </td>
        </tr>
        <%} %>
        
        <%if(rplist2.size() != 0){ %>
        <tr class="EvenRow">
          <td valign="top">人事调配:</td>
          <td>
			<%
          		for(int i = 0; i < rplist2.size(); i++){
          		RiPiRsIdVO rpvo = new RiPiRsIdVO();
          		rpvo = (RiPiRsIdVO)rplist2.get(i);
            %>
              <%=rpvo.getPowerInfo().getPiName() %><br>
		   <%}%> 
           <hr width="90%">
		   </td>
        </tr>
        <%} %>
        
        <% if(rplist3.size() != 0){ %>
        <tr class="EvenRow">
          <td height="13" valign="top">教育培训:</td>
          <td>
          <%
          		for(int i = 0; i < rplist3.size(); i++){
          		RiPiRsIdVO rpvo = new RiPiRsIdVO();
          		rpvo = (RiPiRsIdVO)rplist3.get(i);
            %>
              <%=rpvo.getPowerInfo().getPiName() %><br>
		   <%}%> 

          <hr width="90%">
		  </td>
        </tr>
        <%} %>
        
        
        <%if(rplist4.size() != 0){ %>
        <tr class="EvenRow">
          <td  valign="top">系统管理:</td>
          <td>  
          <%
          		for(int i = 0; i < rplist4.size(); i++){
          		RiPiRsIdVO rpvo = new RiPiRsIdVO();
          		rpvo = (RiPiRsIdVO)rplist4.get(i);
            %>
              <%=rpvo.getPowerInfo().getPiName() %><br>
		   <%} %>
		   <hr width="90%"> 
		  </td>
        </tr>
        <%} %>
      </table></td>
    </tr>
  </table>

  <table border="0" cellspacing="0" cellpadding="0" style="left: 100px; width: 287px;">
    <tr>
      <td width="37%" height="36"><div align="center">    
      </div></td>
      <td width="63%"><div align="center">
        <input type="button" name="Submit2" value="返回角色列表" onClick="fanhui()">
      </div></td>
    </tr>
  </table>
  <p>&nbsp;</p>
</div>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</form>
</body>
</html>

⌨️ 快捷键说明

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