Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\Hunanlinda\Control\User\Signup.ascx
??<%@ Control Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.Control.User.Signup" %> <div class="alert alert-block"> <a target="_blank" class="close" data-dismiss="alert" href="#" style="display: none">?</a> <h4 class="alert-heading">???</h4> ????????10??????????????????????????<br> ?????????????????????????? </div> <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> <% 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> <% if (this.ListUnitMaster.Count > 0) { %> <div class="item"> <label class="lbl">???????????</label> <%= new HtmlSelect("UnitMaster", "Name", "Guid", "Guid") { Option = this.ListUnitMaster,OnChange="ChangeUnit(this);" }.InsertOption("::?????::", "", 0)%> </div> <% } %> <div class="item" id="divUnit" style="display: none;"> <label class="lbl">???????????</label> <span id="spanUnit"></span> </div> <div class="item"> <label class="lbl">??????</label> <%= new HtmlText("UserName",null,12)%> <%= new HtmlYKTip("UserName") %> </div> <div class="item"> <label class="lbl">?????</label> <%= new HtmlPassword("Password",null,30)%> <%= new HtmlYKTip("Password") { }%> </div> <div class="item"> <label class="lbl">????????</label> <%= new HtmlPassword("PasswordConfirm",null,30)%> <%= new HtmlYKTip("PasswordConfirm") %> </div> <div class="item"> <label class="lbl">????????</label> <%= new HtmlText("TrueName",null,20) %> <%= new HtmlYKTip("TrueName") %> </div> <div class="item"> <label class="lbl">??????</label> <%= new HtmlText("MobilePhone",null,20) %> <%= new HtmlYKTip("MobilePhone") %> </div> <div class="item"> <label class="lbl">??????</label> <%= new HtmlText("IDCard",null,20) %> <%= new HtmlYKTip("IDCard") %> </div> <div class="item"> <label class="lbl">??????</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 HtmlCheckBox("Agree", true, 1, 0) { Class = "chk" }%> ??????????? <%= new HtmlAnchor("??????") { Href = WebUrl.Agreement(), Target = "_blank" }%> ?? <%= new HtmlAnchor("??????") { Href = WebUrl.Copyright(), Target = "_blank" }%> </div> <div class="item indent"> <%= new HtmlSubmit("?? ??", "Signup", "SignupClient(this);") { Class = "btn-black" }%> </div> </div> </div> </form> <!--log end--> <div class="clear"></div> <!--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=MobilePhone]").formValidator({ // validatorGroup: "Signup", // rules: // { // required: null, // regex: "mobile" // }, // message: // { // required: "???????????", // regex: "??????????????" // } //}); <% if (SettingGroup.IsRequiredIDCard) {%> $("#frmSignup [name=IDCard]").formValidator({ validatorGroup: "Signup", rules: { required: null, regex: "idcard" }, 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 ChangeUnit(send) { var unitMasterGuid = $("#frmSignup [name=UnitMaster]").val(); if (unitMasterGuid != null) { $("#spanUnit").html("????????????"); $("#divUnit").show(); Global.HtmlControl("<%= ControlPath("/User/SelectUnit")%>", "ParentUnitMaster=" + encodeURIComponent(unitMasterGuid), null, function (result) { $("#spanUnit").html(result.Html); }); } else { //?????? $("#spanUnit").html(""); $("#divUnit").hide(); } } 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