Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\My\MyVideoAttachmentList.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideoAttachmentList" %> <div class="box well"> <div class="p_title"> <span class="title">????????</span>?????? <span> <%= this.Video._ListVideoAttachment.Count %>????? </span><span class="f_r"> <%= new MyVideoNavInstance(this) { Local = MyVideoNavItem.???, Video = this.Video }.ToHtml() %> </span> </div> <hr /> <div class="dataControl box"> <%= new HtmlButton("???...", "window.location.href='" + WebUrl.MyVideoAttachmentAdd(this.Video.Guid) + "';")%> <%= new HtmlButton("???", "VideoAttachmentBatchDelete(this);")%> </div> <div id="MyVideoAttachmentData" 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" class="disabled">??? </td> <td valign="middle" class="disabled">??? </td> <td valign="middle" class="disabled" style="width: 100px;">??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListVideoAttachment.Count - 1; i++) { var videoAttachment = this.ListVideoAttachment[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListVideoAttachment.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(videoAttachment.Guid, videoAttachment.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <%= new HtmlAnchor(videoAttachment.FileName) { Href = SettingGroup.VideoAttachmentFile(videoAttachment,1), Target = "_blank" }%> </td> <td> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoAttachmentFileTypeEnum)videoAttachment.FileType).Define() %> </td> <td> <%= AVA.ResourcesPlatform.Config.Helper.FormatSize(videoAttachment.FileSize) %> </td> <td class="action"> <%= new HtmlAnchor("???") { Href = WebUrl.MyVideoAttachmentEdit(videoAttachment.Guid) }%> | <a href="#delete" onclick="VideoAttachmentDelete(this,'<%= SetKey(videoAttachment.Guid, videoAttachment.Version) %>'); return false;">???</a></td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyVideoAttachmentData .trselall").click(function () { if (this.checked == true) { $("#MyVideoAttachmentData .trsel").attr("checked", "checked"); } else { $("#MyVideoAttachmentData .trsel").removeAttr("checked"); } }) function SelectMyVideoAttachmentAll() { var bool = $("#MyVideoAttachmentData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyVideoAttachmentData .trsel").attr("checked", "checked"); $("#MyVideoAttachmentData .trselall").attr("checked", "checked"); } else { $("#MyVideoAttachmentData .trsel").removeAttr("checked"); $("#MyVideoAttachmentData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //?????? function VideoAttachmentBatchDelete(send) { var items = $("#MyVideoAttachmentData .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.VideoAttachmentBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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 { alert("??????????????????"); } }; //?????? function VideoAttachmentDelete(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoAttachmentDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("????????????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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> <a onclick="SelectMyVideoAttachmentAll(); return false;" href="#">???? - ???</a> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de