Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\Login.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Login" %> <!doctype html > <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>??????????????(Ver:<%= typeof(AVA.ResourcesPlatform.AdminUI.Index).Assembly.GetName().Version %>) :: <%= Define.Get("???")%></title> <script type="text/javascript"> 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> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap.css") %> <%-- <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap.theme.css") %>--%> <%= Import.CSS("/zh-cn/bootstrap/admin.css") %> </head> <body class="login_page"> <%--<div style="position:absolute; top:30px; margin: 0 auto;text-align:center; width:100%;"> <img src="images/avalogo2.png" /> </div>--%> <div class="container"> <form class="form-signin" id="frmLogin"> <div class="logo"> </div> <h2 class="form-signin-heading"> <img src="images/avalogo.png" /><span class="pull-right" style="color: #2a6496;">???</span></h2> <div style="display: none;"> <%= new HtmlSelect("DomainGuid","Name","Guid","Guid") { Class = "form-control", Option = CreateInstance.DomainDao.Where(l=>1==1).OrderBy(l=>l.SortNumber).ToList(), TabIndex = 1 }.SelectValue(CookieGroup.DomainGuid).AddAttribute("placeholder",Define.Get("Domain_??????"))%> </div> <%= new Z.Core.Tools.HtmlYKTip("LoginName")%> <%= new HtmlText("LoginName", "", 20) { Class = "form-control", OnFocus = "this.select();", OnKeyDown = "getTab(event,'LoginPass');", TabIndex = 1 }.AddAttribute("placeholder",Define.Get("User_?????"))%> <%= new Z.Core.Tools.HtmlYKTip("LoginPass")%> <%= new HtmlPassword("LoginPass", "", 20) { Class = "form-control", OnFocus = "this.select();", OnKeyDown = "getTab(event,'CheckCode');", TabIndex = 2 }.AddAttribute("placeholder",Define.Get("User_???"))%> <%= new HtmlText("CheckCode", null, 4) { Class = "form-control form-checkcode", TabIndex = 3, }.Style(new { Text_Transform = "uppercase"}).AddAttribute("placeholder",Define.Get("User_?????"))%> <div style="display: inline-block;"> <img id="checkCodeIMG" title="<%= Define.Get("???????????").ToScriptTag() %>" onclick="changeCheckCode();" /> </div> <%= new HtmlSubmit(Define.Get("User_???")) { ValidatorGroup = "Login", OnClick = "validator_it(this)", Class="btn btn-lg btn-primary btn-block" }%> </form> <div class="flash_messages alert alert-danger"> <button type="button" class="close" data-dismiss="alert">×</button> <p></p> </div> </div> <!-- /container --> <div id="footer" style="position: absolute; width: 100%;"> <div class="container"> <ul class="nav "> <li> <a onclick="return false;this.setHomePage('<%= Request.WebPath() %>');" title="????????????" href="#home">??????</a> </li> <li> <a href="http://www.ava.com.cn" target="_blank">????? ????????????????????? ?????020-37885228</a> </li> <li><a target="_blank" href="#">??????</a> </li> <li> <a target="_blank" href="#">???</a> </li> <li> <a href="#">?????:<%= typeof(AVA.ResourcesPlatform.AdminUI.Index).Assembly.GetName().Version %></a> </li> </ul> </div> </div> <%= Import.Script("/jquery.1.9.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("/ToolTip/jquery.tipsy.js")%> <%= Import.Script("/global.aspx")%> <%= Import.Script("js", "/global.js")%> <%= Import.Script("js", "/Public.js")%> <%= Import.Script("js", "/ListPublic.js")%> <%= Import.Script("js", "/Ajax/Pub/UserAjax.js")%> <%= Import.Script("/app.js")%><%= Import.Script("/bootstrap/bootstrap.min.js")%> <%-- <%= Import.Script("js", "/JQueryUI/jquery.validate/jquery.validate.js")%> <%= Import.Script("js", "/JQueryUI/jquery.validate/messages_zh.js")%>--%> <script type="text/javascript"> $(function () { function placeFooter() { var windHeight = $(window).height(); var footerHeight = $('#footer').height(); var offset = parseInt(windHeight) - parseInt(footerHeight); $('#footer').css('top', offset); } $(window).resize(function () { placeFooter(); }); placeFooter(); // hide it before it's positioned }); </script> <script type="text/javascript"> function validator_it(send) { var txtCheckCode = document.getElementById("frmLogin").elements["CheckCode"] ? document.getElementById("frmLogin").elements["CheckCode"] : null; try { //????????????? nothing work. if (txtCheckCode != null) { var checkCode = $.cookie("checkCode"); if (checkCode != null && txtCheckCode.value.toUpperCase() != checkCode) { //alert(""User_?????????"); $(".flash_messages").fadeIn(function () { $(this).find("p").html("?????????"); }); txtCheckCode.value = ""; txtCheckCode.focus(); return; } } jQuery.support.cors = true; send.value = "<%= Define.Get("User_?????...").ToScriptChar() %>"; UserAjax.Login($("#frmLogin"), send, function (dto) { send.value = "<%= Define.Get("User_??????...").ToScriptChar() %>"; // if (document.getElementById("saveLoginName").checked == true) { // //?????????cookie // $.cookie("loginName", dto.LoginName, 30); // } // else { // //??????cookie // $.cookie("loginName", null) // } //alert(dto.Name); window.location = "./Index.aspx"; }, function (XMLHttpRequest, textStatus, errorThrown) { send.value = "???"; changeCheckCode(); txtCheckCode.value = ""; //send.value = "<%= Define.Get("User_???").ToScriptChar() %>"; document.getElementById("frmLogin").CheckCode.focus(); $(".flash_messages").fadeIn(function () { $(this).find("p").html(XMLHttpRequest.responseText); }); }); } catch (ex) { return false; } } </script> <script type="text/javascript"> $(document).ready(function () { //????????????????? $("[name=LoginName]").focus(); //?????? $.validator.initConfig({ validatorGroup: "Login", form: "#frmLogin" }); $("[name=LoginName]").formValidator( { validatorGroup: "Login", rules: { required: null }, message: "<%= Define.Get("User_????????").ToScriptChar() %>" }); $("[name=LoginPass]").formValidator( { validatorGroup: "Login", rules: { required: null }, message: "<%= Define.Get("User_?????????").ToScriptChar() %>" }); $("#frmLogin").on("submit", function (e) { e.preventDefault(); //var send = $(e).children().find("input[type='submit']"); //validator_it(send); }); }); </script> <script type="text/javascript"> var loginName = $.cookie("loginName"); if (loginName != null) { document.getElementById("frmLogin").LoginName.value = loginName document.getElementById("saveLoginName").checked = true; } // document.getElementById("frmLogin").LoginName.select(); function getTab(evt, elem) { evt = window.event != null ? window.event : evt; if (evt.which && (evt.which == 13 || evt.which == 9)) { if (document.getElementById("frmLogin").elements[elem] != null) { document.getElementById("frmLogin").elements[elem].focus(); evt.preventDefault(); //???Firefox??????????? } } else if (!evt.which && (evt.keyCode == 13 || evt.keyCode == 9)) { if (document.getElementById("frmLogin").elements[elem] != null) { document.getElementById("frmLogin").elements[elem].focus(); evt.returnValue = false; //???IE?????? } } } function changeCheckCode() { document.getElementById("checkCodeIMG").src = "checkcode.aspx?rnd=" + Math.random(); document.getElementById("checkCodeIMG").style.display = ""; } $(function () { changeCheckCode(); }); </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de