Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyVideoAskReplay.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideoAskReplay" %> <%= new MyCommentManagerNavTopInstance(this) { Local= MyCommentManagerNavTopItem.?????? }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title">????????</span> </div> <div class="dataControl "> <form id="frmVideoAskReplaySearch" method="post" action="<%= WebUrl.Proxy() %>"> <%= new HtmlHidden("TargetGuid",this.TargetGuid) %> ?????? <%= new HtmlText("KeyWord", this.KeyWord) { Width = 120 }%> ????? <% var dicType = new Dictionary<string, int>(); dicType.Add("::???::", 0); dicType.Add("::?????::", 1); dicType.Add("::?????::", -1); %> <%= new HtmlSelect("Type", "Key", "Value", "Value") { Option=dicType,DefaultSelectValue=this.Type }%> <%= new HtmlHidden("Key","MyVideoAskReplay") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???", "VideoAskReplayBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form> <script type="text/javascript"> //?????? function VideoAskReplayBatchDelete(send) { var items = $("#MyVideoAskReplayData .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.CommentBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("?????????") Global.Disabled(send, false); $("#frmVideoAskReplaySearch").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 VideoAskReplayDelete(send, pkid) { if (confirm("???????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.CommentDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("?????????") Global.Disabled(send, false); $("#frmVideoAskReplaySearch").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="MyVideoAskReplayData" 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"style="width: 100px;">??? </td> <td valign="middle">??????</td> <td valign="middle">??????</td> <td valign="middle" style="width: 130px;">???</td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListComment.Count - 1; i++) { var comment = this.ListComment[i]; var video = CreateInstance.VideoDao.Get(comment.TargetGuid); %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListComment.Count - 1 ? "lastLine" : "" %>'> <td class="sel" style="width: 20px;" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(comment.Guid, comment.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li class="min-video-photo"> <% if (video != null) { %> <%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Title=video.Name, Target = "_blank",TextLength=5, Suffix=".." }%> <% } %> </li> </ul> </td> <td> <p> <% if (comment.Title != null) { %> <%= comment.Title.RestoreHtml() %> <br /> <% } %> <%= comment.CommentText.RestoreHtml() %> </p> </td> <td> <%= comment.CreateTime.ToShortDate() %> <%= comment.ParentUser.TrueName %> </td> <td> <% var classStatus = ""; if (comment.Status == (int)AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum.???) { classStatus = "pass"; } else { classStatus = ""; } %> <span class="<%=classStatus %>"> <%= ((AVA.ResourcesPlatform.Model.Pub.CommentStatusEnum)comment.Status).Define() %> </span> | <a href="#delete" onclick="VideoAskReplayDelete(this,'<%= SetKey(comment.Guid, comment.Version) %>'); return false;">???</a> | <%= new HtmlAnchor("???") { Href=WebUrl.MyVideoAskToReplay(comment.Guid) }%> </td> </tr> <% //?????? var listReplay = CreateInstance.CommentDao.Replay(comment); foreach (var replay in listReplay) { %> <tr> <td> <%= new HtmlCheckBox() { Value = SetKey(replay.Guid, replay.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> ????? </td> <td colspan="2"> <% if (replay.Title != null) { %> <%= replay.Title.RestoreHtml() %> <br /> <% } %> <%= replay.CommentText.RestoreHtml() %> <br /> <%= replay.CreateTime.ToAutoShortDate() %> </td> <td> <a href="#delete" onclick="VideoAskReplayDelete(this,'<%= SetKey(replay.Guid, replay.Version) %>'); return false;">???</a> </td> </tr> <% } %> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyVideoAskReplayData .trselall").click(function () { if (this.checked == true) { $("#MyVideoAskReplayData .trsel").attr("checked", "checked"); } else { $("#MyVideoAskReplayData .trsel").removeAttr("checked"); } }) function SelectMyVideoAskReplayAll() { var bool = $("#MyVideoAskReplayData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyVideoAskReplayData .trsel").attr("checked", "checked"); $("#MyVideoAskReplayData .trselall").attr("checked", "checked"); } else { $("#MyVideoAskReplayData .trsel").removeAttr("checked"); $("#MyVideoAskReplayData .trselall").removeAttr("checked"); } } </script> <div> <a href="#" onclick="SelectMyVideoAskReplayAll(); return false;">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyVideoAskReplay(int.MaxValue, this.KeyWord, this.Type,this.TargetGuid) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de