Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyAlbumVideoAdd.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyAlbumVideoAdd.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyAlbumVideoAdd" %> <% if (!isAjax) { %> <%-- <%= new MyAlbumNavInstance(this) { Local= MyAlbumNavItem.??????, Album = this.Album }.ToHtml()%> --%> <%} %> <div class="flat data-box"> <% if (!isAjax) { %> <%-- <div class="head"> <span class="title">????????</span><span>????????<%= Define.Get("Client_???")%>"<%= this.Album.Name %>" </span><span class="f_r"></span> </div>--%> <%} %> <div class="dataControl "> <form id="frmVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ????? <%= new HtmlText("CreateTimeBegin", this.CreateTimeBegin.ToShortDate()) { Width = 80 }%> ?? <%= new HtmlText("CreateTimeEnd", this.CreateTimeEnd.ToShortDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MyAlbumVideoAdd") %> <%= new HtmlHidden("ParentAlbum",this.Album.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("?????"+Define.Get("Client_???"), "AlbumVideoBatchAdd(this);"){ Class="btn btn-warning pull-right" }%> </form> <div style="display: none;"> <form id="frmVideoSearchUrlAdd" method="post" onsubmit="return false;"> ???????? <%= new HtmlText("URL", this.Name) { Width = 320 }%> <%= new HtmlButton("?????"+Define.Get("Client_???"), "AlbumVideoUrlAdd(this);")%> </form> </div> <script type="text/javascript"> $(function () { $("#frmVideoSearch [name=CreateTimeBegin]").datepicker({ maxDate: new Date($("#frmVideoSearch [name=CreateTimeEnd]").val()), onClose: function () { $("#frmVideoSearch [name=CreateTimeEnd]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmVideoSearch [name=CreateTimeEnd]").datepicker({ minDate: new Date($("#frmVideoSearch [name=CreateTimeBegin]").val()), onClose: function () { $("#frmVideoSearch [name=CreateTimeBegin]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function AlbumVideoBatchAdd(send) { var items = $("#MyVideoData .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("????????????????<%= Define.Get("Client_???")%>???") == true) { // var submissionRemark = window.prompt("??????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumVideoBatchAdd", //data: key + "&SubmissionRemark=" + encodeURIComponent(submissionRemark), data: key, async: true, dataType: 'json', success: function (result) { $(send).val("?????<%= Define.Get("Client_???")%>"); flash("<%= Define.Get("Client_???")%>?????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MyAlbumVideoAdd(this.Album.Guid) %>"; }, beforeSend: function () { $(send).val("??????..."); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val("?????<%= Define.Get("Client_???")%>"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } //} //else { // flash("???????????????"); //} }; //?????? function AlbumVideoAdd(send, pkid) { //if (confirm("??????????????<%= Define.Get("Client_???")%>???") == true) { // var submissionRemark = window.prompt("????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumVideoAdd", //data: "key=" + pkid + "&SubmissionRemark=" + encodeURIComponent(submissionRemark), data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("<%= Define.Get("Client_???")%>?????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MyAlbumVideoAdd(this.Album.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); } }); //} }; //??????????? function AlbumVideoUrlAdd(send) { //if (confirm("??????????????<%= Define.Get("Client_???")%>???") == true) { // var submissionRemark = window.prompt("????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumVideoUrlAdd", //data: "key=" + pkid + "&SubmissionRemark=" + encodeURIComponent(submissionRemark), data: "AlbumGuid=<%= this.Album.Guid %>&url=" + encodeURIComponent($("#frmVideoSearchUrlAdd [Name='URL']").val()), async: true, dataType: 'json', success: function (result) { $(send).val("?????<%= Define.Get("Client_???")%>"); flash("<%= Define.Get("Client_???")%>?????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MyAlbumVideoAdd(this.Album.Guid) %>"; }, beforeSend: function () { $(send).val("?????"); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val("?????<%= Define.Get("Client_???")%>"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); //} }; </script> </div> <div id="MyVideoData" 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"></td> <% if (!isAjax) { %> <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.ListVideo.Count - 1; i++) { var video = this.ListVideo[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListVideo.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(video.Guid + "," + this.Album.Guid, video.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li class="min-video-photo"> <div class="min-video-photo"> <%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.VideoPlay(video.Guid), Title = video.Name, Target = "_blank" }%> </div> </li> </ul> </td> <td> <p> <%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Target = "_blank" }%> <% if (!isAjax) { %> <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> <% } %> </td> <% if (!isAjax) { %> <td> <%= video.CreateTime.ToShortDate() %> </td> <%-- <td> <nobr> ?????<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(video.FileSize.ToDouble()) %> </nobr> <br /> <nobr> ?????<%= video.Period %>?? </nobr> <br /> <nobr> ?????<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %> </nobr> <br /> <%= video.ParentCategory.Name %> <br /> <% if (video.ParentLesson != null) { %> <%= video.ParentLesson.Section %> ?? <%= video.ParentLesson.Name %> ?? <% } %> </td>--%><%} %> <td> <%-- <%= new HtmlAnchor("???") { Href = WebUrl.MyVideoEdit(video.Guid) }%> |--%> <a href="#delete" onclick="AlbumVideoAdd(this,'<%= SetKey(video.Guid + "," + this.Album.Guid, video.Version) %>'); return false;">???</a> <%--<br /> <%= new HtmlAnchor("???") { Href = WebUrl.VideoPlay(video.Guid) }%>--%> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyVideoData .trselall").click(function () { if (this.checked == true) { $("#MyVideoData .trsel").attr("checked", "checked"); } else { $("#MyVideoData .trsel").removeAttr("checked"); } }) function SelectMyVideoAll() { var bool = $("#MyVideoData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyVideoData .trsel").attr("checked", "checked"); $("#MyVideoData .trselall").attr("checked", "checked"); } else { $("#MyVideoData .trsel").removeAttr("checked"); $("#MyVideoData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyVideoAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyAlbumVideoAdd(this.Album.Guid, int.MaxValue, this.Name, this.CreateTimeBegin.ToString(null), this.CreateTimeEnd.ToString(null)) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de