sign.jsp 18 KB

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