Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyLLScoreItemEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyLLScoreItemEdit.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyLLScoreItemEdit" %> <%= new MyListenLessonNavInstance(this) { Local = MyListenLessonNavItem.??????????? }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title">??????????????</span> <span class="f_r"> </span> </div> <hr /> <div class="userInput pwd"> <form id="frmLLScoreItemEdit" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlSelect("ParentSTScoreType","Name", "Guid", "Guid") { Option = this._ListSTScoreType }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_LLScoreItem.ParentSTScoreType.Guid"])%> <% if (this._ListSTScoreType.Count == 0) { %> ????????????????? <% } %> <%= new HtmlYKTip("ParentSTScoreType") %> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>?????????</span></td> <td> <%= new HtmlText("Name", this.ViewData["_LLScoreItem.Name"]) { }%> <%= new HtmlYKTip("Name")%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("ScoreRatio", this.ViewData["_LLScoreItem.ScoreRatio"]) { }%> <%= new HtmlYKTip("ScoreRatio")%> </td> </tr> <tr> <td style="text-align: right;"><span class="label">????????</span></td> <td> <%= new HtmlTextArea("Description", this.ViewData["_LLScoreItem.Description"], 2000)%> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("SortNumber", this.ViewData["_LLScoreItem.SortNumber"], 4) { DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %> </td> </tr> <tr> <td style="text-align: right;"></td> <td></td> </tr> <tr> <td style="text-align: right;"></td> <td> <%= new HtmlHidden("Key",this.KEY)%> <%= new HtmlHidden("ParentListenLesson", this.ListenLesson.Guid)%> <%= new HtmlSubmit(IN(this.ViewData["_LLScoreItem"], "????????", "????????"), "LLScoreItemEdit", "LLScoreItemEditClient(this);").Style(new { Width = "100px" })%> <%= new HtmlButton("???", "GoList();").Style(new { Width = "100px" })%> </td> </tr> </table> </form> </div> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "LLScoreItemEdit", form: "#frmLLScoreItemEdit", alertMessage: true, showMessage: false }); //?????????? $("#frmLLScoreItemEdit [name=ParentSTScoreType]").formValidator({ validatorGroup: "LLScoreItemEdit", rules: { required: null }, message: { required: "???????????" } }); //????? $("#frmLLScoreItemEdit [name=Name]").formValidator({ validatorGroup: "LLScoreItemEdit", rules: { required: null }, message: { required: "?????????" } }); //?????? $("#frmLLScoreItemEdit [name=ScoreRatio]").formValidator({ validatorGroup: "LLScoreItemEdit", rules: { required: null, regex: "decmal1" }, message: { required: "????????????", regex: "????????????" } }); </script> <script type="text/javascript"> function LLScoreItemEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.LLScoreItemEdit", data: Global.GetFormValue($("#frmLLScoreItemEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('<%= IN(this.ViewData["_LLScoreItem"],"????????", "????????") %>'); alert('<%= IN(this.ViewData["_LLScoreItem"],"?????????????????", "?????????????????") %>'); Global.Disabled(send, false); window.location.href = result; }, beforeSend: function () { $(send).val('<%= IN(this.ViewData["_LLScoreItem"],"???????????...", "???????????...") %>'); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val('<%= IN(this.ViewData["_LLScoreItem"],"????????", "????????") %>'); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } function GoList(){ window.location.href = '<%= WebUrl.MyLLScoreItemList(this.ListenLesson.Guid) %>'; } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de