Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\Marking\MarkingMark.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.Marking.MarkingMark" %> <% if (this.UserCode != null) { var user = CreateInstance.UserDao.Get(this.UserCode); //if (user.ParentUserType.InstructorEnable == true) //{ %> <% if (this.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.???) { %> <%--??????--%> <% } else if (this.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.???) { %> <%--??????--%> <% } else { throw new Z.Core.Tools.ExceptionMessage("?????KType"); } %> <div id="markingMark" class="btn mark_score_group_small"> <a class="ico_up_small" href="#" id="<%= "Marking"+this.MKType.ToString()+ this.MKGuid %>"> <%--<%="Marking"+this.MKType.ToString() %>--%> <% var push_count = CreateInstance.MarkingDao.Count(l => l.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.??? && l.MKType == this.MKType && l.MKGuid == this.MKGuid); %> <span id="count_pushup_<%= this.MKGuid %>" class="pushup_count">(<%= push_count %>)</span> </a> </div> <script> $(document).ready(function () { $("#Marking<%= this.MKType.ToString()+ this.MKGuid %>").on("click", function (e) { e.preventDefault(); var checked = $(this).hasClass("unpush") ? true : false; var params = "MKType=" + "<%= this.MKType %>" + "&MKTarget=" + "<%= this.MKTarget %>" + "&MKGuid=" + "<%= this.MKGuid %>" + "&Mark=" + checked; var button = this; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.MarkingAjax.Mark", data: params, async: true, dataType: 'json', success: function (result) { if (result) { $(button).toggleClass("unpush"); if (checked) { flash("????????"); $("#count_pushup_<%= this.MKGuid %>").html(""); $("#count_pushup_<%= this.MKGuid %>").html($("#count_pushup_<%= this.MKGuid %>").text() + 1); } else { flash("????????"); //$("#count_pushup_<%= this.MKGuid %>").html("0"); $("#count_pushup_<%= this.MKGuid %>").html($("#count_pushup_<%= this.MKGuid %>").text() - 1); } //$("#count_pushup_<%= this.MKGuid %>").html(result.UpCount); } }, beforeSend: function () { }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { var message = XMLHttpRequest.responseText; Global.Error(message); } }); }); }); </script> <% //} } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de