Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyMessage.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyMessage" %> <%= new MyCommentManagerNavTopInstance(this) { Local= MyCommentManagerNavTopItem.?????? }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title">??????</span> </div> <div class="dataControl "> <form id="frmMessageSearch" method="post" action="<%= WebUrl.Proxy() %>"> ?????? <%= new HtmlText("KeyWord", this.KeyWord) { Width = 120 }%> ????? <%= new HtmlSelect("IsRead", "Value", "Key", "Key") { Option=typeof(AVA.ResourcesPlatform.Model.Cmp.MessageIsReadEnum), OnChange="ExcuteQuery();" }.InsertOption("::???::","",0).SelectValue(this.IsRead)%> <%= new HtmlHidden("Key","MyMessage") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???", "MessageBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> <%= new HtmlButton("????????", "MessageBatchReaded(this);") %> <%= new HtmlButton("??????", "MessageAllReaded(this);") %> </form> <script type="text/javascript"> function ExcuteQuery() { document.getElementById('frmMessageSearch').submit(); } </script> <script type="text/javascript"> function MessageBatchReaded(send) { var items = $("#MyMessageData .trsel:checked"); var key = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); if (i != items.length - 1) { key += "&"; } } if (key != "") { //if (confirm("?????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MessageBatchReaded", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("?????????") Global.Disabled(send, false); $("#frmMessageSearch").submit(); }, 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); } }); //} } else { flash("???????????????"); } } function MessageAllReaded(send) { if (confirm("????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MessageAllReaded", data: null, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("?????????") Global.Disabled(send, false); $("#frmMessageSearch").submit(); }, 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 MessageBatchDelete(send) { var items = $("#MyMessageData .trsel:checked"); var key = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); if (i != items.length - 1) { key += "&"; } } if (key != "") { if (confirm("?????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MessageBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("?????????") Global.Disabled(send, false); $("#frmMessageSearch").submit(); }, 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); } }); } } else { flash("???????????????"); } }; //?????? function MessageDelete(send, pkid) { if (confirm("???????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MessageDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("?????????") Global.Disabled(send, false); $("#frmMessageSearch").submit(); }, beforeSend: function () { $(send).html("?????"); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).html("???"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } }; </script> </div> <div id="MyMessageData" class="data"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr id="dataHead" class="dataHead"> <td valign="middle" class="sel" style="width: 20px;"> <input type="checkbox" class="trselall" /> </td> <td valign="middle">??????</td> <td valign="middle" width="60"> ???? </td> <td valign="middle" >??????</td> <td width="40">???</td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListMessage.Count - 1; i++) { var message = this.ListMessage[i]; var classStatus = ""; if (message.IsRead == (int)AVA.ResourcesPlatform.Model.Cmp.MessageIsReadEnum.?????) { classStatus = "readed"; } else { classStatus = ""; } %> <tr class='<%= classStatus %> s <%= i == 0 ? "firstLine" : "" %> <%= i == this.ListMessage.Count - 1 ? "lastLine" : "" %>'> <td class="sel" style="width: 20px;" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(message.Guid, message.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <p> <%= message.Description %> </td><td> <%= ((AVA.ResourcesPlatform.Model.Cmp.MessageIsReadEnum)message.IsRead).Define() %> </td> <td> <%= message.AddTime.ToShortDate() %> </td> <td> <a href="#delete" onclick="MessageDelete(this,'<%= SetKey(message.Guid, message.Version) %>'); return false;">???</a> <%-- <% if (message.Title != null) { %> <a data-toggle="modal" class="open-playerDialog" data-target="#videoplayerModal" data-guid="<%= message.Guid %>" style="cursor: pointer;">???</a> <br /> <% } %> --%> </td> </tr> <% } %> </tbody> </table> </div> <div id="videoplayerModal" class="modal big-modal hide fade " tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width:500px;top:60%;position:absolute;margin-left:1px;left:40%;" > <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">?</button> <h3><a href="#" id="myModalLabel">??????</a><i class="icon-info-sign" style="vertical-align: middle; margin-top: -5px;"></i></h3> </div> <div class="modal-body"> <div style="float: left;"> <div class="" id="JWPlayer"> </div> </div> <div > <div class="pill-content"> <div class="pill-pane active" id="MessageDetail-pane"> <div class="hor-tabs mini-tabs" id="MessageDetail"> </div> </div> </div> </div> </div> <div class="modal-footer hide"> <%-- <button class="btn" data-dismiss="modal" aria-hidden="true">???</button> <button class="btn btn-primary">Save changes</button>--%> </div> </div> <script type="text/javascript"> $(document).on("click", ".open-playerDialog", function () { var guid = $(".open-playerDialog").attr("data-guid"); var prams = "Guid=" + guid; Global.HtmlControl("<%= ControlPath("/My/MyMessageDetail")%>", prams, null, function (json) { if (json != null) { $("#MessageDetail").html(json.Html); } }); }); $("#MyMessageData .trselall").click(function () { if (this.checked == true) { $("#MyMessageData .trsel").attr("checked", "checked"); } else { $("#MyMessageData .trsel").removeAttr("checked"); } }) function SelectMyMessageAll() { var bool = $("#MyMessageData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyMessageData .trsel").attr("checked", "checked"); $("#MyMessageData .trselall").attr("checked", "checked"); } else { $("#MyMessageData .trsel").removeAttr("checked"); $("#MyMessageData .trselall").removeAttr("checked"); } } </script> <div> <a href="#" onclick="SelectMyMessageAll(); return false;" data-action-key="Alt+a">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyMessage(int.MaxValue, this.KeyWord, this.IsRead) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de