personSign.jsp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglibf.jsp"%>
  3. <!doctype html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8">
  7. <title>${fns:getConfig("productName")}</title>
  8. <link rel="stylesheet" type="text/css" href="${ctxStaticWeb}/css/base.css" />
  9. <link rel="stylesheet" type="text/css" href="${ctxStaticWeb}/css/second.css" />
  10. <style>
  11. .new_l,.new_r{ margin:10px 0px;}
  12. .new_l{background-color:#FFF}
  13. .new_l h2{ border-bottom:1px solid #CCC; border-top:1px solid #CCC; line-height:38px; font-size:16px; background-color:#f8f8f8;}
  14. .new_l h2 a{color:#820402}
  15. .bg{ background-color:#fff; min-height:600px}
  16. .bg h2{ line-height:60px; color:#820402;}
  17. .btnSign { height:35px; line-height:35px; width:25%;background-color:#820402; color:#fff; border:0px; margin:20px}
  18. #inputForm label.error
  19. {
  20. color:#cc5965;
  21. font-size:14px;
  22. margin-left:5px;
  23. padding-left:16px;
  24. font-weight: bold;
  25. }
  26. </style>
  27. <%@include file="/webpage/include/anihead.jsp" %>
  28. <%@include file="/webpage/include/summernote.jsp" %>
  29. <script type="text/javascript">
  30. $(document).ready(function() {
  31. /*jp.ajaxForm("#inputForm",function(data){
  32. if(data.success){
  33. jp.success(data.msg);
  34. document.getElementById("inputForm").reset();
  35. jp.go("${ctxF}/personSign");
  36. }else{
  37. jp.error(data.msg);
  38. }
  39. ("#btnSave").button('reset');
  40. });*/
  41. $('#birth').datetimepicker({
  42. format: "YYYY-MM",
  43. defaultDate:"1980-1"
  44. });
  45. //富文本初始化
  46. $('#professionalDirection').summernote({
  47. height: 120,
  48. lang: 'zh-CN',
  49. callbacks: {
  50. onChange: function(contents, $editable) {
  51. $("input[name='professionalDirection']").val($('#professionalDirection').summernote('code'));//取富文本的值
  52. }
  53. }
  54. });
  55. $('#honors').summernote({
  56. height: 120,
  57. lang: 'zh-CN',
  58. callbacks: {
  59. onChange: function(contents, $editable) {
  60. $("input[name='honors']").val($('#honors').summernote('code'));//取富文本的值
  61. }
  62. }
  63. });
  64. $("#talentType").change(function(){
  65. $("#typeDetail").empty();
  66. var selVal = $(this).children('option:selected').val();
  67. //var json = '${fns:toJson(fns:getDictList('leader_talent'))}';
  68. var options = "<option value='' label=''/>";
  69. if(selVal == 1){
  70. <c:forEach items="${fns:getDictList('leader_talent')}" var="dict">
  71. options += "<option value=${dict.value}>${dict.label}</option>";
  72. </c:forEach>
  73. }else if(selVal == 2){
  74. <c:forEach items="${fns:getDictList('corp_talent')}" var="dict">
  75. options += "<option value=${dict.value}>${dict.label}</option>";
  76. </c:forEach>
  77. }else if(selVal == 3){
  78. <c:forEach items="${fns:getDictList('tech_talent')}" var="dict">
  79. options += "<option value=${dict.value}>${dict.label}</option>";
  80. </c:forEach>
  81. }else if(selVal == 4){
  82. <c:forEach items="${fns:getDictList('high_talent')}" var="dict">
  83. options += "<option value=${dict.value}>${dict.label}</option>";
  84. </c:forEach>
  85. }else if(selVal == 5){
  86. <c:forEach items="${fns:getDictList('village_talent')}" var="dict">
  87. options += "<option value=${dict.value}>${dict.label}</option>";
  88. </c:forEach>
  89. }else if(selVal == 6){
  90. <c:forEach items="${fns:getDictList('social_talent')}" var="dict">
  91. options += "<option value=${dict.value}>${dict.label}</option>";
  92. </c:forEach>
  93. }
  94. $("#typeDetail").html(options);
  95. //console.log(json);
  96. })
  97. });
  98. function sign() {
  99. var isValidate = jp.validateForm('#inputForm');//校验表单
  100. if(!isValidate){
  101. return false;
  102. }else{
  103. jp.confirm("确认进行人才申报吗?",function () {
  104. jp.post("${ctxF}/talentSign/save",$('#inputForm').serialize(),function (data) {
  105. if(data.success){
  106. jp.success(data.msg);
  107. /*$("#inputForm input").val("");
  108. $("#inputForm select").val("");
  109. $("#inputForm .select-item").html("");*/
  110. $('#inputForm')[0].reset()
  111. //jp.go("${ctxF}/info");
  112. }else{
  113. jp.error(data.msg);
  114. $("#inputForm").find("button:submit").button("reset");
  115. }
  116. })
  117. })
  118. }
  119. }
  120. </script>
  121. </head>
  122. <body>
  123. <%@ include file="/webpage/modules/web/top.jsp"%>
  124. <form:form id="inputForm" modelAttribute="talentSign" method="post" class="form-horizontal">
  125. <div class="c">
  126. <div class="new_l">
  127. <h2>&nbsp;&nbsp;&nbsp;当前位置:<a href="${ctx}/home">首页</a>&gt;<a href="${ctxF}/info">个人中心</a>&gt;人才申报</h2>
  128. <form:hidden path="id"/>
  129. <input type="hidden" name="flag" value="1"/>
  130. <table style="margin: 2px;" class="table table-bordered" bgcolor="#CCCCCC">
  131. <tbody>
  132. <tr>
  133. <td class="width-10 active"><label class="pull-right"><font color="red">*</font>姓名:</label></td>
  134. <td class="width-15">
  135. <form:input path="name" htmlEscape="false" class="form-control required"/> </td>
  136. <td class="width-10 active"><label class="pull-right"><font color="red">*</font>性别:</label></td>
  137. <td class="width-15">
  138. <form:select path="sex" class="form-control required">
  139. <form:option value="" label=""/>
  140. <form:options items="${fns:getDictList('sex')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  141. </form:select>
  142. </td>
  143. <td rowspan="3" class="width-15">
  144. <c:if test="${talentSign.photo !=null && talentSign.photo !='' }">
  145. <img src="${talentSign.photo}" width="152" height="130" >
  146. </c:if>
  147. <c:if test="${talentSign.photo == null || talentSign.photo ==''}">
  148. <img src="${ctxStatic}/common/images/default.jpg" width="152" height="130" >
  149. </c:if>
  150. <br>
  151. <div id="filePicker">选择图片</div>
  152. <sys:fileUpload path="photo" value="${talentSign.photo}" type="images" allowedExtensions="bmp,gif,jpeg,jpg,png" uploadPath="/talent/sign/talentSign"/> </td>
  153. </tr>
  154. <tr>
  155. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>出生年月:</label></td>
  156. <td class="width-35">
  157. <div class='input-group form_datetime' id='birth'>
  158. <input type='text' name="birth" class="form-control required" value="<fmt:formatDate value="${talentInfo.birth}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
  159. <span class="input-group-addon">
  160. <span class="glyphicon glyphicon-calendar"></span>
  161. </span>
  162. </div>
  163. </td>
  164. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>民族:</label></td>
  165. <td class="width-35">
  166. <form:select path="nation" class="form-control required">
  167. <form:option value="" label=""/>
  168. <form:options items="${fns:getDictList('nation')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  169. </form:select>
  170. </td>
  171. </tr>
  172. <tr>
  173. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>籍贯:</label></td>
  174. <td class="width-35">
  175. <form:input path="nativePlace" htmlEscape="false" class="form-control "/>
  176. </td>
  177. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>政治面貌:</label></td>
  178. <td class="width-35">
  179. <form:select path="politic" class="form-control required">
  180. <form:option value="" label=""/>
  181. <form:options items="${fns:getDictList('politic')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  182. </form:select>
  183. </td>
  184. </tr>
  185. <tr>
  186. <td colspan="7">
  187. <table class="table table-bordered" bgcolor="#CCCCCC">
  188. <tr>
  189. <td class="width-15 active" ><label class="pull-right"><font color="red">*</font>第一学历:</label></td>
  190. <td class="width-35" >
  191. <form:select path="firstEdu" class="form-control required">
  192. <form:option value="" label=""/>
  193. <form:options items="${fns:getDictList('degree')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  194. </form:select>
  195. </td>
  196. <td class="width-15 active"><label class="pull-right">第一学位:</label></td>
  197. <td class="width-35" >
  198. <form:select path="firstDegree" class="form-control ">
  199. <form:option value="" label=""/>
  200. <form:options items="${fns:getDictList('education')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  201. </form:select>
  202. </td>
  203. </tr>
  204. <tr>
  205. <td class="width-15 active"><label class="pull-right">第二学历:</label></td>
  206. <td class="width-35" >
  207. <form:select path="secondEdu" class="form-control ">
  208. <form:option value="" label=""/>
  209. <form:options items="${fns:getDictList('degree')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  210. </form:select>
  211. </td>
  212. <td class="width-15 active"><label class="pull-right">第二学位:</label></td>
  213. <td class="width-35" colspan="3">
  214. <form:select path="secondDegree" class="form-control ">
  215. <form:option value="" label=""/>
  216. <form:options items="${fns:getDictList('education')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  217. </form:select>
  218. </td>
  219. </tr>
  220. <tr>
  221. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>毕业院校及专业:</label></td>
  222. <td class="width-35" colspan="4">
  223. <form:input path="graduateAndMajor" htmlEscape="false" class="form-control required"/>
  224. </td>
  225. </tr>
  226. <tr>
  227. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>身份证号:</label></td>
  228. <td class="width-35">
  229. <form:input path="idCard" htmlEscape="false" class="form-control isIdCardNo required"/>
  230. </td>
  231. <td class="width-15 active"><label class="pull-right">电子邮箱:</label></td>
  232. <td class="width-35" colspan="2">
  233. <form:input path="eMail" htmlEscape="false" class="form-control email"/>
  234. </td>
  235. </tr>
  236. <tr>
  237. <td class="width-15 active"><label class="pull-right">办公电话:</label></td>
  238. <td class="width-35">
  239. <form:input path="workTel" htmlEscape="false" class="form-control "/>
  240. </td>
  241. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>手机:</label></td>
  242. <td class="width-35" colspan="2">
  243. <form:input path="mobile" htmlEscape="false" class="form-control isTel required"/>
  244. </td>
  245. </tr>
  246. <tr>
  247. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>域外/域内:</label></td>
  248. <td class="width-35" >
  249. <form:select path="types" class="form-control required">
  250. <form:option value="" label=""/>
  251. <form:options items="${fns:getDictList('talent_in_out')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  252. </form:select>
  253. </td>
  254. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>人才类别:</td>
  255. <td class="width-35" colspan="2">
  256. <form:select path="talentType" class="form-control required">
  257. <form:option value="" label=""/>
  258. <form:options items="${fns:getDictList('talent_local_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  259. </form:select>
  260. </td>
  261. </tr>
  262. <tr>
  263. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>所属地区:</label></td>
  264. <td >
  265. <div class=" input-group" >
  266. <sys:treeselect id="villageId" name="villageId" value="${talentInfo.villageId}" labelName="allName" labelValue="${talentInfo.allName}"
  267. title="区域" url="/sys/office/treeData" allowSearch="true" allowClear="true" cssClass="form-control required" checked ="false" notAllowSelectRoot = "true" notAllowSelectParent="true"/>
  268. </div>
  269. </td>
  270. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>人才类型:</label></td>
  271. <td >
  272. <form:select path="typeDetail" class="form-control required">
  273. </form:select>
  274. </td>
  275. </tr>
  276. <tr>
  277. <td class="width-15 active"><label class="pull-right">从业状况:</label></td>
  278. <td class="width-35" colspan="6">
  279. <form:select path="workSituation" class="form-control ">
  280. <form:option value="" label=""/>
  281. <form:options items="${fns:getDictList('talent_work')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  282. </form:select>
  283. </td>
  284. </tr>
  285. <tr>
  286. <td class="width-15 active"><label class="pull-right">专业方向:</label></td>
  287. <td class="width-35" colspan="6">
  288. <input type="hidden" name="professionalDirection" value=" ${talentInfo.professionalDirection}"/>
  289. <div id="professionalDirection">
  290. ${fns:unescapeHtml(talentInfo.professionalDirection)}
  291. </div>
  292. </td>
  293. </tr>
  294. <tr>
  295. <td class="width-15 active"><label class="pull-right">获得荣誉情况:</label></td>
  296. <td class="width-35" colspan="6">
  297. <input type="hidden" name="honors" value=" ${talentInfo.honors}"/>
  298. <div id="honors">
  299. ${fns:unescapeHtml(talentInfo.honors)}
  300. </div>
  301. </td>
  302. </tr>
  303. </table>
  304. </td>
  305. </tr>
  306. </tbody>
  307. </table>
  308. <div style="text-align: center;">
  309. <button name="btnRegister" class="btnSign" onclick="sign();return false;" style="cursor: pointer" >立即申报</button>
  310. </div>
  311. <div style="height: 2px;"></div>
  312. </div>
  313. </div>
  314. </form:form>
  315. <%@ include file="/webpage/modules/web/footer.jsp"%>
  316. </body>
  317. </html>