talentBasicSituationList.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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/new.css" />
  10. <%-- <script src="${ctx}/static/web/js/jquery-2.1.4.js"></script>
  11. <script src="${ctx}/static/plugin/layui/layer/layer.js"></script>
  12. <script src="${ctx}/static/plugin/jquery-validation/1.14.0/jquery.validate.js" type="text/javascript"></script>
  13. <script src="${ctx}/static/plugin/jquery-validation/1.14.0/localization/messages_zh.min.js" type="text/javascript"></script>
  14. <!-- 引入layer插件,当做独立组件使用,不使用layui模块,该版本修复了chrome下花屏的bug -->
  15. <script src="${ctxStatic}/plugin/layui/layer/layer.js"></script>
  16. <script src="${ctxStatic}/plugin/layui/laytpl/laytpl.js"></script>
  17. <script src="${ctxStatic}/plugin/layui/dist/layui.js"></script>
  18. <link href="${ctxStatic}/plugin/layui/dist/css/layui.css" rel="stylesheet"/>
  19. <!-- 引入toastr -->
  20. <link rel="stylesheet" type="text/css" href="${ctxStatic}/plugin/toastr/toastr.css">
  21. <script type="text/javascript" src="${ctxStatic}/plugin/toastr/toastr.min.js"></script>
  22. <script src="${ctx}/static/common/js/jeeplus.js"></script>--%>
  23. <style>
  24. .syrc_sb{
  25. width:920px;
  26. background: #fff;
  27. padding: 10px;
  28. }
  29. .btn_xz{
  30. border:1px solid #2977c7;
  31. border-radius: 3px;
  32. background: #67b1fd;
  33. color: #fff;
  34. padding: 3px 6px;
  35. margin: 10px 0px;
  36. cursor: pointer;
  37. }
  38. .btn_xz:hover{
  39. background: #2977c7;
  40. }
  41. .syrc_table{
  42. padding: 4px;
  43. }
  44. .syrc_table thead th{
  45. text-align: left;
  46. height: 35px;
  47. line-height: 35px;
  48. background: #CEEAFF;
  49. padding: 0px 2px;
  50. }
  51. .syrc_table tr{
  52. border-bottom: 1px solid #ccc;
  53. }
  54. .syrc_table tr:hover{
  55. background: #ECECEC;
  56. }
  57. .syrc_table tr td{
  58. padding: 5px 2px;
  59. }
  60. .syrc_table tr td button{
  61. margin-bottom: 5px;
  62. cursor: pointer;
  63. padding: 3px 6px;
  64. border-radius: 3px;
  65. background: #e1e9ef;
  66. border: 1px solid #0A3784;
  67. color: #0A3784;
  68. }
  69. .syrc_table tr td button:hover{
  70. background: #0A3784;
  71. color: #fff;
  72. }
  73. .syrc_table tr td button a{
  74. color: #0A3784;
  75. }
  76. .syrc_table tr td button:hover a{
  77. color: #fff;
  78. }
  79. </style>
  80. <style>
  81. .grzx{ margin:60px}
  82. .grzx li{ line-height:30px; margin:10px 0px; width:100%}
  83. .grzx li span{ width:100px; text-align:right; display:inline-block}
  84. .grzx li textarea{ margin-left:100px; width:700px; height:200px}
  85. .grzx input{ line-height:30px; line-height:30px; padding:0px 10px;}
  86. .get{}
  87. .new_r{ margin-left:0px; margin-right:20px}
  88. .btnSign { height:35px; line-height:35px; width:25%;background-color:#820402; color:#fff; border:0px; margin:20px}
  89. #inputForm label.error
  90. {
  91. color:#cc5965;
  92. font-size:14px;
  93. margin-left:5px;
  94. padding-left:16px;
  95. font-weight: bold;
  96. }
  97. </style>
  98. <%@include file="/webpage/include/anihead.jsp" %>
  99. <script>
  100. $().ready(function() {
  101. //校验表单
  102. $("#inputForm").validate({
  103. debug: false,
  104. focusInvalid: true, //当为false时,验证无效时,没有焦点响应
  105. onkeyup: false,
  106. rules: {
  107. password: {
  108. required: true,
  109. minlength: 6,
  110. remote: "${ctxF}/talentPerson/validatePassword"
  111. },
  112. passwordAgain: {
  113. required: true,
  114. minlength: 6
  115. },
  116. passwordAgain1: {
  117. required: true,
  118. minlength: 6,
  119. equalTo: "#passwordAgain"
  120. }
  121. },
  122. messages: {
  123. password: {
  124. required: "请输入原密码",
  125. minlength: "原密码长度不能小于6位",
  126. remote:"原密码错误"
  127. },
  128. passwordAgain: {
  129. required: "请输入确认密码",
  130. minlength: "密码长度不能小于6位"
  131. },
  132. passwordAgain1: {
  133. required: "请输入确认密码",
  134. minlength: "密码长度不能小于6位",
  135. equalTo: "两次密码输入不一致"
  136. }
  137. },
  138. submitHandler:function(form){//这是关键的语句,配置这个参数后表单不会自动提交,验证通过之后会去调用的方法
  139. $.ajax({
  140. url:"${ctxF}/talentPerson/updatePassword",
  141. type:"POST",
  142. cache: false,
  143. data:$(form).serialize(),
  144. dataType:"json",
  145. beforeSend: function(XMLHttpRequest){
  146. //do something before submit...
  147. },
  148. success: function(data){
  149. if(data.success){
  150. jp.success(data.msg);
  151. document.getElementById("inputForm").reset();
  152. }else{
  153. jp.error(data.msg);
  154. }
  155. },
  156. complete: function(XMLHttpRequest, textStatus){
  157. //do something in the end...
  158. }
  159. });
  160. }
  161. });
  162. $("#grxxForm").validate({
  163. debug: false,
  164. focusInvalid: true, //当为false时,验证无效时,没有焦点响应
  165. onkeyup: false,
  166. rules: {
  167. name: {
  168. required: true
  169. }
  170. },
  171. messages: {
  172. name: {
  173. required: "请输入姓名"
  174. }
  175. },
  176. submitHandler:function(form){//这是关键的语句,配置这个参数后表单不会自动提交,验证通过之后会去调用的方法
  177. $.ajax({
  178. url:"${ctxF}/talentPerson/save",
  179. type:"POST",
  180. cache: false,
  181. data:$(form).serialize(),
  182. dataType:"json",
  183. beforeSend: function(XMLHttpRequest){
  184. //do something before submit...
  185. },
  186. success: function(data){
  187. if(data.success){
  188. jp.success(data.msg);
  189. window.location.href = "${ctxF}/info";
  190. }else{
  191. jp.error(data.msg);
  192. }
  193. },
  194. complete: function(XMLHttpRequest, textStatus){
  195. //do something in the end...
  196. }
  197. });
  198. }
  199. });
  200. });
  201. function personInfo() {
  202. $("#grxx").css("display","block");
  203. $("#xgmm").hide();
  204. $("#rcsb").hide();
  205. }
  206. function apply() {
  207. $("#rcsb").css("display","block");
  208. $("#xgmm").hide();
  209. $("#grxx").hide();
  210. }
  211. function changePwd() {
  212. $("#xgmm").css("display","block");
  213. $("#grxx").hide();
  214. $("#rcsb").hide();
  215. }
  216. function exit() {
  217. layer.confirm('确认要退出登录吗?', {icon: 3, title:'提示'}, function(index){
  218. window.location.href = "${ctxF}/logout";
  219. layer.close(index);
  220. });
  221. }
  222. function talentBasicSituation(workstationId) {
  223. window.open("${ctxF}/talentBasicSituation?workstationId="+workstationId);
  224. }
  225. </script>
  226. </head>
  227. <body>
  228. <%@ include file="/webpage/modules/web/top.jsp"%>
  229. <div class="c">
  230. <div class="new_r l">
  231. <h2>个人中心</h2>
  232. <ul>
  233. <li><a href="#" onclick="personInfo()">个人资料</a></li>
  234. <li><a href="${ctxF}/personSign" target="_parent">人才申报</a></li>
  235. <li><a href="${ctxF}/talentWorkstation" target="_parent">“候鸟型”人才申报</a></li>
  236. <li><a href="#" onclick="changePwd()">修改密码</a></li>
  237. <li><a href="#" onclick="exit()">退出系统</a></li>
  238. </ul>
  239. </div>
  240. <div class="new_l l">
  241. <h2>&nbsp;&nbsp;&nbsp;当前位置:<a href="${ctx}/talent_web">首页</a>&gt;<a href="#">个人中心</a></h2>
  242. <div class="syrc_sb">
  243. <button class="btn_xz" onclick="talentBasicSituation('${workstationId}')">新增申报单位基本情况</button>
  244. <table class="syrc_table" cellpadding="0" cellspacing="0" border="0">
  245. <thead>
  246. <th width="150">姓名</th>
  247. <th width="150">性别</th>
  248. <th width="150">出生日期</th>
  249. <th width="150">政治面貌</th>
  250. <th width="150">民族</th>
  251. <th width="150">籍贯</th>
  252. <th width="200">操作</th>
  253. </thead>
  254. <c:forEach items="${list}" var="talentBasicSituation" varStatus="status">
  255. <tr>
  256. <td>${talentBasicSituation.xm} </td>
  257. <td>${talentBasicSituation.xb}</td>
  258. <td>${talentBasicSituation.csrq}</td>
  259. <td>${talentBasicSituation.zzmm}</td>
  260. <td>${talentBasicSituation.mz}</td>
  261. <td>${talentBasicSituation.jg}</td>
  262. <td>
  263. <button type="button" class="btn_btn" ><a href="${ctxF}/talentBasicSituation?id=${talentBasicSituation.id}" target="_blank">查看</a></button>
  264. </td>
  265. </tr>
  266. </c:forEach>
  267. </table>
  268. </div>
  269. </div>
  270. </div>
  271. <%@ include file="/webpage/modules/web/footer.jsp"%>
  272. </body>
  273. </html>