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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ page import="com.redmoon.oa.archive.*" %>
  3. <%@ page import="cn.js.fan.util.*" %>
  4. <%@ page import="cn.js.fan.web.*" %>
  5. <%@ page import="java.util.*" %>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <link rel="stylesheet" type="text/css" href="../common.css">
  11. <link rel="stylesheet" type="text/css" href="../css.css">
  12. <title>查看用户档案</title>
  13. <script>
  14. function findObj(theObj, theDoc)
  15. {
  16.   var p, i, foundObj;
  17.   
  18.   if(!theDoc) theDoc = document;
  19.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  20.   {
  21.     theDoc = parent.frames[theObj.substring(p+1)].document;
  22.     theObj = theObj.substring(0,p);
  23.   }
  24.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  25.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  26.     foundObj = theDoc.forms[i][theObj];
  27.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  28.     foundObj = findObj(theObj,theDoc.layers[i].document);
  29.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  30.   
  31.   return foundObj;
  32. }
  33. </script>
  34. </head>
  35. <body style="background-image:url()">
  36. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  37. <%
  38. String priv = "archive";
  39. if (!privilege.isUserPrivValid(request, priv)) {
  40. out.println(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, "pvg_invalid")));
  41. return;
  42. }
  43. String name = ParamUtil.get(request, "name");
  44. if (name.equals("")) {
  45. out.print(StrUtil.Alert("用户名不能为空!"));
  46. return;
  47. }
  48. UserArchiveDb uad = new UserArchiveDb();
  49. uad = uad.getUserArchiveDb(name);
  50. %>
  51. <table width="90%" border="0" align="center" cellPadding="2" cellSpacing="1" class="main">
  52.   <form name="form1" action="?op=modify&name=<%=StrUtil.UrlEncode(name)%>" method="post" encType="multipart/form-data">
  53.     <tbody>
  54.       <tr>
  55.         <td noWrap colSpan="3" class="right-title"><b>&nbsp;<%=name%>的基本信息</b></td>
  56.       </tr>
  57.       <tr>
  58.         <td noWrap width="96">编号:</td>
  59.         <td width="496"><%=uad.getId()%></td>
  60.         <td width="160" rowSpan="6"><center>
  61. <%if (uad.getPhoto()==null || uad.getPhoto().equals("")) {%>
  62. 暂无照片
  63. <%}else{%>
  64. <img src="../<%=uad.getPhoto()%>">
  65. <%}%>
  66. </center> </td>
  67.       </tr>
  68.       <tr>
  69.         <td noWrap>姓名:</td>
  70.         <td><%=uad.getRealName()%></td>
  71.       </tr>
  72.       <tr>
  73.         <td noWrap>性别:</td>
  74.         <td>
  75.   <%=uad.getGender()==0?"女":"男"%></td>
  76.       </tr>
  77.       <tr>
  78.         <td noWrap>出生日期:</td>
  79.         <td noWrap><%=uad.getBirthday()==null?"":DateUtil.format(uad.getBirthday(), "yyyy-MM-dd")%></td>
  80.       </tr>
  81.       <tr>
  82.         <td noWrap>民族:</td>
  83.         <td><%=uad.getNation()%></td>
  84.       </tr>
  85.       <tr>
  86.         <td noWrap>身份证号码:</td>
  87.         <td><%=uad.getIDCard()%></td>
  88.       </tr>
  89.       <tr>
  90.         <td noWrap>婚姻状况:</td>
  91.         <td colSpan="2"><%
  92.   if (uad.getMarriage()==0)
  93.    out.print("未婚");
  94.   else if (uad.getMarriage()==1)
  95.    out.print("已婚");
  96.   else
  97.    out.print("离婚");
  98.   %>   </td>
  99.       </tr>
  100.       <tr>
  101.         <td noWrap>籍贯:</td>
  102.         <td colSpan="2"><%=uad.getJiGuan()%></td>
  103.       </tr>
  104.       <tr>
  105.         <td noWrap>户口所在地:</td>
  106.         <td colSpan="2"><%=uad.getHukouAddress()%></td>
  107.       </tr>
  108.       <tr>
  109.         <td noWrap>学历:</td>
  110.         <td colSpan="2"><select name="xueLi">
  111.             <option value="1">小学</option>
  112.             <option value="2">初中</option>
  113.             <option value="3">高中</option>
  114.             <option value="4">中专</option>
  115.             <option value="5">大专</option>
  116.             <option value="6">大本</option>
  117.             <option value="7">硕士</option>
  118.             <option value="8">博士</option>
  119.             <option value="9">博士后</option>
  120.           </select>
  121.   <script>
  122.   form1.xueLi.value = "<%=uad.getXueLi()%>";
  123.   if (form1.xueLi.value=="")
  124.    form1.xueLi.value = "6";
  125.   </script>   </td>
  126.       </tr>
  127.       <tr>
  128.         <td noWrap>专业:</td>
  129.         <td colSpan="2"><%=uad.getZhuanYe()%></td>
  130.       </tr>
  131.       <tr>
  132.         <td noWrap>毕业院校:</td>
  133.         <td colSpan="2"><%=uad.getSchool()%></td>
  134.       </tr>
  135.       <tr>
  136.         <td noWrap>参加工作时间:</td>
  137.         <td noWrap colSpan="2"><%=uad.getWorkDate()%></td>
  138.       </tr>
  139.       <tr>
  140.         <td noWrap>加入本单位时间:</td>
  141.         <td noWrap colSpan="2"><%=uad.getWorkDateAtHere()%></td>
  142.       </tr>
  143.       <tr>
  144.         <td noWrap>部门:</td>
  145.         <td colSpan="2"><%=uad.getDept()%></td>
  146.       </tr>
  147.       <tr>
  148.         <td noWrap>职务:</td>
  149.         <td colSpan="2"><%=uad.getZhiWu()%></td>
  150.       </tr>
  151.       <tr>
  152.         <td noWrap>职称:</td>
  153.         <td colSpan="2"><%=uad.getZhiChen()%></td>
  154.       </tr>
  155.       <tr>
  156.         <td noWrap>政治面貌:</td>
  157.         <td colSpan="2"><select name="politics">
  158.             <option value="1">群众</option>
  159.             <option value="2">团员</option>
  160.             <option value="4">预备党员</option>
  161.             <option value="3">党员</option>
  162.           </select>
  163.   <script>
  164.   form1.politics.value = "<%=uad.getPolitics()%>";
  165.   </script>   </td>
  166.       </tr>
  167.       <tr>
  168.         <td noWrap>家庭住址:</td>
  169.         <td colSpan="2"><%=uad.getHomeAddress()%></td>
  170.       </tr>
  171.       <tr>
  172.         <td noWrap>家庭电话:</td>
  173.         <td colSpan="2"><%=uad.getHomeTel()%></td>
  174.       </tr>
  175.       <tr>
  176.         <td noWrap>电子邮件:</td>
  177.         <td colSpan="2"><%=uad.getEmail()%></td>
  178.       </tr>
  179.       <tr>
  180.         <td class="TableHeader" noWrap colSpan="3">&nbsp;岗位变动情况:</td>
  181.       </tr>
  182.       <tr>
  183.         <td colSpan="3"><%=uad.getPostChange()%></td>
  184.       </tr>
  185.       <tr>
  186.         <td class="TableHeader" noWrap colSpan="3">&nbsp;教育背景</td>
  187.       </tr>
  188.       <tr>
  189.         <td colSpan="3"><%=uad.getEducation()%></td>
  190.       </tr>
  191.       <tr>
  192.         <td class="TableHeader" noWrap colSpan="3">&nbsp;工作简历</td>
  193.       </tr>
  194.       <tr>
  195.         <td colSpan="3"><%=uad.getResume()%></td>
  196.       </tr>
  197.       <tr>
  198.         <td class="TableHeader" noWrap colSpan="3">&nbsp;社会关系</td>
  199.       </tr>
  200.       <tr>
  201.         <td colSpan="3"><%=uad.getSocialRelation()%></td>
  202.       </tr>
  203.       <tr>
  204.         <td class="TableHeader" noWrap colSpan="3">&nbsp;奖惩记录</td>
  205.       </tr>
  206.       <tr>
  207.         <td colSpan="3"><%=uad.getJiangchenRecord()%></td>
  208.       </tr>
  209.       <tr>
  210.         <td class="TableHeader" noWrap colSpan="3">&nbsp;职务情况</td>
  211.       </tr>
  212.       <tr>
  213.         <td colSpan="3"><%=uad.getZhiwuQinkuang()%></td>
  214.       </tr>
  215.       <tr>
  216.         <td class="TableHeader" noWrap colSpan="3">&nbsp;培训记录</td>
  217.       </tr>
  218.       <tr>
  219.         <td colSpan="3"><%=uad.getTrainRecord()%></td>
  220.       </tr>
  221.       <tr>
  222.         <td class="TableHeader" noWrap colSpan="3">&nbsp;担保记录</td>
  223.       </tr>
  224.       <tr>
  225.         <td colSpan="3"><%=uad.getDanbaoRecord()%></td>
  226.       </tr>
  227.       <tr>
  228.         <td class="TableHeader" noWrap colSpan="3">&nbsp;劳动合同签订情况</td>
  229.       </tr>
  230.       <tr>
  231.         <td colSpan="3"><%=uad.getContract()%></td>
  232.       </tr>
  233.       <tr>
  234.         <td class="TableHeader" noWrap colSpan="3">&nbsp;社保缴纳情况</td>
  235.       </tr>
  236.       <tr>
  237.         <td colSpan="3"><%=uad.getInsure()%></td>
  238.       </tr>
  239.       <tr>
  240.         <td class="TableHeader" noWrap colSpan="3">&nbsp;体检记录</td>
  241.       </tr>
  242.       <tr>
  243.         <td colSpan="3"><%=uad.getTijianRecord()%></td>
  244.       </tr>
  245.       <tr>
  246.         <td class="TableHeader" noWrap colSpan="3">&nbsp;备 注</td>
  247.       </tr>
  248.       <tr>
  249.         <td colSpan="3"><span class="TableHeader"><b><%=uad.getRemark()%>
  250.         </b></span></td>
  251.       </tr>
  252.     </tbody>
  253.   </form>
  254. </table>
  255. </body>
  256. </html>