line.jsp
上传用户:sxwtmm
上传日期:2022-08-11
资源大小:2183k
文件大小:3k
- <%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
- <%@ include file="../hear/hear.jsp" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>部门查看</title>
- <link href="../css/work.css" rel="stylesheet" type="text/css" />
- <script src="../js/oa.js"></script>
- <style type="text/css">
- <!--
- .style1 {
- color: #000000;
- font-weight: bold;
- font-family: "宋体";
- font-size: 16px;
- }
- .style2 {color: #000000}
- .style3 {font-size: 14px}
- .style4 {font-family: "宋体"}
- -->
- </style>
- </head>
- <body bgcolor="#FFFFDF">
- <table width="59%" height="451" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <form name="form2" id="form2" method="post" action="">
- <tr>
- <td height="21" colspan="4" align="center" background="../KCM/zs.gif" class="title style1" >在线信息</td>
- </tr>
- <tr>
- <td height="27" colspan="3" align="center" class="style4 style3 style2 column"><strong> 在线列表 </strong></td>
- <td width="198" rowspan="2" align="center"> </td>
- </tr>
- <tr>
- <td width="121" height="30" align="center" class="style4 style3 style2 column"><strong>员工序号</strong></td>
- <td width="121" align="center" class="style4 style3 style2 column"><strong>员工姓名</strong></td>
- <td width="138" align="center" class="style4 style3 style2 column"><strong>员工部门</strong></td>
- </tr>
- <tr>
- <td colspan="3" rowspan="4" align="center">
- <textarea name="textarea" cols="50" rows="20" disabled>
- <%
- int delid=0,temp=0;
- UserList list=UserList.getInstance();
- try{
- delid=Integer.parseInt((String)request.getParameter("delid"));
- }catch(Exception e){
- delid=-1;
- }
- if(delid!=-1){
- temp=list.removeUser(delid);
- if(temp>0){
- }
- }
- Vector vector=list.getList();
- if(!vector.isEmpty()&&vector!=null){
- Enumeration em=vector.elements();
- while(em.hasMoreElements()){
- Eminfo emin=(Eminfo)em.nextElement();
- if(emin.getId()!=-1){
- out.print(emin.getId()+" ");
- out.print(emin.getName()+" ");
- out.print(emin.getDepartment()+" ");
- }
- }
- }
- %> </textarea></td>
- <td height="80" align="center" class="advise">删除在线人员</td>
- </tr>
- <tr>
- <td height="80" align="center">
- <input type="submit" name="Submit2" value="删除" />
- <input type="text" name="delid" /></td>
- </tr>
- </form>
- <tr>
- <form name="form2" id="form2" action="">
- <td height="80" align="center"><input type="submit" name="Submit" value="刷新" /></td>
- </form>
- </tr>
- </table>
- </body>
- </html>