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-family: "宋体";
  15. font-weight: bold;
  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="24" colspan="5" align="center" class=" style1" background="../KCM/zs.gif">职位修改</td>
  26.   </tr>
  27. <%
  28. Collection coll=(Collection)session.getAttribute("msg");
  29. if(coll==null){
  30. %>
  31.   <tr>
  32.     <td height="26" colspan="5" align="center" class="advise" >没有职位信息</td>
  33.   </tr>
  34.   <tr align="right">
  35. <td height="35" colspan="5"><span class="return" onclick="javascript:document.location='job.htm';">返回</span>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  36.   </tr>
  37. <%
  38. }else{
  39. %>
  40.   <tr>
  41.    
  42.     <td height="74" align="center">请选择要修改的职位名称:</td>
  43.     <td width="173" align="center"><select name="id" onchange="">
  44.       <%
  45. Iterator it=coll.iterator();
  46. while(it.hasNext()){
  47. Department dep=(Department)it.next();
  48. %>
  49.       <option value="<%= dep.getId() %>"><%= dep.getName() %></option>
  50.       <%
  51. }
  52. %>
  53.     </select></td>
  54.     <td width="102" align="center"><input type="submit" name="Submit" value="GO!" /></td>
  55.   
  56.   </tr>
  57. <% 
  58. String selmsg=(String)request.getAttribute("selmsg");
  59. if(selmsg!=null){
  60. %>
  61.   <tr>
  62.     <td height="18" colspan="5" align="center" class="advise">&nbsp;<%= selmsg %> </td>
  63. </tr>
  64. <%
  65. session.removeAttribute("selmsg");
  66. }
  67. %>
  68.  </form>
  69. <% 
  70. }
  71. Collection coll2=(Collection)request.getAttribute("msg2");
  72. if(coll2!=null){
  73. Iterator it2=coll2.iterator();
  74. while(it2.hasNext()){
  75. Department dep2=(Department)it2.next();
  76. %>
  77. <form name="form1" id="form1" method="post" action="change" onsubmit="return dep()">
  78.  <tr>
  79.     <td width="205" height="34" align="center">职位名称:</td>
  80.     <td height="34" colspan="2" align="center"><input name="name" type="text" size="22" maxlength="40"  value="<%= dep2.getName() %>"/></td>
  81.  </tr>
  82.   <tr>
  83.     <td height="80" align="center">职位描述:</td>
  84.     <td height="80" colspan="2" align="center"><textarea name="explain" rows="5"><%= dep2.getExplain() %></textarea></td>
  85.     </tr>
  86.   <tr>
  87.     <td height="55" colspan="3" align="center">
  88. <input type="hidden" name="id" value="<%= dep2.getId() %>">
  89.     <input type="submit" name="Submit2" value="修改" />
  90.   &nbsp;&nbsp;&nbsp;
  91.       <input type="button" name="Submit2" value="返回" onclick="javascript:history.back(-1);"/></td>
  92.    </td>
  93.     </tr>
  94. <% 
  95. }
  96. }
  97. request.removeAttribute("msg2");
  98. %>
  99.  </form>
  100. </table>
  101. </body>
  102. </html>