archive_study_add.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:6k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.util.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "cn.js.fan.web.*"%>
  6. <%@ page import = "com.redmoon.oa.archive.*"%>
  7. <%@ page import = "com.redmoon.oa.person.*"%>
  8. <%@ page import = "com.redmoon.oa.BasicDataMgr"%>
  9. <html xmlns="http://www.w3.org/1999/xhtml">
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  12. <title>人事档案管理</title>
  13. <link href="../common.css" rel="stylesheet" type="text/css">
  14. <style type="text/css">
  15. <!--
  16. .style2 {font-size: 14px}
  17. -->
  18. </style>
  19. <script language="JavaScript" type="text/JavaScript">
  20. <!--
  21. function findObj(theObj, theDoc)
  22. {
  23.   var p, i, foundObj;
  24.   
  25.   if(!theDoc) theDoc = document;
  26.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  27.   {
  28.     theDoc = parent.frames[theObj.substring(p+1)].document;
  29.     theObj = theObj.substring(0,p);
  30.   }
  31.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  32.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  33.     foundObj = theDoc.forms[i][theObj];
  34.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  35.     foundObj = findObj(theObj,theDoc.layers[i].document);
  36.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  37.   
  38.   return foundObj;
  39. }
  40. var GetDate=""; 
  41. function SelectDate(ObjName,FormatDate){
  42. var PostAtt = new Array;
  43. PostAtt[0]= FormatDate;
  44. PostAtt[1]= findObj(ObjName);
  45. GetDate = showModalDialog("../util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:221px;status:no;help:no;");
  46. }
  47. function SetDate()
  48. findObj(ObjName).value = GetDate; 
  49. }
  50. function setPerson(deptCode, deptName, user, userRealName)
  51. {
  52. form1.userName.value = user;
  53. form1.userRealName.value = userRealName;
  54. }
  55. function selIsMostGrade()
  56. if(form1.isCMostGrade.checked){
  57. form1.isMostGrade.value = "1";
  58. }else{
  59. form1.isMostGrade.value = "0";
  60. }
  61. }
  62. //-->
  63. </script>
  64. </head>
  65. <body>
  66. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  67. <jsp:useBean id="archivePrivilege" scope="page" class="com.redmoon.oa.archive.ArchivePrivilege"/>
  68. <%  
  69. String userName = ParamUtil.get(request,"userName");
  70. if (!privilege.isUserPrivValid(request, "archive.study")||!archivePrivilege.canAdminUser(request,userName)) {
  71. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  72. return;
  73. }
  74. %>
  75. <%@ include file="archive_inc_menu_top.jsp"%>
  76. <%
  77. UserInfoDb uid = new UserInfoDb();
  78. uid = uid.getUserInfoDb(userName);
  79. String userRealName = uid.getUserRealName();
  80. BasicDataMgr bdm = new BasicDataMgr("archive");
  81. String options = "";
  82. %>
  83. <br>
  84. <table width="90%" border="0" align="center" cellPadding="2" cellSpacing="1" bgcolor="#FFFFFF" class="tableframe">
  85.   <form name="form1" action="archive_study_do.jsp?op=add" method="post">
  86.     <tbody>
  87.   <tr>
  88. <td colspan="3" class="right-title">添加教育信息</td>
  89.   </tr>
  90.       <tr>
  91.         <td width="80" noWrap>用&nbsp;&nbsp;户&nbsp;&nbsp;名:</td>
  92.         <td colSpan="2"><input maxLength="100" name="userRealName" size="20" readonly value="<%=userRealName%>"><input name="userName" type="hidden" value="<%=userName%>">
  93.           <input type="hidden" name="isMostGrade" value="0">
  94.           <input type="checkbox" name="isCMostGrade" onClick="selIsMostGrade()">
  95.         是否是最高学历</td>
  96.       </tr>
  97.       <tr>
  98.         <td noWrap>学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;历:</td>
  99.         <td colSpan="2">
  100.   <%options = bdm.getOptionsStr("grade");%>
  101.   <select name="grade">
  102.   <%=options%>
  103.           </select>
  104.   </td>
  105.       </tr>
  106.       <tr>
  107.         <td noWrap>毕业院校:</td>
  108.         <td colSpan="2"><input maxLength="100" name="college" size="20"></td>
  109.       </tr>
  110.       <tr>
  111.         <td noWrap>院校简称:</td>
  112.         <td colSpan="2"><input maxLength="100" name="sCollege" size="20"></td>
  113.       </tr>
  114.       <tr>
  115.         <td noWrap>专&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;业:</td>
  116.         <td colSpan="2"><input maxLength="100" name="specialty" size="20"></td>
  117.       </tr>
  118.       <tr>
  119.         <td noWrap>专业简称:</td>
  120.         <td colSpan="2"><input maxLength="100" name="sSpecialty" size="20"></td>  
  121.       </tr>
  122.       <tr>
  123.         <td noWrap>是否在职:</td>
  124.         <td colSpan="2"><select name="isJob">
  125. <option value="否">否</option>
  126. <option value="是" selected>是</option>
  127.         </select></td>
  128.       </tr>
  129.       <tr>
  130.         <td noWrap>开始时间:</td>
  131.         <td colSpan="2"><input maxLength="100" name="beginDate" size="20" readonly><img style="CURSOR: hand" onClick="SelectDate('beginDate', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  132.           日期格式形如 1999-1-2</td>
  133.       </tr>
  134.       <tr>
  135.         <td noWrap>结束时间:</td>
  136.         <td colSpan="2"><input maxLength="100" name="endDate" size="20" readonly><img style="CURSOR: hand" onClick="SelectDate('endDate', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  137.           日期格式形如 1999-1-2</td>
  138.       </tr>
  139.       <tr>
  140.         <td noWrap>学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位:</td>
  141.         <td colSpan="2">
  142. <%options = bdm.getOptionsStr("degree");%>
  143.  <select name="degree">
  144. <%=options%>
  145.         </select></td>
  146.       </tr>
  147.       <tr>
  148.         <td noWrap>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</td>
  149.         <td colSpan="2"><textarea name="remark" cols="45" rows="3" wrap="yes" class="BigINPUT" id="remark"></textarea></td>
  150.       </tr>
  151.       <tr>
  152.         <td noWrap align="middle" colSpan="3"><input value="保存" type="submit">&nbsp;&nbsp; 
  153.           <input type="reset" value="重填">&nbsp;&nbsp;</td>
  154.       </tr>
  155.     </tbody>
  156.   </FORM>
  157. </table>
  158. </body>
  159. </html>