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.              <!-- 在这里插入查询表单 -->
  37.             </TD>
  38.             <TD height=14 align="left" vAlign=center noWrap>
  39.             </TD>
  40.           </TR>
  41.           <TR>
  42.             <TD height=28 colspan="2" align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  43.             <!-- 可以在这里插入分页导航条 -->
  44.             </TD>
  45.           </TR>
  46.         </TBODY>
  47.       </TABLE>
  48.       <table width="778" border="0" cellPadding="0" cellSpacing="1" bgcolor="#6386d6">
  49.           <!-- 列表标题栏 -->
  50.       <tr bgcolor="#EFF3F7" class="TableBody1">
  51.       <td width="5%" height="37" align="center"><b>序号</b></td>
  52.       <td width="10%" height="37" align="center"><B>姓名</B></td>
  53.       <td width="10%" height="37" align="center"><b>性别</b></td>
  54.               <td width="10%" height="37" align="center"><b>所属机构</b></td>
  55.               <td width="10%" height="37" align="center"><b>登录帐号</b></td>
  56.               <td width="10%" height="37" align="center"><b>失效时间</b></td>
  57.               <td width="45%" height="37" align="center"><b>操作</b></td>
  58.           </tr>
  59.           <!-- 列表数据栏 -->
  60.           <c:if test="${!empty pm.datas}">
  61.           <c:forEach items="${pm.datas }" var="person">
  62.       <tr bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  63.       <td align="center" vAlign="center">${person.id }</td>
  64.           <td align="center" vAlign="center">${person.name }</td>
  65.           <td align="center" vAlign="center">${person.sex }</td>
  66.           <td align="center" vAlign="center">${person.org.name }</td>
  67.           <td align="center" vAlign="center">${person.user.username }</td>
  68.           <td align="center" vAlign="center"><fmt:formatDate value="${person.user.expireTime }" pattern="yyyy-MM-dd"/></td>
  69.           <td align="center" vAlign="center">
  70.           <a href="#" onclick="openWin('user.do?method=addInput&personId=${person.id }','assignUser',600,100);">分配帐号</a>
  71.           <a href="#" onclick="del('user.do?method=del&id=${person.user.id }');">删除帐号</a>
  72.           <a href="#" onclick="openWin('user.do?method=updateInput&id=${person.user.id }','chgpsw',600,100);">修改帐号</a>
  73.           <a href="#" onclick="openWin('user.do?method=userRoleList&id=${person.user.id }','assignRole',600,400);">分配角色</a>
  74.           <a href="#" onclick="openWin('acl.do?principalType=User&principalSn=${person.user.id }','roleauth',600,500,1);">用户授权</a>
  75.           </td>
  76.         </tr>
  77.         </c:forEach>
  78. </c:if>
  79.         <!-- 在列表数据为空的时候,要显示的提示信息 -->
  80.     <c:if test="${empty pm.datas}">
  81.     <tr>
  82.      <td colspan="7" align="center" bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  83.      没有找到相应的记录
  84.      </td>
  85.     </tr>
  86.     </c:if>
  87.       </table>
  88.       <TABLE width="778" border=0 align=center cellPadding=0 cellSpacing=0 borderColor=#ffffff style="FONT-SIZE: 10pt">
  89.         <TBODY>
  90.           <TR>
  91.             <TD height=28 align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  92.             <!-- 可以在这里插入分页导航条 -->
  93. <pg:pager items="${pm.total }" url="user.do" export="currentPageNumber=pageNumber">
  94. <pg:first><a href="${pageUrl}">首页</a></pg:first>
  95. <pg:prev><a href="${pageUrl }">前页</a></pg:prev>
  96. <pg:pages>
  97. <c:choose>
  98. <c:when test="${ currentPageNumber eq pageNumber}">
  99. <font color="red">${pageNumber}</font>
  100. </c:when>
  101. <c:otherwise>
  102. <a href="${pageUrl }">${pageNumber }</a>
  103. </c:otherwise>
  104. </c:choose>
  105. </pg:pages>
  106. <pg:next><a href="${pageUrl }">下页</a></pg:next>
  107. <pg:last><a href="${pageUrl }">尾页</a></pg:last>
  108. </pg:pager>            
  109.      </TD>
  110.           </TR>
  111.         </TBODY>
  112.       </TABLE>
  113. </center>
  114. </body>
  115. </html>