index.jsp
上传用户:kimgenplus
上传日期:2016-06-05
资源大小:20877k
文件大小:5k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page language="java" contentType="text/html; charset=GB18030"
  2.     pageEncoding="GB18030"%>
  3. <%@include file="/common/common.jsp" %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=GB18030">
  7. <link href="style/oa.css" rel="stylesheet" type="text/css">
  8. <script language="javascript" src="script/public.js"></script>
  9. <title>角色管理</title>
  10. </head>
  11. <BODY bgColor=#dee7ff leftMargin=0 background="" topMargin=0 marginheight="0" marginwidth="0">
  12. <center>
  13.       <TABLE width="778" border=0 cellPadding=0 cellSpacing=0 borderColor=#ffffff bgColor=#dee7ff style="FONT-SIZE: 10pt">
  14.         <TBODY>
  15.           <TR height=35>
  16.             <TD align=middle width=20 background=images/title_left.gif 
  17.           bgColor=#dee7ff></TD>
  18.             <TD align=middle width=120 background=images/title_left.gif 
  19.           bgColor=#dee7ff><FONT color=#f7f7f7> 角色管理<font color="#FFFFFF">&nbsp;</font></FONT> </TD>
  20.             <TD align=middle width=11 background=images/title_middle.gif 
  21.           bgColor=#dee7ff><FONT color=#f7f7f7>&nbsp;</FONT> </TD>
  22.             <TD align=middle background=images/title_right.gif 
  23.           bgColor=#dee7ff><FONT color=#f7f7f7>&nbsp;</FONT> </TD>
  24.           </TR>
  25.         </TBODY>
  26.       </TABLE>
  27.       <TABLE width="778" border=0 align=center cellPadding=0 cellSpacing=0 borderColor=#ffffff style="FONT-SIZE: 10pt">
  28.         <TBODY>
  29.           <TR>
  30.             <TD width="82%" height=14 align=right vAlign=center noWrap>
  31.             </TD>
  32.             <TD width="18%" align=right vAlign=center noWrap> </TD>
  33.           </TR>
  34.           <TR>
  35.             <TD height=14 align=right vAlign=center noWrap><!-- 在这里插入查询表单 -->
  36.             </TD>
  37.             <TD height=14 align="left" vAlign=center noWrap>
  38.             <% 
  39.             /**
  40.             * 在这里定义“添加”,“查询”等按钮
  41.             * <input type="image" name="find" value="find" src="images/cz.gif">
  42.             * &nbsp;&nbsp;&nbsp;&nbsp; 
  43.             * <a href="#" onClick="openWin('document.do?method=addInput','470')">
  44.             * <img src="images/addpic.gif" border=0 align=absMiddle style="CURSOR: hand"></a>
  45.             */
  46.             %>
  47.             <a href="#" onclick="openWin('role.do?method=addInput','addrole',600,200);">添加角色信息</a>
  48.             </TD>
  49.           </TR>
  50.           <TR>
  51.             <TD height=28 colspan="2" align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  52.             <!-- 可以在这里插入分页导航条 -->
  53.             </TD>
  54.           </TR>
  55.         </TBODY>
  56.       </TABLE>
  57.       <table width="778" border="0" cellPadding="0" cellSpacing="1" bgcolor="#6386d6">
  58.           <!-- 列表标题栏 -->
  59.       <tr bgcolor="#EFF3F7" class="TableBody1">
  60.       <td width="5%" height="37" align="center"><b>序号</b></td>
  61.       <td width="70%" height="37" align="center"><B>角色名称</B></td>
  62.               <td width="25%" height="37" align="center"><b>相关操作</b></td>
  63.           </tr>
  64.           <!-- 列表数据栏 -->
  65.           <c:if test="${!empty pm.datas}">
  66.           <c:forEach items="${pm.datas }" var="role">
  67.       <tr bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  68.       <td align="center" vAlign="center">${role.id }</td>
  69.           <td align="center" vAlign="center">${role.name }</td>
  70.           <td align="center" vAlign="center">
  71.           <a href="#" onclick="del('role.do?method=del&id=${role.id }');">删除角色</a>
  72.           <a href="#" onclick="openWin('acl.do?principalType=Role&principalSn=${role.id }','roleauth',600,500,1);">角色授权</a>
  73.           </td>
  74.         </tr>
  75.         </c:forEach>
  76. </c:if>
  77.         <!-- 在列表数据为空的时候,要显示的提示信息 -->
  78.     <c:if test="${empty pm.datas}">
  79.     <tr>
  80.      <td colspan="7" align="center" bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  81.      没有找到相应的记录
  82.      </td>
  83.     </tr>
  84.     </c:if>
  85.       </table>
  86.       <TABLE width="778" border=0 align=center cellPadding=0 cellSpacing=0 borderColor=#ffffff style="FONT-SIZE: 10pt">
  87.         <TBODY>
  88.           <TR>
  89.             <TD height=28 align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  90.             <!-- 可以在这里插入分页导航条 -->
  91. <pg:pager url="role.do" items="${pm.total }" export="currentPageNumber=pageNumber">
  92. <pg:first>
  93. <a href="${pageUrl}">首页</a>
  94. </pg:first>
  95. <pg:prev>
  96. <a href="${pageUrl }">前页</a>
  97. </pg:prev>
  98. <pg:pages>
  99. <c:choose>
  100. <c:when test="${currentPageNumber eq pageNumber }">
  101. <font color="red">${pageNumber }</font>
  102. </c:when>
  103. <c:otherwise>
  104. <a href="${pageUrl }">${pageNumber }</a>
  105. </c:otherwise>
  106. </c:choose>
  107. </pg:pages>
  108. <pg:next>
  109. <a href="${pageUrl }">后页</a>
  110. </pg:next>
  111. <pg:last>
  112. <a href="${pageUrl }">尾页</a>
  113. </pg:last>
  114. </pg:pager>
  115.      </TD>
  116.           </TR>
  117.         </TBODY>
  118.       </TABLE>
  119. </center>
  120. </body>
  121. </html>