Mini.Crm/Mini.Web/Areas/Admin/Views/InnerUser/ChangeUserIfo.cshtml

65 lines
2.3 KiB
Plaintext

@model Air.Model.AirAdminViewModel.BasUpdatePwd
@using Mini.Web.WebHelper;
@{
ViewBag.Title = "ChangeUserIfo";
Layout = "~/Areas/Admin/Views/Shared/_Index_LayoutEdit.cshtml";
}
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/Admin/InnerUser/ChangeUserIfo",
type: "Post",
data: $("#CreateForm").serialize(),
dataType: "json",
loading: true,
success: function (data) {
$.messageBox5s('提示', data.message);
}
});
}
return false;
});
});
</script>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
<div style=" height:90%;width:100%; overflow-y:auto">
<form id="CreateForm">
@Html.ValidationSummary(true)
<fieldset style="width:95%;">
<legend>修改密码</legend>
<table class="fromEditTable setTextWidth300">
<tbody>
<tr>
<td width="60px" style="width:100px;">
@Html.LabelFor(m => m.password)
</td>
<td style="width:310px">
@Html.HiddenFor(m => m.uid)
@Html.PasswordFor(m => m.password, new { style = "width:300px;" })
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.password)
</td>
</tr>
<tr>
<td width="60px" style="width:100px;">
@Html.LabelFor(m => m.rpassword)
</td>
<td style="width:310px">
@Html.PasswordFor(m => m.rpassword, new { style = "width:300px;" })
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.rpassword)
</td>
</tr>
</tbody>
</table>
</fieldset>
</form>
</div>