Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyVideoSWList.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideoSWList" %> <%--<%= new MyVideoNavInstance(this) { Local = MyVideoNavItem.??????, Video = this.Video }.ToHtml() %>--%> <div class="flat data-box"> <%-- <div class="head"> <span> <%= this.ListVideoSW.Count %>???????? </span> </div> --%> <div class="dataControl "><form> <%= new HtmlButton("???...", "window.location.href='" + WebUrl.MyVideoSWAdd(this.Video.Guid) + "';"){ Class="btn btn-warning " }%> <%= new HtmlButton("???", "VideoSWBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form></div> <div id="MyVideoSWData" 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" style="width: 100px;">??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListVideoSW.Count - 1; i++) { var videoSW = this.ListVideoSW[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListVideoSW.Count - 1 ? "lastLine" : "" %>' id="tr_<%= videoSW.Guid %>"> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(videoSW.Guid, videoSW.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <%= CreateInstance.VideoSWDao.FormatSW(videoSW.SW) %> </td> <td class="status"> <%= AVA.ResourcesPlatform.Config.Helper.FormatSecond(videoSW.Seconds / 1000) %> </td> <td class="action"> <%= new HtmlAnchor("???") { Href = WebUrl.MyVideoSWEdit(videoSW.Guid) }%> | <a href="#delete" onclick="VideoSWDelete(this,'<%= SetKey(videoSW.Guid, videoSW.Version) %>'); return false;">???</a></td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyVideoSWData .trselall").click(function () { if (this.checked == true) { $("#MyVideoSWData .trsel").attr("checked", "checked"); } else { $("#MyVideoSWData .trsel").removeAttr("checked"); } }) function SelectMyVideoSWAll() { var bool = $("#MyVideoSWData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyVideoSWData .trsel").attr("checked", "checked"); $("#MyVideoSWData .trselall").attr("checked", "checked"); } else { $("#MyVideoSWData .trsel").removeAttr("checked"); $("#MyVideoSWData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //?????? function VideoSWBatchDelete(send) { var items = $("#MyVideoSWData .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.VideoSWBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("???????????????") Global.Disabled(send, false); // window.location.href = window.location.href; window.location.href = "<%= WebUrl.MyVideoSWAdd(Video.Guid) %>"; }, 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 VideoSWDelete(send, pkid) { if (confirm("?????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoSWDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("???????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MyVideoSWAdd(Video.Guid) %>"; }, 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="SelectMyVideoSWAll(); return false;" href="#">???? - ???</a> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de