Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\User\Signup_Header.ascx
??<%@ Control Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.Control.User.Signup" %> <script> //$(function(){ // flash(' <h4 class="alert-heading">???</h4>????????10??????????????????????????<br>??????????????????????????'); //}); </script> <form id="frmSignup" onsubmit="return false;" method="post" action=""> <div class="forms"> <div class="items"> <div class="item" style="display:<%= this.ListDomain.Count>1 ? "" : " none"%>;"> <label class="lbl">????????</label> <%= new HtmlSelect("DomainGuid", "Name", "Guid", "Guid") { Option = this.ListDomain, SelectedValue = CookieGroup.DomainGuid }%> <%= new HtmlYKTip("DomainGuid")%> </div> <div class="item"> <label class="lbl">????????</label> <%= new HtmlSelect("UserTypeGuid", "Name", "Guid", "Guid") { Option = this.ListUserType }%> <%= new HtmlYKTip("UserTypeGuid")%> <%-- <label class="lbl">????????</label> <% for (int i = 0; i <= this.ListUserType.Count - 1; i++) { var userType = this.ListUserType[i]; %> <label for="UserTypeGuid<%= userType.Guid %>" style="margin-left:5px;width:auto;"> <%= new HtmlRadio("UserTypeGuid", i == 0 ? true : false, userType.Guid, ""){ ID = "UserTypeGuid" + userType.Guid }.AddAttribute("style","display:inline;") %> <%= userType.Name %> </label> <% } %>--%> </div> <div class="item"> <label class="lbl">???????</label> <%= new HtmlSelect("GradeGuid","Name","Guid","Guid"){ Option = this.ListGrade}.InsertOption("::?????::", null, 0)%> <%= new HtmlYKTip("GradeGuid").Style(new { Margin_Left="0px"})%> </div> <div class="item"> <label class="lbl">??????</label> <%= new HtmlText("UserName",null,12)%> <%= new HtmlYKTip("UserName").Style(new { Margin_Left="0px"}) %> </div> <div class="item"> <label class="lbl">?????</label> <%= new HtmlPassword("Password",null,30)%> <%= new HtmlYKTip("Password").Style(new { Margin_Left="0px"}) %> </div> <div class="item"> <label class="lbl">????????</label> <%= new HtmlPassword("PasswordConfirm",null,30)%> <%= new HtmlYKTip("PasswordConfirm").Style(new { Margin_Left="0px"}) %> </div> <div class="item"> <label class="lbl">????????</label> <%= new HtmlText("TrueName",null,20) %> <%= new HtmlYKTip("TrueName").Style(new { Margin_Left="0px"}) %> </div> <div class="item"> <label class="lbl">??????</label> <%= new HtmlText("MobilePhone",null,20) %> <%= new HtmlYKTip("MobilePhone").Style(new { Margin_Left="0px"}) %> </div> <div class="item"> <label class="lbl">??????</label> <%= new HtmlText("CheckCode",null,4) %> <%= new HtmlYKTip("CheckCode").Style(new { Margin_Left="0px"}) %> </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 HtmlCheckBox("Agree", true, 1, 0) { Class = "chk" }%> ??????????? <%= new HtmlAnchor("??????") { Href = WebUrl.Agreement(), Target = "_blank" }.Style(new { Color="blue"})%> ?? <%= new HtmlAnchor("??????") { Href = WebUrl.Copyright(), Target = "_blank" }.Style(new { Color="blue"})%> </div> <div class="item indent"> <%= new HtmlSubmit("?? ??","Signup","SignupClient(this);") %> </div> <div class="item indent"> <div class="gopec"> ????????????????? <%= new HtmlAnchor("?????????") { Href="http://www.ava.com.cn", Target="_blank" }.Style(new { Color="blue"})%> </div> </div> </div> </div> </form> <!--log end--> <!--span4 end--> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "Signup", form: "#frmSignup", alertMessage: true, showMessage: false }); //????? $("#frmSignup [name=UserName]").formValidator({ validatorGroup: "Signup", rules: { required: null, regex: "^[A-Za-z0-9]{4,12}$" }, message: { required: "?????????", regex: "???????????????????????4??24?????" } }); //?????? $("#frmSignup [name=Password]").formValidator({ validatorGroup: "Signup", rules: { required: null, regex: "^\\w{4,16}$" }, message: { required: "???????????", regex: "?????4??16????????" } }); $("#frmSignup [name=PasswordConfirm]").formValidator({ validatorGroup: "Signup", wideWord: true, rules: { required: null, equalTo: "#frmSignup [name=Password]" }, message: { required: "???????????", equalTo: "??????????????" } }); $("#frmSignup [name=TrueName]").formValidator({ validatorGroup: "Signup", rules: { required: null }, message: { required: "???????????" } }); $("#frmSignup [name=DomainGuid]").formValidator({ validatorGroup: "Signup", rules: { required: null }, message: { required: "????????????" } }); $("#frmSignup [name=GradeGuid]").formValidator({ validatorGroup: "Signup", rules: { required: null }, message: { required: "????????????" } }); //$("#frmSignup [name=MobilePhone]").formValidator({ // validatorGroup: "Signup", // rules: // { // required: null, // regex: "mobile" // }, // message: // { // required: "???????????", // regex: "??????????????" // } //}); $("#frmSignup [name=CheckCode]").formValidator({ validatorGroup: "Signup", rules: { required: null }, message: { required: "?????????" } }); $("#frmSignup [name=Agree]").formValidator({ validatorGroup: "Signup", rules: { min: 1 }, message: { min: "??????????????????????????" } }); </script> <script type="text/javascript"> function SignupClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.Signup", data: Global.GetFormValue($("#frmSignup")), async: true, dataType: 'json', success: function (result) { $(send).val("??????,??????????????"); //Global.Disabled(send, false); if (result != null && typeof (result.Message) != "undefined") { //????? alert(result.Message); $(send).val(result.Message); } else { window.location.href = result; } }, 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>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de