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

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. //-->
  56. </script>
  57. </head>
  58. <body>
  59. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  60. <jsp:useBean id="archivePrivilege" scope="page" class="com.redmoon.oa.archive.ArchivePrivilege"/>
  61. <%
  62. String userName = ParamUtil.get(request,"userName");
  63. if (!privilege.isUserPrivValid(request, "archive.family")||!archivePrivilege.canAdminUser(request,userName)) {
  64. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  65. return;
  66. }
  67. %>
  68. <%@ include file="archive_inc_menu_top.jsp"%>
  69. <%
  70. UserInfoDb uid = new UserInfoDb();
  71. uid = uid.getUserInfoDb(userName);
  72. String userRealName = uid.getUserRealName();
  73. BasicDataMgr bdm = new BasicDataMgr("archive");
  74. String options = "";
  75. %>
  76. <br>
  77. <table width="90%" border="0" align="center" cellPadding="2" cellSpacing="1" bgcolor="#FFFFFF" class="tableframe">
  78.   <form name="form1" action="archive_family_do.jsp?op=add" method="post">
  79.     <tbody>
  80.   <tr>
  81. <td colspan="3" class="right-title">添加家庭信息</td>
  82.   </tr>
  83.       <tr>
  84.         <td width="80" noWrap>用&nbsp;&nbsp;户&nbsp;&nbsp;名:</td>
  85.         <td colSpan="2"><input maxLength="100" name="userRealName" size="20" readonly value="<%=userRealName%>"><input name="userName" type="hidden" value="<%=userName%>"></td>
  86.       </tr>
  87.       <tr>
  88.         <td noWrap>称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;谓:</td>
  89.         <td colSpan="2">
  90.   <%options = bdm.getOptionsStr("appellation");%>
  91.   <select name="appellation">
  92.   <%=options%>
  93.           </select>
  94. </td>
  95.       </tr>
  96.       <tr>
  97.         <td noWrap>成员姓名:</td>
  98.         <td colSpan="2"><input maxLength="100" name="name" size="20"></td>
  99.       </tr>
  100.       <tr>
  101.         <td noWrap>出生日期:</td>
  102.         <td colSpan="2"><input maxLength="100" name="birthday" size="20"><img style="CURSOR: hand" onClick="SelectDate('birthday', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  103.           日期格式形如 1999-1-2</td>
  104.       </tr>
  105.       <tr>
  106.         <td noWrap>政治面貌:</td>
  107.         <td colSpan="2">
  108. <%options = bdm.getOptionsStr("polity");%>
  109. <select name="politic">
  110. <%=options%>
  111.         </select>
  112. </td>
  113.       </tr>
  114.       <tr>
  115.         <td noWrap>工作单位:</td>
  116.         <td colSpan="2"><input maxLength="100" name="unit" size="20"></td>  
  117.       </tr>
  118.       <tr>
  119.         <td noWrap>联系地址:</td>
  120.         <td colSpan="2"><input maxLength="100" name="address" size="20"></td>
  121.       </tr>
  122.       <tr>
  123.         <td noWrap>联系电话:</td>
  124.         <td colSpan="2"><input maxLength="100" name="phone" size="20"></td>
  125.       </tr>
  126.       <tr>
  127.         <td noWrap>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</td>
  128.         <td colSpan="2"><textarea name="remark" cols="45" rows="3" wrap="yes" class="BigINPUT" id="remark"></textarea></td>
  129.       </tr>
  130.       <tr>
  131.         <td noWrap align="middle" colSpan="3"><input value="保存" type="submit">&nbsp;&nbsp; 
  132.           <input type="reset" value="重填">&nbsp;&nbsp;</td>
  133.       </tr>
  134.     </tbody>
  135.   </FORM>
  136. </table>
  137. </body>
  138. </html>