view.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/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 {color: #CA0000}
  17. .style3 {
  18. color: #005AB5;
  19. font-weight: bold;
  20. }
  21. -->
  22. </style>
  23. </head>
  24. <body bgcolor="#FFFFDF">
  25. <table width="59%" height="25" align="center" cellpadding="0" cellspacing="0">
  26.   <tr>
  27.  
  28.     <td width="74%" height="23" colspan="6" align="center" background="../KCM/zs.gif" class="style1 advise"><strong>查看部门</strong></td>
  29.   </tr>
  30. </table>
  31. <table width="59%" height="103" align="center" cellpadding="0" cellspacing="0">
  32.   <tr align="center" class="column">
  33.     <td width="112" height="17" bgcolor="#FFFFFF"><div align="right"><span class="style2">部门序号</span></div></td>
  34.     <td width="225" height="17" bgcolor="#FFFFFF"><span class="style2">部门名称</span></td>
  35.     <td width="155" height="17" bgcolor="#FFFFFF"><div align="left" class="style2">
  36.       <div align="center">大概工作描述</div>
  37.     </div></td>
  38.   </tr>
  39.   <%
  40. Collection coll=(Collection)request.getAttribute("msg");
  41. if(coll==null){
  42. %>
  43.   <tr align="center">
  44.     <td height="17" colspan="4" bgcolor="#FFFFFF" class="advise style3">没有添加部门</td>
  45.   </tr>
  46.   <%
  47. }else{
  48. Iterator it=coll.iterator();
  49. while(it.hasNext()){
  50. Department dep=(Department)it.next();
  51. %>
  52.   <tr align="center">
  53.     <td height="22" bgcolor="#FFFFFF"><div align="right"><%= dep.getId() %></div></td>
  54.     <td height="22" bgcolor="#FFFFFF"><%= dep.getName() %></td>
  55.     <td height="22" align="left" bgcolor="#FFFFFF"><%= dep.getExplain() %></td>
  56.   </tr>
  57.   <%
  58. }
  59. }
  60. request.removeAttribute("msg");
  61. %>
  62. </table>
  63. </body>
  64. </html>