Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\User\FindPWDCheck.ascx
??<%@ Control Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.Control.User.FindPWDCheck" %> <% if (this.Domain != null && this.User != null) { if (this.Domain.Status != (int)AVA.ResourcesPlatform.Model.Pub.DomainStatusEnum.??? || this.User.Status != (int)AVA.ResourcesPlatform.Model.Pub.UserStatusEnum.???) { //????? %> <script type="text/javascript"> alert("????????"); window.location.href = "<%= WebUrl.FindPWD() %>"; </script> <% } else { %> <div class="alert alert-block"> <a style="display: none" href="#" data-dismiss="alert" class="close" target="_blank">?</a> <h4 class="alert-heading">??????</h4> [<%= this.User.UserName %>]?????????????????????????????????????????????? <%--????????:<%= CreateInstance.UserDao.UserCheckCode(this.User) %>??</span>--%> </div> <div class="forms"> <form id="frmFindPWDCheck" onsubmit="return false;" method="post" action=""> <div class="items"> <div class="items"> <div class="item"> <label class="lbl"> <span class="required">*</span>???????? </label> <%= new HtmlText("UserCheckCode",null,12)%> <%= new HtmlYKTip("UserCheckCode") { }%> </div> <div class="item"> <label class="lbl"> <span class="required">*</span>?????? </label> <%= new HtmlPassword("Password",null,30)%> <%= new HtmlYKTip("Password") { }%> </div> <div class="item"> <label class="lbl"> <span class="required">*</span>???????? </label> <%= new HtmlPassword("PasswordConfirm",null,30)%> <%= new HtmlYKTip("PasswordConfirm") { }%> </div> <div class="item"> <label class="lbl"> <span class="required">*</span>?????? </label> <%= new HtmlText("CheckCode",null,4)%> <%= new HtmlYKTip("CheckCode") { }%> </div> <div class="item indent"> <div class="regcode"> <%= new HtmlImg("", "???????????") { ID = "checkCodeIMG", OnClick = "changeCheckCode();" }%> ??????<a href="#" onclick="changeCheckCode();return false;">?????</a> </div> <script type="text/javascript"> changeCheckCode(); function changeCheckCode() { document.getElementById("checkCodeIMG").src = "checkcode.aspx?rnd=" + Math.random(); } </script> </div> <div class="item indent"> <%= new HtmlHidden("DomainGuid",this.Domain.Guid) %> <%= new HtmlHidden("UserGuid",this.User.Guid) %> <%= new HtmlSubmit("??????", "FindPWDCheck", "FindPWDCheckClient(this);")%> </div> </div> </div> </form> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "FindPWDCheck", form: "#frmFindPWDCheck", alertMessage: true, showMessage: false }); $("#frmFindPWDCheck [name=UserCheckCode]").formValidator({ validatorGroup: "FindPWDCheck", rules: { required: null }, message: { required: "???????????" } }); //?????? $("#frmFindPWDCheck [name=Password]").formValidator({ validatorGroup: "FindPWDCheck", rules: { required: null, regex: "^\\w{4,16}$" }, message: { required: "????????????", regex: "??????4??16????????" } }); $("#frmFindPWDCheck [name=PasswordConfirm]").formValidator({ validatorGroup: "FindPWDCheck", wideWord: true, rules: { required: null, equalTo: "#frmFindPWDCheck [name=Password]" }, message: { required: "???????????", equalTo: "??????????????" } }); $("#frmFindPWDCheck [name=CheckCode]").formValidator({ validatorGroup: "FindPWDCheck", rules: { required: null }, message: { required: "?????????" } }); </script> <script type="text/javascript"> function FindPWDCheckClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.FindPWDCheck", data: Global.GetFormValue($("#frmFindPWDCheck")), async: true, dataType: 'json', success: function (result) { $(send).val("??????"); alert("???????????"); window.location.href = "<%= WebUrl.Login() %>"; }, beforeSend: function () { $(send).val("??????..."); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val("??????"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script> <% } } else { //????? %> <script type="text/javascript"> alert("???????????"); window.location.href = "<%= WebUrl.FindPWD() %>"; </script> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de