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.             <% 
  40.             /**
  41.             * 在这里定义“添加”,“查询”等按钮
  42.             * <input type="image" name="find" value="find" src="images/cz.gif">
  43.             * &nbsp;&nbsp;&nbsp;&nbsp; 
  44.             * <a href="#" onClick="openWin('document.do?method=addInput','470')">
  45.             * <img src="images/addpic.gif" border=0 align=absMiddle style="CURSOR: hand"></a>
  46.             */
  47.             %>
  48.             <a href="#" onclick="openWin('person.do?method=addInput','addperson',600,200);">添加人员信息</a>
  49.             </TD>
  50.           </TR>
  51.           <TR>
  52.             <TD height=28 colspan="2" align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  53.             <!-- 可以在这里插入分页导航条 -->
  54.             </TD>
  55.           </TR>
  56.         </TBODY>
  57.       </TABLE>
  58.       <table width="778" border="0" cellPadding="0" cellSpacing="1" bgcolor="#6386d6">
  59.           <!-- 列表标题栏 -->
  60.       <tr bgcolor="#EFF3F7" class="TableBody1">
  61.       <td width="5%" height="37" align="center"><b>序号</b></td>
  62.       <td width="18%" height="37" align="center"><B>姓名</B></td>
  63.       <td width="18%" height="37" align="center"><b>性别</b></td>
  64.       <td width="18%" height="37" align="center"><b>职务</b></td>
  65.               <td width="18%" height="37" align="center"><b>电话</b></td>
  66.               <td width="18%" height="37" align="center"><b>所属机构</b></td>
  67.               <td width="5%" height="37" align="center"><b>操作</b></td>
  68.           </tr>
  69.           <!-- 列表数据栏 -->
  70.           <c:if test="${!empty pm.datas}">
  71.           <c:forEach items="${pm.datas }" var="person">
  72.       <tr bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  73.       <td align="center" vAlign="center">${person.id }</td>
  74.           <td align="center" vAlign="center">${person.name }</td>
  75.           <td align="center" vAlign="center">${person.sex }</td>
  76.           <td align="center" vAlign="center">${person.duty }</td>
  77.           <td align="center" vAlign="center">${person.phone }</td>
  78.           <td align="center" vAlign="center">${person.org.name }</td>
  79.           <td align="center" vAlign="center">
  80.   <c:if test="${my:hasPermission(login.id,'person',3) }">
  81.           <a href="#" onclick="del('person.do?method=del&id=${person.id }');">删除</a>
  82.   </c:if>
  83.           </td>
  84.         </tr>
  85.         </c:forEach>
  86. </c:if>
  87.         <!-- 在列表数据为空的时候,要显示的提示信息 -->
  88.     <c:if test="${empty pm.datas}">
  89.     <tr>
  90.      <td colspan="7" align="center" bgcolor="#EFF3F7" class="TableBody1" onmouseover="this.bgColor = '#DEE7FF';" onmouseout="this.bgColor='#EFF3F7';">
  91.      没有找到相应的记录
  92.      </td>
  93.     </tr>
  94.     </c:if>
  95.       </table>
  96.       <TABLE width="778" border=0 align=center cellPadding=0 cellSpacing=0 borderColor=#ffffff style="FONT-SIZE: 10pt">
  97.         <TBODY>
  98.           <TR>
  99.             <TD height=28 align=right vAlign=center noWrap background=images/list_middle.jpg>&nbsp;&nbsp;
  100.             <!-- 可以在这里插入分页导航条 -->
  101. <pg:pager items="${pm.total }" url="person.do" export="currentPageNumber=pageNumber">
  102. <pg:first><a href="${pageUrl}">首页</a></pg:first>
  103. <pg:prev><a href="${pageUrl }">前页</a></pg:prev>
  104. <pg:pages>
  105. <c:choose>
  106. <c:when test="${ currentPageNumber eq pageNumber}">
  107. <font color="red">${pageNumber}</font>
  108. </c:when>
  109. <c:otherwise>
  110. <a href="${pageUrl }">${pageNumber }</a>
  111. </c:otherwise>
  112. </c:choose>
  113. </pg:pages>
  114. <pg:next><a href="${pageUrl }">下页</a></pg:next>
  115. <pg:last><a href="${pageUrl }">尾页</a></pg:last>
  116. </pg:pager>            
  117.      </TD>
  118.           </TR>
  119.         </TBODY>
  120.       </TABLE>
  121. </center>
  122. </body>
  123. </html>