Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ZhuHai\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 }.InsertOption("::?????::", "", 0)%> <%= new HtmlYKTip("DomainGuid")%> </div> <div class="item"> <label class="lbl">????????</label> <%= new HtmlSelect("UserTypeGuid", "Name", "Guid", "Guid") { Option = this.ListUserType }.InsertOption("::?????::", "", 0)%> </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> <span style="color:red">??????????????????</span> </div> <div class="item"> <label class="lbl">??????</label> <%= new HtmlText("UserName",null,18)%> <%= 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);") %> </div> <div class="item indent"> <div class="gopec"> ????????????????? <%= new HtmlAnchor("?????????") { Href="http://www.ava.com.cn", Target="_blank" }%> </div> </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: "idcard" }, message: { required: "?????????", regex: "???????????????" } }); //??????? $("#frmSignup [name=DomainGuid]").formValidator({ validatorGroup: "Signup", rules: { required: null }, message: { required: "????????????" } }); //?????? $("#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: "??????????????" } }); $("#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