12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- @model EMIS.ViewModel.SystemView.ChangePasswordView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "ChangePassword";
- }
- @section scripts{
- <script language="javascript">
- function Password_Save() {
- if ($("#Password").val() != $("#PasswordRep").val()) {
- $.messager.alert('系统提示', '两次输入的密码必须一致', 'info');
- return;
- }
- $(document.forms[0]).submit();
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 密码修改</div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
- <div class="current_navbar toolbar">
- <div class="func_info">
- @Html.Button(new ButtonOptions { OnClick = "Password_Save()", Icon = ButtonIcon.Save, Text = "保存" })
- </div>
- </div>
- </div>
- </div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0" id="departmenttable" width="100%">
- <tr>
- <td width="20%">@Html.LabelFor(x => x.OldPassword):
- </td>
- <td>@Html.PasswordFor(x => x.OldPassword, new { placeholder = "请输入旧密码" })
- @Html.ValidationMessageFor(x => x.OldPassword)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Password):
- </td>
- <td>@Html.PasswordFor(x => x.Password, new { placeholder = "请输入密码" })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.PasswordRep):
- </td>
- <td>@Html.PasswordFor(x => x.PasswordRep, new { placeholder = "请再次输入密码" })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|