123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- @model EMIS.ViewModel.SystemView.ChangePasswordView
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @using Bowin.Common;
- @{
- Layout = "~/Views/Shared/_FrameLayout.cshtml";
- List<string> lurl = new List<string>();
- lurl.Add("Content/");
- lurl.Add("Doc/");
- lurl.Add("Scripts/");
- lurl.Add("Login/");
- lurl.Add("UploadFile/");
- lurl.Add("Account/ChangePassword");
- FormsAuthenticationHelper fahelper = new FormsAuthenticationHelper();
- var cookieName = EMIS.Utility.Const.LOCAL_SETTING_LOGIN_COOKIENAME;
- fahelper.AuthenticateRequest(HttpContext.Current, cookieName, lurl);
- }
- @section scripts{
- <script type="text/javascript">
- function Password_Save() {
- if ($("#Password").val() != $("#PasswordRep").val()) {
- $.messager.alert('系统提示', '两次输入的密码必须一致', 'info');
- return;
- }
- $(document.forms[0]).submit();
- }
- function ChangeSuccess (data) {
- $('a').removeAttr('disabled', 'disabled');
- $('#loading').hide();
- if (data.IsSuccess) {
- $.messager.alert('系统信息', "密码修改成功,请重新登录", null, function () {
- location.href = "@Url.Content("~/Account/LogOff")";
- });
- } else {
- $.messager.alert('系统信息', data.Message, null);
- }
- }
- </script>
- }
- <div data-options="region:'north',title:'',split:false, border:false" class="index_top_banner">
- <div class="index_top_bg">
- <div id="index_top" class="index_top_left">
- <img src="@Url.Content("~/common/ResImage?key=HomeLogo")" />
- </div>
- <div id="divCurrentInformation">
- 当前用户:@(((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).LoginID + "-" + ((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).Name + (((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).IsStudent ? "同学" : "老师")) @Html.SystemClock(new SystemClockOptions { IsJump = true })
- </div>
- <div style="float: right; padding-right: 30px; padding-top: 40px;">
- <a href="@Url.Content("~/Account/LogOff")" style="z-index: 99999;">
- <img border="0" title="退出" src="@Url.Content("~/Content/Bowin.Control.Core/images/h_logout.jpg")" />
- </a>
- </div>
- </div>
- </div>
- <div id="index_left" class="index_left_bg" data-options="region:'west',title:'',split:false,tools:'#tab-tools'"
- style="width: 150px;">
- </div>
- <div region="center" border="true" title="" class="index_center_bg">
- <div id="index_main" class="easyui-layout" data-options="border:false,fit:true">
- <div data-options="region:'center',border:false">
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- Url = Url.Content("~/Account/ChangePassword"),
- OnSuccess = "ChangeSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- <span style="color: #000000">@(((EMIS.Utility.FormValidate.CustomPrincipal)Context.User).NeedChangePwdReason),请修改密码</span>
- </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 = "请输入旧密码", autocomplete = "off" })
- @Html.ValidationMessageFor(x => x.OldPassword)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Password):
- </td>
- <td>
- @Html.PasswordFor(x => x.Password, new { placeholder = "请输入密码", autocomplete = "off" })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.PasswordRep):
- </td>
- <td>
- @Html.PasswordFor(x => x.PasswordRep, new { placeholder = "请再次输入密码", autocomplete = "off" })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- </div>
- </div>
- </div>
- <div id="index_bottom" class="index_bottom_bg" region="south" border="true" title="">
- <div style="float: left; width: 40%; text-align: center; white-space: nowrap;">
- 教育部中央教育科学研究所高等教育研究中心监制
- </div>
- <div style="float: right; width: 40%; text-align:right; white-space: nowrap;">
- <a href="http://www.bowintek.com" target="_blank">
- Copyright <img src="~/Images/copyright.png" style="height:10px" /> 广州市博颖信息科技有限公司 All Rights Reserved
- </a>
- </div>
- </div>
- <div id="sysWindow">
- </div>
|