jobResumeForm.jsp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>人员简历信息管理</title>
  6. <meta name="decorator" content="default"/>
  7. <style type="text/css">
  8. img{width: 50px;height: 50px;}
  9. </style>
  10. <script type="text/javascript">
  11. var validateForm;
  12. function doSubmit(){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
  13. if(validateForm.form()){
  14. $("#inputForm").submit();
  15. return true;
  16. }
  17. return false;
  18. }
  19. $(document).ready(function() {
  20. validateForm = $("#inputForm").validate({
  21. submitHandler: function(form){
  22. loading('正在提交,请稍等...');
  23. form.submit();
  24. },
  25. errorContainer: "#messageBox",
  26. errorPlacement: function(error, element) {
  27. $("#messageBox").text("输入有误,请先更正。");
  28. if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
  29. error.appendTo(element.parent().parent());
  30. } else {
  31. error.insertAfter(element);
  32. }
  33. }
  34. });
  35. });
  36. //上传简历
  37. $(function () {
  38. $("#attachment_btn").click(function () {
  39. $("#attachment_file").click();
  40. });
  41. })
  42. function attachment_insertTitle(tValue){
  43. $("#attachment_title_div").remove();
  44. var t1 = tValue.lastIndexOf("\\");
  45. if(t1 >= 0 && t1 < tValue.length){
  46. $("#attachment_title").text(tValue.substring(t1+1));
  47. $("#attachment_title").after("<div id='attachment_title_div' style='float: right'>&nbsp;&nbsp;<span id='attachment_delete' onclick='attachment_del()'style='color: red ; cursor: pointer;'>x</span></div>");
  48. }
  49. }
  50. function attachment_del() {
  51. $("#attachment_file").val("");
  52. $("#attachment_title").text("");
  53. $("#attachment_delete").remove();
  54. $("#attachment_title_div").remove();
  55. }
  56. </script>
  57. </head>
  58. <body class="hideScroll">
  59. <%--action="${ctx}/hr/jobResume/save"--%>
  60. <form:form id="inputForm" modelAttribute="userInfo" method="post" enctype="multipart/form-data" class="form-horizontal">
  61. <form:hidden path="id"/>
  62. <form:hidden path="userOffice.userId"/>
  63. <form:hidden path="userOffice.companyId"/>
  64. <form:hidden path="userOffice.id"/>
  65. <form:hidden path="userId"/>
  66. <form:hidden path="companyId"/>
  67. <sys:message content="${message}"/>
  68. <table class="table table-bordered table-condensed dataTables-example dataTable no-footer">
  69. <tbody>
  70. <tr>
  71. <td class="width-15 active"><label class="pull-right">姓名:</label></td>
  72. <td class="width-35">
  73. ${userInfo.name}
  74. </td>
  75. <td class="width-15 active"><label class="pull-right">性别:</label></td>
  76. <td class="width-35">
  77. ${fns:getDictLabel(userInfo.gender,'sex' ,'' )}
  78. </td>
  79. </tr>
  80. <tr>
  81. <td class="width-15 active"><label class="pull-right">昵称:</label></td>
  82. <td class="width-35">
  83. ${userInfo.nickName}
  84. </td>
  85. <td class="width-15 active"><label class="pull-right">工号:</label></td>
  86. <td class="width-35">
  87. ${userInfo.jobNumber}
  88. </td>
  89. </tr>
  90. <tr>
  91. <td class="width-15 active"><label class="pull-right">联系电话:</label></td>
  92. <td class="width-35">
  93. ${userInfo.mobilePhone}
  94. </td>
  95. <td class="width-15 active"><label class="pull-right">电子邮件:</label></td>
  96. <td class="width-35">
  97. ${userInfo.email}
  98. </td>
  99. </tr>
  100. <tr>
  101. <td class="width-15 active"><label class="pull-right">个人简介:</label></td>
  102. <td class="width-35" colspan="3">
  103. ${userInfo.personalProfile}
  104. </td>
  105. </tr>
  106. <tr>
  107. <td class="width-15 active"><label class="pull-right">备注信息:</label></td>
  108. <td class="width-35" colspan="3">
  109. ${userInfo.remarks}
  110. </td>
  111. </tr>
  112. <tr>
  113. <td class="width-15 active"><label class="pull-right">上传简历:</label></td>
  114. <td class="width-35" colspan="3">
  115. <div>
  116. <div style="float:left; height: 100%; width: 100%; ">
  117. <div style="display: inline-block">
  118. <input id="attachment_file" type="file" name="attachment_file" multiple="multiple" style="display: none;" onChange="if(this.value)attachment_insertTitle(this.value);"/>
  119. <a id="attachment_btn" class="btn btn-info btn-xs" ><i class="fa fa-plus"></i> 上传</a>
  120. <span id="attachment_title"></span>
  121. </div>
  122. <table id="listManuscriptFile" style="text-align: center;width: 100%;margin-top:10px;" class="table table-striped table-bordered table-condensed" >
  123. <tr>
  124. <%--<td>序号</td>--%><td>文件名</td><td>上传人</td><td>上传时间</td><td>操作</td>
  125. </tr>
  126. <tr>
  127. <c:if test="${not empty userInfo.user.jobResume.id}">
  128. <%--<td>1</td>--%>
  129. <td>
  130. <%--<span title="${userInfo.user.jobResume.attachmentName}">${fns:abbr(userInfo.user.jobResume.attachmentName, 30)}</span>--%>
  131. <c:choose>
  132. <c:when test="${fn:containsIgnoreCase(userInfo.user.jobResume.attachmentName,'jpg')
  133. or fn:containsIgnoreCase(userInfo.user.jobResume.attachmentName,'png')
  134. or fn:containsIgnoreCase(userInfo.user.jobResume.attachmentName,'gif')
  135. or fn:containsIgnoreCase(userInfo.user.jobResume.attachmentName,'jpeg')}">
  136. <img src="${userInfo.user.jobResume.url}" onclick="openDialogView(' ','${ctx}/sys/picturepreview/picturePreview?url=${userInfo.user.jobResume.url}','860px','600px')" width="50" height="50" alt="${userInfo.user.jobResume.attachmentName}"/>
  137. </c:when>
  138. <c:otherwise>
  139. <c:choose>
  140. <c:when test="${fn:containsIgnoreCase(userInfo.user.jobResume.attachmentName,'pdf')}">
  141. <a href="javascript:void(0)" onclick="preview('预览','${userInfo.user.jobResume.url}','80%','80%','1')">
  142. <span title="${userInfo.user.jobResume.attachmentName}">${fns:abbr(userInfo.user.jobResume.attachmentName, 30)}</span></a>
  143. </c:when>
  144. <c:otherwise>
  145. <a href="javascript:void(0)" onclick="preview('预览','${userInfo.user.jobResume.url}','80%','80%')">
  146. <span title="${userInfo.user.jobResume.attachmentName}">${fns:abbr(userInfo.user.jobResume.attachmentName, 30)}</span>
  147. </a>
  148. </c:otherwise>
  149. </c:choose>
  150. </c:otherwise>
  151. </c:choose>
  152. </td>
  153. <td>${userInfo.user.jobResume.attachmentUser}</td>
  154. <td><fmt:formatDate value="${userInfo.user.jobResume.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  155. <td>
  156. <%--<a href="${ctx}/workfullmanage/workFullManage/downLoadAttach?file=${userInfo.user.jobResume.url}" class="btn btn-success btn-xs">下载</a>--%>
  157. <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${userInfo.user.jobResume.url}');" class="btn btn-success btn-xs">下载</a>
  158. </td>
  159. </c:if>
  160. </tr>
  161. </table>
  162. </div>
  163. </div>
  164. </td>
  165. </tr>
  166. </tbody>
  167. </table>
  168. </form:form>
  169. </body>
  170. </html>