Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Control\User\Signup_Special_TJDJ.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Signup_Special_TJDJ.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.User.Signup_Special_TJDJ" %> <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"> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <tr style="display: none;"> <td style="text-align: right;"><span class="label">*????????</span></td> <td> <%= new HtmlSelect("UserTypeGuid", "Name", "Guid", "Guid") { Option = this.ListUserType }.SelectText("??????")%> </td> </tr> <tr> <td style="text-align: right;"><span class="label">*?????</span></td> <td> <%= new HtmlText("Remark",null,100)%> <%= new HtmlYKTip("Remark") %> </td> </tr> <tr> <td style="text-align: right;"><span class="label">*????????</span></td> <td> <%= new HtmlSelect("ParentUser", "TrueName", "Guid", "Guid") { Option = this.ListUserGroup,OnChange="ParentUserChange(this);" }.AddOption("::?????::",null)%> <%= new HtmlYKTip("ParentUser") %> </td> </tr> <tr> <td style="text-align: right;"><span class="label">*??????</span></td> <td> <%= new HtmlText("UserName",null,12)%> <%= new HtmlYKTip("UserName") %> </td> </tr> <tr> <td style="text-align: right;"><span class="label">*?????</span></td> <td> <%= new HtmlPassword("Password",null,30)%> <%= new HtmlYKTip("Password") { }%> </td> </tr> <tr> <td style="text-align: right;"><span class="label">*????????</span></td> <td> <%= new HtmlPassword("PasswordConfirm",null,30)%> <%= new HtmlYKTip("PasswordConfirm") %> </td> </tr> <tr> <td style="text-align: right;"><span class="label">*????????</span></td> <td> <%= new HtmlText("TrueName",null,20) %> <%= new HtmlYKTip("TrueName") %> </td> </tr> <tr> <td style="text-align: right;"><span class="label">*??????</span></td> <td> <%= new HtmlText("MobilePhone",null,20) %> <%= new HtmlYKTip("MobilePhone") %> </td> </tr> <tr> <td style="text-align: right;">??????</td> <td> <%= new HtmlText("IDCard",null,20) %> </td> </tr> <tr> <td style="text-align: right;">????????</td> <td> <%= new HtmlText("Address",null,256) %> </td> </tr> <tr> <td style="text-align: right;">????????</td> <td> <%= new HtmlText("PostalCode",null,100) %> </td> </tr> <tr> <td style="text-align: right;">?????</td> <td> <%= new HtmlText("VideoName",null,20) %> </td> </tr> <tr> <td style="text-align: right;">?????</td> <td> <%= new HtmlSelect("ParentCategory", "Name", "Guid", "Guid") { Option = this.ListAllCategory, DefaultSelectValue = "", OnChange = "GetTextbook();" }.InsertOption("::???::", "", 0)%> </td> </tr> <tr> <td style="text-align: right;">??????</td> <td> <%= new HtmlSelect("ParentPress", "Name", "Guid", "Guid") { Option = this.ListAllPress, DefaultSelectValue = "", OnChange = "GetTextbook();" }.InsertOption("::???::", "", 0)%> </td> </tr> <tr> <td style="text-align: right;">?????</td> <td> <%= new HtmlSelect("ParentGrade", "Name", "Guid", "Guid") { Option = this.ListAllGrade, DefaultSelectValue = "", OnChange = "GetTextbook();" }.InsertOption("::???::", "", 0)%> </td> </tr> <tr id="liTextbook" style="display: none;"> <td style="text-align: right;"><span class="label">*?????</span></td> <td><span id="spanTextbook"></span></td> </tr> <tr id="liLesson" style="display: none;"> <td style="text-align: right;"><span class="label">*??????</span></td> <td><span id="spanLesson"></span></td> </tr> <tr> <td style="text-align: right;">????????</td> <td> <%= new HtmlSelect("ParentSubject", "Name", "Guid", "ParentUserGuid") { Disabled=true, Option = this.ListSubject }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0)%> </td> </tr> <tr> <td style="text-align: right;">????????</td> <td> <%= new HtmlText("ApplyRemark",null,20) %> </td> </tr> <tr> <td style="text-align: right;">??????</td> <td> <%= new HtmlText("CheckCode",null,4) %> <%= new HtmlYKTip("CheckCode") %> <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> </td> </tr> <tr> <td style="text-align: right;"></td> <td> <%= new HtmlCheckBox("Agree", true, 1, 0) { Class = "chk" }%> ??????????? <%= new HtmlAnchor("??????") { Href = WebUrl.Agreement(), Target = "_blank" }%> ?? <%= new HtmlAnchor("??????") { Href = WebUrl.Copyright(), Target = "_blank" }%> </td> </tr> <tr> <td style="text-align: right;"></td> <td> <%= new HtmlSubmit("?? ??","Signup","SignupClient(this);") %> <div class="gopec"> ????????????????? <%= new HtmlAnchor("?????????") { Href="http://www.ava.com.cn", Target="_blank" }%> </div> </td> </tr> </table> </div> </div> </form> <!--log end--> <div class="clear"></div> <!--span4 end--> <script type="text/javascript"> GetTextbook(); function GetTextbook() { var categoryGuid = $("#frmSignup [Name=ParentCategory]").val(); var pressGuid = $("#frmSignup [Name=ParentPress]").val(); var gradeGuid = $("#frmSignup [Name=ParentGrade]").val(); if (categoryGuid != "" && pressGuid != "" && gradeGuid != "") { //?????? $("#spanTextbook").html("????????????..."); $("#liTextbook").show(); $("#spanLesson").html(""); $("#liLesson").hide(); Global.HtmlControl("<%= ControlPath("/My/SelectTextbook")%>", "ParentCategory=" + encodeURIComponent(categoryGuid) + "&ParentPress=" + encodeURIComponent(pressGuid) + "&ParentGrade=" + encodeURIComponent(gradeGuid), null, function (result) { $("#spanTextbook").html(result.Html); }); } else { //?????? $("#spanTextbook").html(""); $("#liTextbook").hide(); $("#spanLesson").html(""); $("#liLesson").hide(); } } GetLesson(); function GetLesson() { var textbookGuid = $("#frmSignup [Name=ParentTextbook]").val(); if (textbookGuid != "" && textbookGuid != null) { //???????? $("#spanLesson").html("??????????????..."); $("#liLesson").show(); Global.HtmlControl("<%= ControlPath("/My/SelectLesson")%>", "ParentTextbook=" + encodeURIComponent(textbookGuid), null, function (result) { $("#spanLesson").html(result.Html); }); } else { //???????? $("#spanLesson").html(""); $("#liLesson").hide(); } } </script> <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=ParentUser]").formValidator({ validatorGroup: "Signup", rules: { required: null }, message: { required: "????????????" } }); $("#frmSignup [name=Remark]").formValidator({ validatorGroup: "Signup", rules: { required: null }, message: { required: "???????????" } }); $("#frmSignup [name=TrueName]").formValidator({ validatorGroup: "Signup", rules: { required: null }, message: { required: "???????????" } }); $("#frmSignup [name=MobilePhone]").formValidator({ validatorGroup: "Signup", rules: { required: null }, message: { required: "???????????" } }); $("#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_Special_TJDJ", 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); } }); } function ParentUserChange(send) { //???????????????????? var userGuid = send.value; //$("#frmSignup [Name=ParentSubject]").style("display", "none"); var ParentSubject = document.getElementById("frmSignup")["ParentSubject"]; var preantGuid = send.value; //alert(preantGuid); if (preantGuid == "") { $(ParentSubject).attr("disabled", "disabled"); } else { $(ParentSubject).removeAttr("disabled"); } for (var i = 0; i < ParentSubject.options.length; i++) { if (send.value == "") { ParentSubject.options[i].style.display = ""; } else { //alert($(ParentSubject.options[i]).attr("realvalue")); if ($(ParentSubject.options[i]).attr("realvalue") == preantGuid || ParentSubject.options[i].value == "") { //alert("1"); ParentSubject.options[i].style.display = ""; } else { //alert("2"); ParentSubject.options[i].style.display = "none"; } } } ParentSubject.value = ""; } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de