|
- @model Learun.Application.TwoDevelopment.AdmissionsPlatform.AP_OnlineUserInfoEntity
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=7,IE=8,IE=9,IE=10" />
- <meta name="”renderer”" content="”webkit|ie-comp|ie-stand”" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="renderer" content="webkit">
- <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
- <title>网上报名-修改密码</title>
-
- <link href="~/Content/bootstrap/bootstrap.min.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/bootstrap.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/default.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/hddb.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/style1.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/zyjs.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/login.css" rel="stylesheet" />
- <link href="~/Content/css/OnlineRegistrate/style.css" rel="stylesheet" />
- <link href="~/Content/jquery/plugin/layer/skin/default/layer.css" rel="stylesheet" />
-
- <script src="~/Content/jquery/jquery-1.10.2.min.js"></script>
- <script src="~/Content/bootstrap/bootstrap.min.js"></script>
- <script src="~/Content/js/OnlineRegistrate/bootstrapValidator.js"></script>
- <script src="~/Content/js/OnlineRegistrate/tooltips.js"></script>
- <script src="~/Content/jquery/plugin/layer/layer.js"></script>
- </head>
- <body style="overflow-x: hidden;">
- <div id="header"></div>
-
- <div class="page-container">
- <div class="page-content">
- <div class="row">
- <div class="col-md-12">
- <div class="section section-body">
- <div class="row tl-con" style="padding: 20px;">
- <div class="zp zp2">
- <div class="">
- @if (Model.PhotoUrl == null || Model.PhotoUrl == "")
- {
- <img src="~/Content/images/OnlineRegistrate/mrtx.jpg" style="width: 170px; height: 200px;" />
- }
- else
- {
- <img src="@Model.PhotoUrl" style="width: 170px; height: 200px;" />
- }
- </div>
- </div>
-
- <div class="zp3" style="padding-left: 90px; padding-top: 15px;">
- <h3>报考校区:<span id="CampusId"></span></h3>
-
- <p style="margin-top: 25px;">
- 您好:@Model.RealName 同学,欢迎登录报名系统!
-
- @if (Model.AP_OnlineStudentInfoEntity.IsPaymentId == "1")
- {
- if (Model.AP_OnlineStudentInfoEntity.IsReportId == "1")
- {
- <span style="color:green;">报到成功,欢迎加入山西冶金技师学院!</span>
- }
- else
- {
- <span style="color:blue;">缴费成功,请去学校报到!</span>
- }
- }
- else
- {
- <span style="color: red;">您当前还未缴费,请先缴费!</span>
- }
- </p>
- <div class="form-group" style="margin-top: 25px;">
- <button type="reset" class="btn btn-primary" style="margin-left:20px;" onclick="window.location.href = '/OnlineRegistrate/RegistrateForm?userId=@Model.Id'">取消返回</button>
-
- <button type="reset" class="btn btn-primary" style="margin-left:20px;" onclick="window.location.href = '/OnlineRegistrate/Login'">退出系统</button>
-
- </div>
-
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="row" id="mima">
- <div class="col-md-12">
- <div class="section">
- <div class="section section-body">
- <form id="formEdit1" name="formEdit1" method="post" class="form-horizontal" action=""
- data-bv-message="This value is not valid"
- data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
- data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
- data-bv-feedbackicons-validating="glyphicon glyphicon-refresh" style="padding: 20px 0px;">
- <div style="width: 700px; height: 35px; float: left;">
- <div style="width: 173px; height: 30px; float: left; float: left; text-align: right;"><span style="color: #ff0000;">*</span>旧密码:</div>
- <div style="width: 395px; height: 35px; float: left;">
- <input type="text" id="oldPassword" name="oldPassword" class="form-control" value="" />
- <span id="oldpwd_err"></span>
- </div>
- </div>
- <div style="width: 700px; height: 35px; float: left; margin-top: 30px;">
- <div style="width: 173px; height: 30px; float: left; float: left; text-align: right;"><span style="color: #ff0000;">*</span>新密码:</div>
- <div style="width: 395px; height: 35px; float: left;">
- <input type="text" id="newPassword" name="newPassword" class="form-control" value="" />
- <span id="newpwd_err"></span>
- </div>
- </div>
- <div style="width: 700px; height: 35px; float: left; margin-top: 30px;">
- <div style="width: 173px; height: 30px; float: left; float: left; text-align: right;"><span style="color: #ff0000;">*</span>新密码:</div>
- <div style="width: 395px; height: 35px; float: left;">
- <input type="text" id="newPassword2" name="newPassword2" class="form-control" value="" />
- <span id="newpwd2_err"></span>
- </div>
- </div>
- <div style="width: 700px; height: 45px; float: left; margin-top: 30px;">
- <button type="reset" id="submit" class="btn btn-primary btn-lg" style="margin-left: 300px;">提交</button>
- </div>
- <div class="form-group">
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div id="footer"></div>
- <script>
- $(function () {
- $('#header').load('../Content/css/OnlineRegistrate/Header.html');
- $('#footer').load('../Content/css/OnlineRegistrate/Footer.html');
- })
- </script>
- <script>
- //点击“提交”按钮
- $("#submit").on('click', function () {
- var oldPassword = $("#oldPassword").val().trim();
- var newPassword = $("#newPassword").val().trim();
- var newPassword2 = $("#newPassword2").val().trim();
- if (oldPassword == "") {
- $("#oldpwd_err").html('<img src="../Content/images/OnlineRegistrate/yuan.png"> <span>请输入原密码</span>');
- return false;
- }
- if (newPassword == "") {
- $("#newpwd_err").html('<img src="../Content/images/OnlineRegistrate/yuan.png"> <span>请输入新密码</span>');
- return false;
- }
- if (newPassword2 == "") {
- $("#newpwd2_err").html('<img src="../Content/images/OnlineRegistrate/yuan.png"> <span>请再次输入新密码</span>');
- return false;
- }
- if (newPassword != newPassword2) {
- $("#newpwd2_err").html('<img src="../Content/images/OnlineRegistrate/yuan.png"> <span>两次输入的密码不一致</span>');
- return false;
- }
- var data = {
- userId: "@Model.Id",
- oldPassword: oldPassword,
- newPassword: newPassword
- };
- $.ajax({
- type: 'post',
- url: '/OnlineRegistrate/SavePasswordEdit',
- contentType: 'application/json',
- dataType: 'json',
- async: true,
- cache: false,
- data: JSON.stringify(data),
- success: function (result) {
- if (result.code == 200) {
- layer.msg("密码修改成功!", function () {
- window.location.href = "/OnlineRegistrate/Login";
- });
- } else {
- layer.msg(result.info);
- }
- },
- error: function (XMLHttpRequest, textStatus, errorThrown) {
- }
- });
-
-
- });
-
- </script>
-
-
- </body>
- </html>
|