25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

195 satır
10 KiB

  1. @model Learun.Application.TwoDevelopment.AdmissionsPlatform.AP_OnlineUserInfoEntity
  2. <!DOCTYPE HTML>
  3. <html>
  4. <head>
  5. <meta http-equiv="X-UA-Compatible" content="IE=7,IE=8,IE=9,IE=10" />
  6. <meta name="”renderer”" content="”webkit|ie-comp|ie-stand”" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  11. <meta name="renderer" content="webkit">
  12. <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
  13. <title>网上报名-修改密码</title>
  14. <link href="~/Content/bootstrap/bootstrap.min.css" rel="stylesheet" />
  15. <link href="~/Content/css/OnlineRegistrate/bootstrap.css" rel="stylesheet" />
  16. <link href="~/Content/css/OnlineRegistrate/default.css" rel="stylesheet" />
  17. <link href="~/Content/css/OnlineRegistrate/hddb.css" rel="stylesheet" />
  18. <link href="~/Content/css/OnlineRegistrate/style1.css" rel="stylesheet" />
  19. <link href="~/Content/css/OnlineRegistrate/zyjs.css" rel="stylesheet" />
  20. <link href="~/Content/css/OnlineRegistrate/login.css" rel="stylesheet" />
  21. <link href="~/Content/css/OnlineRegistrate/style.css" rel="stylesheet" />
  22. <link href="~/Content/jquery/plugin/layer/skin/default/layer.css" rel="stylesheet" />
  23. <script src="~/Content/jquery/jquery-1.10.2.min.js"></script>
  24. <script src="~/Content/bootstrap/bootstrap.min.js"></script>
  25. <script src="~/Content/js/OnlineRegistrate/bootstrapValidator.js"></script>
  26. <script src="~/Content/js/OnlineRegistrate/tooltips.js"></script>
  27. <script src="~/Content/jquery/plugin/layer/layer.js"></script>
  28. </head>
  29. <body style="overflow-x: hidden;">
  30. <div id="header"></div>
  31. <div class="page-container">
  32. <div class="page-content">
  33. <div class="row">
  34. <div class="col-md-12">
  35. <div class="section section-body">
  36. <div class="row tl-con" style="padding: 20px;">
  37. <div class="zp zp2">
  38. <div class="">
  39. @if (Model.PhotoUrl == null || Model.PhotoUrl == "")
  40. {
  41. <img src="~/Content/images/OnlineRegistrate/mrtx.jpg" style="width: 170px; height: 200px;" />
  42. }
  43. else
  44. {
  45. <img src="@Model.PhotoUrl" style="width: 170px; height: 200px;" />
  46. }
  47. </div>
  48. </div>
  49. <div class="zp3" style="padding-left: 90px; padding-top: 15px;">
  50. <h3>报考校区:<span id="CampusId"></span></h3>
  51. <p style="margin-top: 25px;">
  52. 您好:@Model.RealName 同学,欢迎登录报名系统!
  53. @if (Model.AP_OnlineStudentInfoEntity.IsPaymentId == "1")
  54. {
  55. if (Model.AP_OnlineStudentInfoEntity.IsReportId == "1")
  56. {
  57. <span style="color:green;">报到成功,欢迎加入山西冶金技师学院!</span>
  58. }
  59. else
  60. {
  61. <span style="color:blue;">缴费成功,请去学校报到!</span>
  62. }
  63. }
  64. else
  65. {
  66. <span style="color: red;">您当前还未缴费,请先缴费!</span>
  67. }
  68. </p>
  69. <div class="form-group" style="margin-top: 25px;">
  70. <button type="reset" class="btn btn-primary" style="margin-left:20px;" onclick="window.location.href = '/OnlineRegistrate/RegistrateForm?userId=@Model.Id'">取消返回</button>
  71. <button type="reset" class="btn btn-primary" style="margin-left:20px;" onclick="window.location.href = '/OnlineRegistrate/Login'">退出系统</button>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="row" id="mima">
  79. <div class="col-md-12">
  80. <div class="section">
  81. <div class="section section-body">
  82. <form id="formEdit1" name="formEdit1" method="post" class="form-horizontal" action=""
  83. data-bv-message="This value is not valid"
  84. data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
  85. data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
  86. data-bv-feedbackicons-validating="glyphicon glyphicon-refresh" style="padding: 20px 0px;">
  87. <div style="width: 700px; height: 35px; float: left;">
  88. <div style="width: 173px; height: 30px; float: left; float: left; text-align: right;"><span style="color: #ff0000;">*</span>旧密码:</div>
  89. <div style="width: 395px; height: 35px; float: left;">
  90. <input type="text" id="oldPassword" name="oldPassword" class="form-control" value="" />
  91. <span id="oldpwd_err"></span>
  92. </div>
  93. </div>
  94. <div style="width: 700px; height: 35px; float: left; margin-top: 30px;">
  95. <div style="width: 173px; height: 30px; float: left; float: left; text-align: right;"><span style="color: #ff0000;">*</span>新密码:</div>
  96. <div style="width: 395px; height: 35px; float: left;">
  97. <input type="text" id="newPassword" name="newPassword" class="form-control" value="" />
  98. <span id="newpwd_err"></span>
  99. </div>
  100. </div>
  101. <div style="width: 700px; height: 35px; float: left; margin-top: 30px;">
  102. <div style="width: 173px; height: 30px; float: left; float: left; text-align: right;"><span style="color: #ff0000;">*</span>新密码:</div>
  103. <div style="width: 395px; height: 35px; float: left;">
  104. <input type="text" id="newPassword2" name="newPassword2" class="form-control" value="" />
  105. <span id="newpwd2_err"></span>
  106. </div>
  107. </div>
  108. <div style="width: 700px; height: 45px; float: left; margin-top: 30px;">
  109. <button type="reset" id="submit" class="btn btn-primary btn-lg" style="margin-left: 300px;">提交</button>
  110. </div>
  111. <div class="form-group">
  112. </div>
  113. </form>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. <div id="footer"></div>
  121. <script>
  122. $(function () {
  123. $('#header').load('../Content/css/OnlineRegistrate/Header.html');
  124. $('#footer').load('../Content/css/OnlineRegistrate/Footer.html');
  125. })
  126. </script>
  127. <script>
  128. //点击“提交”按钮
  129. $("#submit").on('click', function () {
  130. var oldPassword = $("#oldPassword").val().trim();
  131. var newPassword = $("#newPassword").val().trim();
  132. var newPassword2 = $("#newPassword2").val().trim();
  133. if (oldPassword == "") {
  134. $("#oldpwd_err").html('<img src="../Content/images/OnlineRegistrate/yuan.png">&nbsp;<span>请输入原密码</span>');
  135. return false;
  136. }
  137. if (newPassword == "") {
  138. $("#newpwd_err").html('<img src="../Content/images/OnlineRegistrate/yuan.png">&nbsp;<span>请输入新密码</span>');
  139. return false;
  140. }
  141. if (newPassword2 == "") {
  142. $("#newpwd2_err").html('<img src="../Content/images/OnlineRegistrate/yuan.png">&nbsp;<span>请再次输入新密码</span>');
  143. return false;
  144. }
  145. if (newPassword != newPassword2) {
  146. $("#newpwd2_err").html('<img src="../Content/images/OnlineRegistrate/yuan.png">&nbsp;<span>两次输入的密码不一致</span>');
  147. return false;
  148. }
  149. var data = {
  150. userId: "@Model.Id",
  151. oldPassword: oldPassword,
  152. newPassword: newPassword
  153. };
  154. $.ajax({
  155. type: 'post',
  156. url: '/OnlineRegistrate/SavePasswordEdit',
  157. contentType: 'application/json',
  158. dataType: 'json',
  159. async: true,
  160. cache: false,
  161. data: JSON.stringify(data),
  162. success: function (result) {
  163. if (result.code == 200) {
  164. layer.msg("密码修改成功!", function () {
  165. window.location.href = "/OnlineRegistrate/Login";
  166. });
  167. } else {
  168. layer.msg(result.info);
  169. }
  170. },
  171. error: function (XMLHttpRequest, textStatus, errorThrown) {
  172. }
  173. });
  174. });
  175. </script>
  176. </body>
  177. </html>