123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- @model EMIS.ViewModel.SystemView.ChangePasswordView
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "UserVerify";
- }
- @section scripts{
- <script language="javascript">
- $(function () {
- $(".loginbutton").click(function () {
- if ($("#Password").val() != $("#PasswordRep").val()) {
- $.messager.alert('系统提示', '两次输入的密码必须一致', 'info');
- return;
- }
- var reg = /^(?=.*?[A-Z])(?=(.*[a-z]){1,})(?=(.*[\d]){1,})(?=(.*[\W]){1,})(?!.*\s).{8,}$/;
- var password = $("#Password").val();
- if (!reg.test(password)) {
- $.messager.alert('系统提示', '密码策略不符合(必须包含大小写英文字母、数字、字符、长度8位以上)。');
- return;
- }
- $(document.forms[0]).submit();
- });
- })
- </script>
- }
- <link href="@Url.Content("~/Content/Login.css")" rel="stylesheet" type="text/css" />
- <table align="center" valign="center" id="Table_01" width="1123" height="520" border="0"
- cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="3" class="mainDiv01">
-
- </td>
- </tr>
- <tr>
- <td colspan="3" class="mainDiv02">
-
- </td>
- </tr>
- <tr>
- <td colspan="3" class="mainDiv03">
-
- </td>
- </tr>
- <tr>
- <td rowspan="2" class="mainDiv04">
-
- </td>
- <td class="mainDiv05">
- @using (Html.BeginForm(new { UserID = Request["UserID"], ReturnUrl = ViewBag.ReturnUrl }))
- {
- <table align="center" valign="center" width="218" height="168" border="0" cellpadding="0"
- cellspacing="0">
- <tr>
- <td colspan="3" height="26">
- <font color="red">验证成功,现在可以开始修改密码。</font>
- </td>
- </tr>
- <tr>
- <td colspan="3" height="16">
- </td>
- </tr>
- <tr>
- <td width="35" height="26">
- <img src="@Url.Content("~/Content/images/password.png")" width="30" height="34" alt="" />
- </td>
- <td colspan="2">
- @Html.PasswordFor(x => x.Password, new { placeholder = "请输入密码", autocomplete = "off" })
- @Html.ValidationMessageFor(x => x.Password)
- </td>
- </tr>
- <tr>
- <td width="35" height="26">
- <img src="@Url.Content("~/Content/images/password.png")" width="30" height="34" alt="" />
- </td>
- <td colspan="2">
- @Html.PasswordFor(x => x.PasswordRep, new { placeholder = "请再次输入密码", autocomplete = "off" })
- @Html.ValidationMessageFor(x => x.PasswordRep)
- </td>
- </tr>
- <tr>
- <td colspan="3" height="16">
- </td>
- </tr>
- <tr>
- <td colspan="3" class="loginbutton">
- 下 一 步
- </td>
- </tr>
- </table>
- }
- </td>
- <td rowspan="2" class="mainDiv06">
-
- </td>
- </tr>
- <tr>
- <td class="mainDiv07">
-
- </td>
- </tr>
- <tr>
- <td colspan="3" class="mainDiv08">
-
- </td>
- </tr>
- </table>
|