123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/webpage/include/taglibf.jsp"%>
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>${fns:getConfig("productName")}</title>
- <link rel="stylesheet" type="text/css" href="${ctxStaticWeb}/css/base.css" />
- <link rel="stylesheet" type="text/css" href="${ctxStaticWeb}/css/new.css" />
- <%-- <script src="${ctx}/static/web/js/jquery-2.1.4.js"></script>
- <script src="${ctx}/static/plugin/layui/layer/layer.js"></script>
- <script src="${ctx}/static/plugin/jquery-validation/1.14.0/jquery.validate.js" type="text/javascript"></script>
- <script src="${ctx}/static/plugin/jquery-validation/1.14.0/localization/messages_zh.min.js" type="text/javascript"></script>
- <!-- 引入layer插件,当做独立组件使用,不使用layui模块,该版本修复了chrome下花屏的bug -->
- <script src="${ctxStatic}/plugin/layui/layer/layer.js"></script>
- <script src="${ctxStatic}/plugin/layui/laytpl/laytpl.js"></script>
- <script src="${ctxStatic}/plugin/layui/dist/layui.js"></script>
- <link href="${ctxStatic}/plugin/layui/dist/css/layui.css" rel="stylesheet"/>
- <!-- 引入toastr -->
- <link rel="stylesheet" type="text/css" href="${ctxStatic}/plugin/toastr/toastr.css">
- <script type="text/javascript" src="${ctxStatic}/plugin/toastr/toastr.min.js"></script>
- <script src="${ctx}/static/common/js/jeeplus.js"></script>--%>
- <style>
- .grzx{ margin:60px}
- .grzx li{ line-height:30px; margin:10px 0px; width:100%}
- .grzx li span{ width:100px; text-align:right; display:inline-block}
- .grzx li textarea{ margin-left:100px; width:700px; height:200px}
- .grzx input{ line-height:30px; line-height:30px; padding:0px 10px;}
- .get{}
- .new_r{ margin-left:0px; margin-right:20px}
- .btnSign { height:35px; line-height:35px; width:25%;background-color:#820402; color:#fff; border:0px; margin:20px}
- #inputForm label.error
- {
- color:#cc5965;
- font-size:14px;
- margin-left:5px;
- padding-left:16px;
- font-weight: bold;
- }
- </style>
- <%@include file="/webpage/include/anihead.jsp" %>
- <script>
- $().ready(function() {
- //校验表单
- $("#inputForm").validate({
- debug: false,
- focusInvalid: true, //当为false时,验证无效时,没有焦点响应
- onkeyup: false,
- rules: {
- password: {
- required: true,
- minlength: 6,
- remote: "${ctxF}/talentPerson/validatePassword"
- },
- passwordAgain: {
- required: true,
- minlength: 6
- },
- passwordAgain1: {
- required: true,
- minlength: 6,
- equalTo: "#passwordAgain"
- }
- },
- messages: {
- password: {
- required: "请输入原密码",
- minlength: "原密码长度不能小于6位",
- remote:"原密码错误"
- },
- passwordAgain: {
- required: "请输入确认密码",
- minlength: "密码长度不能小于6位"
- },
- passwordAgain1: {
- required: "请输入确认密码",
- minlength: "密码长度不能小于6位",
- equalTo: "两次密码输入不一致"
- }
- },
- submitHandler:function(form){//这是关键的语句,配置这个参数后表单不会自动提交,验证通过之后会去调用的方法
- $.ajax({
- url:"${ctxF}/talentPerson/updatePassword",
- type:"POST",
- cache: false,
- data:$(form).serialize(),
- dataType:"json",
- beforeSend: function(XMLHttpRequest){
- //do something before submit...
- },
- success: function(data){
- if(data.success){
- jp.success(data.msg);
- document.getElementById("inputForm").reset();
- }else{
- jp.error(data.msg);
- }
- },
- complete: function(XMLHttpRequest, textStatus){
- //do something in the end...
- }
- });
- }
- });
- $("#grxxForm").validate({
- debug: false,
- focusInvalid: true, //当为false时,验证无效时,没有焦点响应
- onkeyup: false,
- rules: {
- name: {
- required: true
- }
- },
- messages: {
- name: {
- required: "请输入姓名"
- }
- },
- submitHandler:function(form){//这是关键的语句,配置这个参数后表单不会自动提交,验证通过之后会去调用的方法
- $.ajax({
- url:"${ctxF}/talentPerson/save",
- type:"POST",
- cache: false,
- data:$(form).serialize(),
- dataType:"json",
- beforeSend: function(XMLHttpRequest){
- //do something before submit...
- },
- success: function(data){
- if(data.success){
- jp.success(data.msg);
- window.location.href = "${ctxF}/info";
- }else{
- jp.error(data.msg);
- }
- },
- complete: function(XMLHttpRequest, textStatus){
- //do something in the end...
- }
- });
- }
- });
- });
- function personInfo() {
- $("#grxx").css("display","block");
- $("#xgmm").hide();
- $("#rcsb").hide();
- }
- function apply() {
- $("#rcsb").css("display","block");
- $("#xgmm").hide();
- $("#grxx").hide();
- }
- function changePwd() {
- $("#xgmm").css("display","block");
- $("#grxx").hide();
- $("#rcsb").hide();
- }
- function exit() {
- layer.confirm('确认要退出登录吗?', {icon: 3, title:'提示'}, function(index){
- window.location.href = "${ctxF}/logout";
- layer.close(index);
- });
- }
- </script>
- </head>
- <body>
- <%@ include file="/webpage/modules/web/top.jsp"%>
- <div class="c">
- <div class="new_r l">
- <h2>个人中心</h2>
- <ul>
- <li><a href="#" onclick="personInfo()">个人资料</a></li>
- <li><a href="${ctxF}/personSign" target="_parent">人才申报</a></li>
- <li><a href="${ctxF}/talentWorkstationList" target="_parent">“候鸟型”人才申报</a></li>
- <li><a href="#" onclick="changePwd()">修改密码</a></li>
- <li><a href="#" onclick="exit()">退出系统</a></li>
- </ul>
- </div>
- <div class="new_l l">
- <h2> 当前位置:<a href="${ctx}/talent_web">首页</a>><a href="#">个人中心</a></h2>
- <div class="grzx" id="grxx">
- <form id = "grxxForm" action="${ctxF}/talentPerson/save" method="post">
- <input type="hidden" name="id" value="${talentPerson.id}"/>
- <h4>个人资料信息</h4>
- <table style="margin: 2px;" class="table " border="0" bgcolor="#CCCCCC">
- <tbody>
- <tr>
- <td ><label class="pull-right"><font color="red">*</font>姓名:</label></td>
- <td >
- <input name="name" type="text" value="${talentPerson.name}" class="required">
- </td>
- </tr>
- <tr>
- <td ><label class="pull-right"><font color="red">*</font>性别:</label></td>
- <td >
- <label><input name="sex" type="radio" value="1" <c:if test="${talentPerson.sex == '1'}">checked</c:if>/>男 </label>
- <label><input name="sex" type="radio" value="2" <c:if test="${talentPerson.sex == '2'}">checked</c:if>/>女 </label>
- </td>
- </tr>
- <tr>
- <td class="width-5"><label class="pull-right">照片:</label></td>
- <td class="width-20">
- <c:choose>
- <c:when test="talentPerson.photo !=null && talentSign.photo !=''">
- <img src="${talentPerson.photo}" width="152" height="180" >
- </c:when>
- <c:otherwise>
- <img src="${ctxStatic}/common/images/default.jpg" width="152" height="180" >
- </c:otherwise>
- </c:choose>
- <sys:fileUpload path="photo" value="${talentPerson.photo}" type="images" allowedExtensions="bmp,gif,jpeg,jpg,png" uploadPath="/talent/person/talentPerson"/>
- </td>
- </tr>
- <tr>
- <td ><label class="pull-right">联系方式:</label></td>
- <td >
- <input name="mobile" type="text" value="${talentPerson.mobile}" >
- </td>
- </tr>
- <tr>
- <td ><label class="pull-right">身份证:</label></td>
- <td >
- <input name="idNumber" type="text" value="${talentPerson.idNumber}" class="isIdCardNo">
- </td>
- </tr>
- <tr>
- <td ><label class="pull-right">学历:</label></td>
- <td >
- <select name="degree" class="form-control " style="width: 20%">
- <option value="" label=""/>
- <c:forEach items="${fns:getDictList('degree')}" var="degree">
- <option label="${degree.label}" value="${degree.value}" <c:if test="${talentPerson.degree==degree.value}"> selected="selected" </c:if>/>
- </c:forEach>
- </select>
- </td>
- </tr>
- <tr>
- <td ><label class="pull-right">工作履历:</label></td>
- <td >
- <textarea name="workInfo" rows="6" class="form-control"></textarea>
- </td>
- </tr>
- <tr>
- <td ><label class="pull-right">简历上传:</label></td>
- <td >
- <sys:fileUpload path="resumeAttach" value="${talentPerson.resumeAttach}" type="file" uploadPath="/talent/person/talentPerson"/>
- </td>
- </tr>
- </tbody>
- </table>
- <input name="btnSave" class="btnSign" type="submit" value="提交" style="cursor: pointer;margin-left: 300px;" >
- </form>
- </div>
- <div id="xgmm" class="grzx" style="display: none">
- <form id = "inputForm" action="${ctxF}/talentPerson/updatePassword" method="post">
- <input type="hidden" name="id" value="${talentPerson.id}"/>
- <ul>
- <li><span>原密码:</span><input name="password" id="password" type="password"></li>
- <li><span>新密码:</span><input name="passwordAgain" id="passwordAgain" type="password" ></li>
- <li><span>确认密码:</span><input name="passwordAgain1" id="passwordAgain1" type="password"></li>
- <li><input name="btnRegister" class="btnSign" type="submit" value="提交" style="cursor: pointer" ></li>
- </ul>
- </form>
- </div>
- </div>
- </div>
- <%@ include file="/webpage/modules/web/footer.jsp"%>
- </body>
- </html>
|