Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\Hunanlinda\Control\User\Login.ascx
??<%@ Control Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.Control.User.Login" %> <div class="alert alert-block"> <a style="display: none" href="#" data-dismiss="alert" class="close" target="_blank">?</a> ?????????????? </div> <div class="forms"> <form action="" onsubmit="return false;" id="frmLogin"> <div class="items"> <div class="item"> <label class="lbl">????????</label> <% var currentDomain = CreateInstance.DomainDao.Where(l => l.DomainType == (int)AVA.ResourcesPlatform.Model.Pub.DomainDomainTypeEnum.??????).FirstResult(); %> <%= new HtmlSelect("DomainGuid", "Name", "Guid", "Guid") { Option = this.ListDomain, SelectedValue = CookieGroup.DomainGuid }.InsertOption(currentDomain.Name,currentDomain.Guid,0) %> <%= new HtmlYKTip("DomainGuid")%> </div> <div class="item"> <label class="lbl">??????</label> <%= new HtmlText("UserName", null)%> <%= new HtmlYKTip("UserName") %> </div> <div class="item"> <label class="lbl">?????</label> <%= new HtmlPassword("Password") %> <%= new HtmlYKTip("Password") %> </div> <div class="item indent" style=""> <%= new HtmlHidden("Src",this.Src) %> <%= new HtmlSubmit("???","Login","LoginClient(this);"){ Class = "btn-black" } %> <span class="forgot_pwd"> <%= new HtmlAnchor("??????") { Href = WebUrl.FindPWD() }%> </span> </div> </div> </form> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "Login", form: "#frmLogin", alertMessage: true, showMessage: false }); //????? $("#frmLogin [name=UserName]").formValidator({ validatorGroup: "Login", rules: { required: null }, message: { required: "?????????" } }); //?????? $("#frmLogin [name=Password]").formValidator({ validatorGroup: "Login", rules: { required: null }, message: { required: "???????????" } }); </script> <script type="text/javascript"> //????????????????? $(function () { $("#frmLogin [name=UserName]").focus(); }); var prmstr = window.location.search.substr(1); var prmarr = prmstr.split ("&"); var params = {}; for ( var i = 0; i < prmarr.length; i++) { var tmparr = prmarr[i].split("="); params[tmparr[0]] = tmparr[1]; } function LoginClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.Login", data: Global.GetFormValue($("#frmLogin")), async: true, dataType: 'json', success: function (result) { $(send).val("??????"); if (params.returnURL) { return window.location.href = params.returnURL; } if ($("#frmLogin [Name=UserName]").val() == "master") { window.location.href = "/my/masterindex.aspx"; } else { if (result.toString().indexOf("login.html") != -1) { window.location.href = "<%= WebUrl.Index() %>"; } else { window.location.href = result; } } Global.Disabled(send, false); }, 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); $("#frmLogin [name=Password]").val(""); } }); } function clearCookie() { //?????????????????????????????? return; var keys = document.cookie.match(/[^ =;]+(?=\=)/g); if (keys) { for (var i = keys.length; i--;) document.cookie = keys[i] + '=0;expires=' + new Date(0).toUTCString() } } clearCookie(); </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de