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

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="49%" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  23. <form name="form" id="form" method="post" action="del">
  24.   <tr>
  25.     <td height="24" 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="35" colspan="4" align="center" class="advise" >没有员工状态信息</td>
  33.   </tr>
  34.   <tr align="right" bgcolor="#FFFFDF">
  35. <td height="21" colspan="5"><span class="return" onclick="javascript:document.history.go(-1);"><img src="../image/more.gif" width="30" height="9" />返回</span>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  36.   </tr>
  37. <%
  38. }else{
  39. %>
  40.   <tr>
  41.     <td height="28" colspan="2"><div align="center"><span class="advise">注意:请首先删除属于此员工状态的所有员工信息</span>
  42.     </div>
  43.     <td width="164">
  44.   <tr>
  45.     <td width="351" height="28" align="center">请选择要删除的员工状态名称:</td>
  46.     <td width="263" align="center"><select name="id" >
  47.       <%
  48. Iterator it=coll.iterator();
  49. while(it.hasNext()){
  50. Department dep=(Department)it.next();
  51. %>
  52.       <option value="<%= dep.getId() %>"><%= dep.getName() %></option>
  53.       <%
  54. }
  55. %>
  56.     </select></td>
  57.   <tr>
  58.     <td height="50" colspan="4" align="center" class="advise"><input type="submit" name="Submit" value="删除" />
  59.       &nbsp;&nbsp;&nbsp;&nbsp;
  60.       <input type="button" name="Submit2" value="返回" onclick="javascript:history.back(-1);"/></td>
  61.   </tr>
  62.   <tr>
  63. <% 
  64. String delmsg=(String)request.getAttribute("delmsg");
  65. if(delmsg!=null){
  66. %>
  67.     <td colspan="4" align="center" class="advise">&nbsp;<%= delmsg %></td>
  68. <%
  69. session.removeAttribute("msg");
  70. }
  71. }
  72. %>
  73. </tr>
  74.  </form>
  75. </table>
  76. </body>
  77. </html>