Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\Marking\MarkingMark.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.Marking.MarkingMark" %> <style type="text/css"> .btn:focus { background-color:#49a1ea; } </style> <% 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.???) { var push_count = CreateInstance.MarkingDao.Count(l => l.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.??? && l.MKType == this.MKType && l.MKGuid == this.MKGuid); %> <%--??????--%> <div class=" mark_score_group_small"> <a class="btn <%=push_count >0 ? "btn-danger" : "" %> <%= "Marking"+this.MKType.ToString()+ this.MKGuid %>" href="#"> <%--<%="Marking"+this.MKType.ToString() %>--%> <i class="icon-white icon-thumbs-up"></i> <span class="<%= "MarkingText"+this.MKType.ToString()+ this.MKGuid %>">???</span><%--<span id="count_pushup_<%= this.MKGuid %>" class="pushup_count">(<%= push_count %>)</span>--%> </a> </div> <% } else if (this.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.???) { var push_count = CreateInstance.MarkingDao.Count(l => l.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.??? && l.MKType == this.MKType && l.MKGuid == this.MKGuid); %> <%--??????--%> <div class=" mark_score_group_small"> <a class="btn <%=push_count >0 ? "btn-danger" : "" %> <%= "Marking"+this.MKType.ToString()+ this.MKGuid %>" href="#" > <%--<%="Marking"+this.MKType.ToString() %>--%> <i class="icon-white icon-bookmark "></i> <span class="<%= "MarkingText"+this.MKType.ToString()+ this.MKGuid %>">???</span> </a> </div> <% } else { throw new Z.Core.Tools.ExceptionMessage("?????KType"); } %> <script> $(document).ready(function () { $(".Marking<%= this.MKType.ToString()+ this.MKGuid %>").on("click", function (e) { e.preventDefault(); var checked = $(this).hasClass("btn-danger") ? false : true; 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("???<%= (AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum)this.MKType%>??"); $(".Marking<%= this.MKType.ToString()+ this.MKGuid %>").addClass("btn-danger"); <%if (this.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.???) { %> $(".MarkingText<%= this.MKType.ToString()+ this.MKGuid %>").html("?????"); <% } else if (this.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.???) { %> $(".MarkingText<%= this.MKType.ToString()+ this.MKGuid %>").html("?????"); <% } %> //$("#count_pushup_<%= this.MKGuid %>").html(""); //$("#count_pushup_<%= this.MKGuid %>").html($("#count_pushup_<%= this.MKGuid %>").text() + 1); } else { flash("????????"); $(".Marking<%= this.MKType.ToString()+ this.MKGuid %>").removeClass("btn-danger"); <%if (this.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.???) { %> $(".MarkingText<%= this.MKType.ToString()+ this.MKGuid %>").html("???"); <% } else if (this.MKType == (int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.???) { %> $(".MarkingText<%= this.MKType.ToString()+ this.MKGuid %>").html("???"); <% } %> //$("#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