line.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. .style2 {color: #000000}
  19. .style3 {font-size: 14px}
  20. .style4 {font-family: "宋体"}
  21. -->
  22. </style>
  23. </head>
  24. <body bgcolor="#FFFFDF">
  25. <table width="59%" height="451" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  26. <form name="form2" id="form2" method="post" action=""> 
  27.  <tr>
  28.     <td height="21" colspan="4" align="center" background="../KCM/zs.gif" class="title style1" >在线信息</td>
  29.   </tr>
  30.   <tr>
  31.     <td height="27" colspan="3" align="center" class="style4 style3 style2 column"><strong> 在线列表 </strong></td>
  32.     <td width="198" rowspan="2" align="center">&nbsp;</td>
  33.   </tr>
  34.   <tr>
  35.     <td width="121" height="30" align="center" class="style4 style3 style2 column"><strong>员工序号</strong></td>
  36.     <td width="121" align="center" class="style4 style3 style2 column"><strong>员工姓名</strong></td>
  37.     <td width="138" align="center" class="style4 style3 style2 column"><strong>员工部门</strong></td>
  38.     </tr>
  39.   <tr>
  40.     <td colspan="3" rowspan="4" align="center">
  41. <textarea name="textarea" cols="50" rows="20" disabled>
  42. <% 
  43. int delid=0,temp=0;
  44. UserList list=UserList.getInstance();
  45. try{
  46. delid=Integer.parseInt((String)request.getParameter("delid"));
  47. }catch(Exception e){
  48. delid=-1;
  49. }
  50. if(delid!=-1){
  51. temp=list.removeUser(delid);
  52. if(temp>0){
  53. }
  54. }
  55. Vector  vector=list.getList();
  56. if(!vector.isEmpty()&&vector!=null){
  57. Enumeration em=vector.elements();
  58. while(em.hasMoreElements()){
  59. Eminfo emin=(Eminfo)em.nextElement();
  60. if(emin.getId()!=-1){
  61. out.print(emin.getId()+"            ");
  62. out.print(emin.getName()+"            ");
  63. out.print(emin.getDepartment()+"            ");
  64. }
  65. }
  66. }
  67. %> </textarea></td>
  68.     <td height="80" align="center" class="advise">删除在线人员</td>
  69.   </tr>
  70.   <tr>
  71.     <td height="80" align="center">
  72. <input type="submit" name="Submit2" value="删除" /> &nbsp;&nbsp;
  73. <input type="text" name="delid" /></td>
  74.   </tr>
  75. </form>
  76.   <tr>
  77. <form name="form2" id="form2" action=""> 
  78.     <td height="80" align="center"><input type="submit" name="Submit" value="刷新" /></td>
  79. </form>
  80.   </tr>
  81. </table>
  82. </body>
  83. </html>