change.jsp
上传用户:sxwtmm
上传日期:2022-08-11
资源大小:2183k
文件大小:3k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
  2. <%@ include file="../hear/hear.jsp"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  7. <title>员工状态修改</title>
  8. <link href="../css/work.css" rel="stylesheet" type="text/css" />
  9. <script src="../js/oa.js"></script>
  10. <style type="text/css">
  11. <!--
  12. .style1 {
  13. color: #000000;
  14. font-weight: bold;
  15. font-family: "宋体";
  16. font-size: 16px;
  17. }
  18. -->
  19. </style>
  20. </head>
  21. <body bgcolor="#FFFFDF">
  22. <table width="550" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  23. <form name="form" id="form" method="post" action="select">
  24.   <tr>
  25.     <td height="22" colspan="5" align="center" background="../KCM/zs.gif" class="title style1">员工状态修改</td>
  26.   </tr>
  27. <%
  28. Collection coll=(Collection)session.getAttribute("msg");
  29. if(coll==null){
  30. %>
  31.   <tr>
  32.     <td height="27" colspan="5" align="center" class="advise" >没有员工状态信息</td>
  33.   </tr>
  34.   <tr align="right" bgcolor="#FFFFDF">
  35. <td height="34" colspan="5"><span class="return" onclick="javascript:history.go(-1);">返回</span>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  36.   </tr>
  37. <%
  38. }else{
  39. %>
  40.   <tr>
  41.     <td height="50" align="center">请选择要修改的员工状态名称:</td>
  42.     <td width="185" align="center"><select name="id" onchange="">
  43.       <%
  44. Iterator it=coll.iterator();
  45. while(it.hasNext()){
  46. Department dep=(Department)it.next();
  47. %>
  48.       <option value="<%= dep.getId() %>"><%= dep.getName() %></option>
  49.       <%
  50. }
  51. %>
  52.     </select></td>
  53.     <td width="76" align="center"><input type="submit" name="Submit" value="GO!" /></td>
  54.     
  55.   </tr>
  56. <% 
  57. String selmsg=(String)request.getAttribute("selmsg");
  58. if(selmsg!=null){
  59. %>
  60.   <tr>
  61.     <td height="25" colspan="5" align="center" class="advise">&nbsp;<%= selmsg %> </td>
  62. </tr>
  63. <%
  64. session.removeAttribute("selmsg");
  65. }
  66. %>
  67.  </form>
  68. <% 
  69. }
  70. Collection coll2=(Collection)request.getAttribute("msg2");
  71. if(coll2!=null){
  72. Iterator it2=coll2.iterator();
  73. while(it2.hasNext()){
  74. Department dep2=(Department)it2.next();
  75. %>
  76. <form name="form1" id="form1" method="post" action="change" onsubmit="return dep()">
  77.  <tr>
  78.     <td width="219" height="49" align="center">员工状态名称:</td>
  79.     <td colspan="2" align="center"><input name="name" type="text" size="22" maxlength="40"  value="<%= dep2.getName() %>"/></td>
  80.  </tr>
  81.   <tr>
  82.     <td align="center">员工状态描述:</td>
  83.     <td colspan="2" align="center"><textarea name="explain" rows="5"><%= dep2.getExplain() %></textarea></td>
  84.     </tr>
  85.   <tr>
  86.     <td colspan="3" align="center">
  87. <input type="hidden" name="id" value="<%= dep2.getId() %>">
  88.     <input type="submit" name="Submit2" value="修改" />
  89.     &nbsp;&nbsp;&nbsp;&nbsp;
  90.     <input type="button" name="Submit2" value="返回" onclick="javascript:history.go(-1);"/></td>
  91.     </tr>
  92. <% 
  93. }
  94. }
  95. request.removeAttribute("msg2");
  96. %>
  97.  </form>
  98. </table>
  99. </body>
  100. </html>