add.jsp
上传用户:sxwtmm
上传日期:2022-08-11
资源大小:2183k
文件大小:4k
源码类别:

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-family: "宋体";
  15. font-size: 16px;
  16. font-weight: bold;
  17. }
  18. -->
  19. </style>
  20. </head>
  21. <body bgcolor="#FFFFDF">
  22. <table width="780" height="466" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  23. <form name="form1" id="form1" method="post" action="save" onsubmit="return add()">
  24. <%
  25. Collection colld=(Collection)session.getAttribute("msgd");
  26. Collection collj=(Collection)session.getAttribute("msgj");
  27. Collection colle=(Collection)session.getAttribute("msge");
  28. if(colld==null){
  29. out.print("colld");
  30. }else if(collj==null){
  31. out.print("colld");
  32. }else if(colld==null){
  33. out.print("colld");
  34. }else{
  35. %>
  36.   <tr >
  37.     <td height="19" colspan="4" align="center" class="title style1" background="../KCM/zs.gif">员工信息增加</td>
  38.   </tr>
  39.   <tr>
  40.     <td width="328" height="27" align="center"> 姓&nbsp;&nbsp;&nbsp;&nbsp;名:</td>
  41.     <td width="450" align="left"><input name="name" type="text" maxlength="40" /></td>
  42.   </tr>
  43.   <tr>
  44.     <td height="27" align="center">性&nbsp;&nbsp;&nbsp;&nbsp;别:</td>
  45.     <td height="27" align="left">
  46.       <input name="sex" type="radio" value="1" checked />
  47.   男
  48.       <input type="radio" name="sex" value="0" />
  49.   女    </td>
  50.   </tr>
  51.   <tr>
  52.     <td height="27" align="center"> 出生日期:</td>
  53.     <td height="27" align="left"><input name="birthday" type="text" maxlength="11" />
  54.       年-月-日</td>
  55.   </tr>
  56.   <tr>
  57.     <td height="27" align="center">学&nbsp;&nbsp;&nbsp;&nbsp;历: </td>
  58.     <td height="27" align="left"><input name="learn" type="text" size="20" maxlength="20" /></td>
  59.   </tr>
  60.   <tr>
  61.     <td height="27" align="center"> 职&nbsp;&nbsp;&nbsp;&nbsp;称: </td>
  62.     <td height="27" align="left"><input name="post" type="text" size="20" maxlength="20" /></td>
  63.   </tr>
  64.   <tr>
  65.     <td height="27" align="center"> 部&nbsp;&nbsp;&nbsp;&nbsp;门: </td>
  66.     <td height="27" align="left"><select name="depid">
  67. <%
  68. Iterator itd=colld.iterator();
  69. while(itd.hasNext()){
  70. Department dep=(Department)itd.next();
  71. %>
  72.       <option value="<%= dep.getId() %>"><%= dep.getName() %></option>
  73. <%
  74. }
  75. %>
  76.     </select></td>
  77.   </tr>
  78.   <tr>
  79.     <td height="27" align="center"> 职&nbsp;&nbsp;&nbsp;&nbsp;位: </td>
  80.     <td height="27" align="left"><select name="jobid">
  81. <%
  82. Iterator itj=collj.iterator();
  83. while(itj.hasNext()){
  84. Job dep=(Job)itj.next();
  85. %>
  86.       <option value="<%= dep.getId() %>"><%= dep.getName() %></option>
  87. <%
  88. }
  89. %>
  90.     </select></td>
  91.   </tr>
  92.   <tr>
  93.     <td height="27" align="center"> 电&nbsp;&nbsp;&nbsp;&nbsp;话: </td>
  94.     <td height="27" align="left"><input name="tel" type="text" maxlength="40" /></td>
  95.   </tr>
  96.   <tr>
  97.     <td height="27" align="center"> 具体地址: </td>
  98.     <td height="27" align="left"><input name="addr" type="text" size="50" maxlength="200" /></td>
  99.   </tr>
  100.   <tr>
  101.     <td height="27" align="center"> 员工状态: </td>
  102.     <td align="left"><select name="emsid">
  103. <%
  104. Iterator ite=colle.iterator();
  105. while(ite.hasNext()){
  106. Emstate dep=(Emstate)ite.next();
  107. %>
  108.       <option value="<%= dep.getId() %>"><%= dep.getName() %></option>
  109. <%
  110. }
  111. %>
  112.     </select></td>
  113.   </tr>
  114.   <tr>
  115. <td height="40" colspan="2" align="center" class="advise">
  116. <% 
  117. String msg=(String)request.getAttribute("msg");
  118. if(msg!=null){
  119. out.print(msg);
  120. request.removeAttribute("msg");
  121. }
  122. %>
  123. &nbsp;</td>
  124.     </tr>
  125.   <tr>
  126.     <td height="40" colspan="2" align="center"><input type="submit" name="Submit" value="添加" />
  127. &nbsp;&nbsp;
  128. <input type="reset" name="Submit2" value="重置" />
  129. &nbsp;&nbsp;
  130. <input type="button" name="Submit22" value="返回" onclick="javascript:history.back(-1);"/></td>
  131.   </tr>
  132. <%
  133. }
  134. %>
  135. </form>
  136. </table>
  137. </body>
  138. </html>