del.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/style.css" rel="stylesheet" type="text/css" />
  9. <script src="../js/oa.js"></script>
  10. <style type="text/css">
  11. <!--
  12. .style1 {
  13. font-size: 16px;
  14. font-weight: bold;
  15. }
  16. .style2 {
  17. color: #005EBB;
  18. font-weight: bold;
  19. }
  20. .style3 {color: #CA0000}
  21. .style4 {
  22. color: #FF0000;
  23. font-weight: bold;
  24. }
  25. -->
  26. </style>
  27. </head>
  28. <body  bgcolor="#FFFFDF">
  29. <table width="49%" height="25" align="center" cellpadding="0" cellspacing="0">
  30.   <tr>
  31.     <td width="73%" height="23" colspan="6" align="center" background="../KCM/zs.gif" class="style1 advise"><strong>删除<strong>部门</strong></strong></td>
  32.   </tr>
  33. </table>
  34. <table width="49%" height="185" align="center" cellpadding="0" cellspacing="0">
  35. <form name="form" id="form" method="post" action="del">
  36. <%
  37. Collection coll=(Collection)session.getAttribute("msg");
  38. if(coll==null){
  39. %>
  40.   <tr> 
  41.     <td height="13" colspan="3" align="center" bgcolor="#FFFFFF" class="advise style2" >没有部门信息</td>
  42.   </tr>
  43. <%
  44. }else{
  45. %>
  46.   <tr>
  47.     <td height="20" colspan="2" bgcolor="#FFFFFF" class="advise style3" ><div align="center" class="style4">注意:请首先删除属于此部门的所有员工信息</div></td>
  48.     </tr>
  49.   <tr>
  50.     <td width="318" height="22" align="center" bgcolor="#FFFFFF">请选择要删除的部门名称:</td>
  51.     <td width="174" height="22" align="center" bgcolor="#FFFFFF">
  52.         <div align="left">
  53.             <select name="id" >
  54.               <%
  55. Iterator it=coll.iterator();
  56. while(it.hasNext()){
  57. Department dep=(Department)it.next();
  58. %>
  59.               <option value="<%= dep.getId() %>"><%= dep.getName() %></option>
  60.               <%
  61. }
  62. %>
  63.             </select>
  64.         </div></td>
  65.     <tr>
  66.     <td height="20" colspan="3" align="center" bgcolor="#FFFFFF" class="advise"><input type="submit" name="Submit" value="删除" />
  67.       &nbsp;&nbsp;&nbsp;&nbsp;
  68.       <input type="button" name="Submit2" value="查看" onclick="javascript:document.location='../department/view?flag=view';"/></td>
  69.   </tr>
  70.   <tr>
  71. <% 
  72. String delmsg=(String)request.getAttribute("delmsg");
  73. if(delmsg!=null){
  74. %>
  75.     <td height="21" colspan="3" align="center" class="advise">&nbsp;<%= delmsg %></td>
  76. <%
  77. session.removeAttribute("msg");
  78. }
  79. }
  80. %>
  81. </tr>
  82.  </form>
  83. </table>
  84. </body>
  85. </html>