Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyGroupVideo.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyGroupVideo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyGroupVideo" %> <div class="box well"> <div class="p_title"> <span class="title">????????</span> ???<%= this.Query.RecordCount %>???????? </div> <div class="dataControl box"> <form id="frmGroupVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ??? <%= new HtmlSelect("LockVideo", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoLockVideoEnum) }.InsertOption("::???::", "", 0).SelectValue(this.LockVideo)%> ????? <%= new HtmlSelect("Examine", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum) }.InsertOption("::???::", "", 0).SelectValue(this.Examine)%> ????? <%= new HtmlText("CreateTimeBegin", this.CreateTimeBegin.ToShortDate()) { Width = 80 }%> ?? <%= new HtmlText("CreateTimeEnd", this.CreateTimeEnd.ToShortDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MyGroupVideo") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> </form> <script type="text/javascript"> $(function () { $("#frmGroupVideoSearch [name=CreateTimeBegin]").datepicker({ maxDate: new Date($("#frmGroupVideoSearch [name=CreateTimeEnd]").val()), onClose: function () { $("#frmGroupVideoSearch [name=CreateTimeEnd]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmGroupVideoSearch [name=CreateTimeEnd]").datepicker({ minDate: new Date($("#frmGroupVideoSearch [name=CreateTimeBegin]").val()), onClose: function () { $("#frmGroupVideoSearch [name=CreateTimeBegin]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> </div> <div id="MyGroupVideoData" 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"> </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListVideo.Count - 1; i++) { var video = this.ListVideo[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListVideo.Count - 1 ? "lastLine" : "" %>'> <td class="sel" style="width: 20px;"> <%= new HtmlCheckBox() { Value = SetKey(video.Guid, video.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li> <%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { Width=100, Height=62, OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.VideoPlay(video.Guid), Title = video.Name, Target = "_blank" }%> </li> <li> <p> <%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Target = "_blank" }%> <br /> <% var classStatus = ""; if (video.Status == (int)AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum.???) { classStatus = "pass"; } else { classStatus = ""; } %> <span class="<%=classStatus %>"> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum)video.Status).Define() %> </span> <% var classExamine = ""; if (video.Examine == (int)AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum.??????) { classExamine = "pass"; } else if (video.Examine == (int)AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum.????????) { } else { classExamine = ""; } %> <span class="<%=classExamine %>"> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum)video.Examine).Define() %> </span> <% var videoConvertStatus = ""; if (video.VideoConvertStatus == (int)AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum.?????) { videoConvertStatus = "pass"; } else { videoConvertStatus = ""; } %> <span class="<%=videoConvertStatus %>"> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum)video.VideoConvertStatus).Define() %> </span> <% if (video.LockVideo == (int)AVA.ResourcesPlatform.Model.Pub.VideoLockVideoEnum.???) { %> <%= new HtmlSpan("???") { Title = video.ParentLockUser.UserName + " " + video.LockDateTime + " " + video.LockDescription }.Style(new { Color = "Red" })%> <% } %> <br /> ?????<%= video.VideoView %> ?????<%= video.CommentCount %> </p> </li> </ul> </td> <td> <%= video.CreateTime.ToShortDate() %> <br /> <%= video.ParentUser.ParentDomain.Name %> <br /> <%= new HtmlAnchor(video.Author) { Href = WebUrl.Show(video.ParentUser.ParentDomain.Code, video.ParentUser.UserName) }%> ( <%= new HtmlAnchor(video.ParentUser.UserName) { Href = WebUrl.Show(video.ParentUser.ParentDomain.Code, video.ParentUser.UserName) }%> ) </td> <td> ?????<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(video.FileSize.ToDouble()) %> <br /> ?????<%= video.Period %>?? <br /> ?????<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %> </td> <td> <%= video.ParentCategory.Name %> <br /> <% if (video.ParentLesson != null) { %> <%= video.ParentLesson.Section %> ?? <%= video.ParentLesson.Name %> ?? <% } %> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyGroupVideoData .trselall").click(function () { if (this.checked == true) { $("#MyGroupVideoData .trsel").attr("checked", "checked"); } else { $("#MyGroupVideoData .trsel").removeAttr("checked"); } }) function SelectMyGroupVideoAll() { var bool = $("#MyGroupVideoData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyGroupVideoData .trsel").attr("checked", "checked"); $("#MyGroupVideoData .trselall").attr("checked", "checked"); } else { $("#MyGroupVideoData .trsel").removeAttr("checked"); $("#MyGroupVideoData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyGroupVideoAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyGroupVideo(int.MaxValue, this.Name, this.CreateTimeBegin.ToString(null), this.CreateTimeEnd.ToString(null), this.LockVideo.ToString(null), this.Examine.ToString(null)) }.ToHtml()%> <div class="dataControl box"> <%= new HtmlButton("???", "VideoBatchLock(this);")%> <%= new HtmlButton("???", "VideoBatchUnLock(this);")%> <%= new HtmlButton("??????", "VideoBatchExamine(this);")%> <%= new HtmlButton("????????", "VideoBatchUnExamine(this);")%> <%= new HtmlButton("???", "VideoBatchDelete(this);")%> </div> </div> <script type="text/javascript"> //?????? function VideoBatchDelete(send) { var items = $("#MyGroupVideoData .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.VideoBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmGroupVideoSearch").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 { alert("???????????????"); } }; //?????? function VideoBatchLock(send) { var items = $("#MyGroupVideoData .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) { var lockDescription = window.prompt("?????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoBatchLock", data: key + "&LockDescription=" + encodeURIComponent(lockDescription), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmGroupVideoSearch").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 { alert("???????????????"); } }; //?????? function VideoBatchUnLock(send) { var items = $("#MyGroupVideoData .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.VideoBatchUnLock", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmGroupVideoSearch").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 { alert("??????????????????"); } }; //????????? function VideoBatchExamine(send) { var items = $("#MyGroupVideoData .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.VideoBatchExamine", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("??????"); alert("???????????????") Global.Disabled(send, false); $("#frmGroupVideoSearch").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 { alert("??????????????????"); } }; //??????????? function VideoBatchUnExamine(send) { var items = $("#MyGroupVideoData .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.VideoBatchUnExamine", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("????????"); alert("?????????????????") Global.Disabled(send, false); $("#frmGroupVideoSearch").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 { alert("????????????????????"); } }; </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de