Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Subject\Suqian\control\Marking\MarkingScore.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.Marking.MarkingScore" %> <%-- ??? <%= new MarkingScoreInstance(this) { ScoreTarget=(int)AVA.ResourcesPlatform.Model.Pub.ScoreScoreTarget.Video, ScoreGuid=this.Video.Guid }.ToHtml()%>--%> <div class="mark-score-wrapper"> <div class="mark-score"> <div id="RatingWrapper_<%= this.ScoreGuid %>" class="ratingWrapper"> <input name="star_<%= this.ScoreGuid %>" value="1" type="radio" class="star" <%= this.ScoreEnable ? "" :"disabled='disabled'"%> /> <input name="star_<%= this.ScoreGuid %>" value="2" type="radio" class="star" <%= this.ScoreEnable ? "" :"disabled='disabled'"%> /> <input name="star_<%= this.ScoreGuid %>" value="3" type="radio" class="star" <%= this.ScoreEnable ? "" :"disabled='disabled'"%> /> <input name="star_<%= this.ScoreGuid %>" value="4" type="radio" class="star" <%= this.ScoreEnable ? "" :"disabled='disabled'"%> /> <input name="star_<%= this.ScoreGuid %>" value="5" type="radio" class="star" <%= this.ScoreEnable ? "" :"disabled='disabled'"%> /> </div> <script> $(document).ready(function () { //????????? var inputCount = 5; $("input[name= 'star_<%= this.ScoreGuid %>']").rating('<%= this.ScoreEnable ? "enable":"disable" %>'); var origScore; if ($.cookie("UserCode<%= SettingGroup.CookieSuffix %>") != null) { var params = "ScoreGuid=<%= this.ScoreGuid %>"; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ScoreGet", data: params, async: true, dataType: 'json', success: function (result) { origScore = result.UserScore; $("input[name= 'star_<%= this.ScoreGuid %>']").rating('select', origScore - 1); $("#count_pushup_<%= this.ScoreGuid %>").html(result.UpCount); origScore = result.UserScore; $("input[name= 'star_<%= this.ScoreGuid %>']").rating('select', origScore - 1); $("#count_pushup_<%= this.ScoreGuid %>").html(result.UpCount); if (result.PushUp == true) { $("#Pushup_<%=this.ScoreGuid %>").removeClass("unpush");//1?? 0?? null ????? } else if (result.PushUp == false) { $("#Pushup_<%=this.ScoreGuid %>").addClass("unpush"); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { var message = XMLHttpRequest.responseText; Global.Error(message); } }); } // when click $("input[name='star_<%= this.ScoreGuid %>']").rating({ callback: function (value, link) { var params = "ScoreTarget=" + "<%= this.ScoreTarget %>" + "&ScoreGuid=" + "<%= this.ScoreGuid %>" + "&Score=" + value; console.log(origScore); if (value != origScore) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ScoreAdd", data: params, async: true, dataType: 'json', success: function (result) { origScore = value; flash("????????"); }, beforeSend: function () { }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { var message = XMLHttpRequest.responseText; Global.Error(message); } }); } } }); }); </script> <div> <%= new HtmlAnchor("???") { Class="ico_up_small", ID="Pushup_"+this.ScoreGuid , OnClick="MarkingPushup(this,this.value,'"+this.ScoreTarget+"','"+this.ScoreGuid+"');"}%> <span id="count_pushup_<%= this.ScoreGuid %>" class="pushup_count"></span> </div> <script> $(document).ready(function () { $("#Pushup_<%=this.ScoreGuid %>").on("click", function (e) { e.preventDefault(); var checked = $(this).hasClass("unpush") ? 1 : 0; var params = "ScoreTarget=" + "<%= this.ScoreTarget %>" + "&ScoreGuid=" + "<%= this.ScoreGuid %>" + "&PushUp=" + checked; var button = this; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.ScorePushUp", data: params, async: true, dataType: 'json', success: function (result) { if (result) { $(button).toggleClass("unpush"); flash("????????"); $("#count_pushup_<%= this.ScoreGuid %>").html(result.UpCount); } }, beforeSend: function () { }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { var message = XMLHttpRequest.responseText; Global.Error(message); } }); }); }); </script> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de