123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- @{
- ViewBag.Title = "重置密码";
- Layout = "~/Views/Shared/_Form.cshtml";
- }
- <script src="~/Content/scripts/plugins/jquery.md5.js"></script>
- <script>
- var keyValue = request('keyValue');
- $(function () {
- $("#Account").val(request('Account'));
- $("#RealName").val(request('RealName'));
- })
- //保存事件
- function AcceptClick() {
- if (!$('#form1').Validform()) {
- return false;
- }
- var postData = $("#form1").GetWebControls(keyValue);
- postData["Password"] = $.md5($.trim($("#Password").val()))
- $.SaveForm({
- url: "../../BaseManage/User/SaveRevisePassword?keyValue=" + keyValue,
- param: postData,
- loading: "正在保存数据...",
- success: function () {
- }
- })
- }
- </script>
- <div style="margin-top: 20px; margin-right: 30px;">
- <table class="form">
- <tr>
- <td class="formTitle">姓名</td>
- <td class="formValue">
- <input id="RealName" readonly type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <td class="formTitle">帐户</td>
- <td class="formValue">
- <input id="Account" readonly type="text" class="form-control" />
- </td>
- </tr>
- <tr>
- <th class="formTitle">新密码<font face="宋体">*</font>
- </th>
- <td class="formValue">
- <input id="Password" type="text" class="form-control" placeholder="请输入新密码" isvalid="yes" checkexpession="NotNull" />
- </td>
- </tr>
- </table>
- </div>
|