- <%@ 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;
- }
- -->
- </style>
- </head>
- <body bgcolor="#FFFFDF">
- <table width="550" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <form name="form" id="form" method="post" action="select">
- <tr>
- <td height="22" colspan="5" align="center" background="../KCM/zs.gif" class="title style1">员工状态修改</td>
- </tr>
- <%
- Collection coll=(Collection)session.getAttribute("msg");
- if(coll==null){
- %>
- <tr>
- <td height="27" colspan="5" align="center" class="advise" >没有员工状态信息</td>
- </tr>
- <tr align="right" bgcolor="#FFFFDF">
- <td height="34" colspan="5"><span class="return" onclick="javascript:history.go(-1);">返回</span> </td>
- </tr>
- <%
- }else{
- %>
- <tr>
- <td height="50" align="center">请选择要修改的员工状态名称:</td>
- <td width="185" align="center"><select name="id" onchange="">
- <%
- Iterator it=coll.iterator();
- while(it.hasNext()){
- Department dep=(Department)it.next();
- %>
- <option value="<%= dep.getId() %>"><%= dep.getName() %></option>
- <%
- }
- %>
- </select></td>
- <td width="76" align="center"><input type="submit" name="Submit" value="GO!" /></td>
- </tr>
- <%
- String selmsg=(String)request.getAttribute("selmsg");
- if(selmsg!=null){
- %>
- <tr>
- <td height="25" colspan="5" align="center" class="advise"> <%= selmsg %> </td>
- </tr>
- <%
- session.removeAttribute("selmsg");
- }
- %>
- </form>
- <%
- }
- Collection coll2=(Collection)request.getAttribute("msg2");
- if(coll2!=null){
- Iterator it2=coll2.iterator();
- while(it2.hasNext()){
- Department dep2=(Department)it2.next();
- %>
- <form name="form1" id="form1" method="post" action="change" onsubmit="return dep()">
- <tr>
- <td width="219" height="49" align="center">员工状态名称:</td>
- <td colspan="2" align="center"><input name="name" type="text" size="22" maxlength="40" value="<%= dep2.getName() %>"/></td>
- </tr>
- <tr>
- <td align="center">员工状态描述:</td>
- <td colspan="2" align="center"><textarea name="explain" rows="5"><%= dep2.getExplain() %></textarea></td>
- </tr>
- <tr>
- <td colspan="3" align="center">
- <input type="hidden" name="id" value="<%= dep2.getId() %>">
- <input type="submit" name="Submit2" value="修改" />
-
- <input type="button" name="Submit2" value="返回" onclick="javascript:history.go(-1);"/></td>
- </tr>
- <%
- }
- }
- request.removeAttribute("msg2");
- %>
- </form>
- </table>
- </body>
- </html>