Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyAlbumVideo.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyAlbumVideo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyAlbumVideo" %> <% if (!isAjax) { %> <%= new MyAlbumNavInstance(this) { Local= MyAlbumNavItem.??????, Album = this.Album }.ToHtml()%> <div class="flat data-box"> <div class="head"> <%if (this.Album.OpenUpload == (int)AVA.ResourcesPlatform.Model.Pub.AlbumOpenUploadEnum.??) { %> <span class="title">???<%= Define.Get("Client_???")%>??</span> <% } else { %> <span class="title">???<%= Define.Get("Client_???")%>??</span> <% } %> <span class="sub-title"><%= this.Album.Name %></span> <span class="pull-right total-items">??<%= this.Query.RecordCount%>?????</span><span class="f_r"> </span> </div> <div class="dataControl pull-left"> <form id="frmAlbumVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlText("Name", this.Name) { Width=120 }%> <% if (this.Album.OpenUpload == (int)AVA.ResourcesPlatform.Model.Pub.AlbumOpenUploadEnum.?? && this.Album.OpenUploadNeedExamine == true) { %> ???????? <%= new HtmlSelect("ConfirmStatus", "Value", "Key", "Key") {Width=80, Option = typeof(AVA.ResourcesPlatform.Model.Pub.AlbumVideoConfirmStatusEnum) }.InsertOption("::???::", "", 0).SelectValue(this.ConfirmStatus)%> <% } %> <%-- ????? <%= new HtmlText("Name", this.Name) { Width=60 }%> ????? <%= new HtmlText("Name", this.Name) { Width=60 }%> ????? <%= new HtmlText("Name", this.Name) { Width=60 }%>--%> <%= new HtmlHidden("Key","MyAlbumVideo") %> <%= new HtmlHidden("ParentAlbum",this.Album.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%--<%= new HtmlButton("??????", "window.location.href='" + WebUrl.MyAlbumVideoAdd(this.Album.Guid) + "';"){ Class="btn btn-default " }%>--%> <a data-toggle="modal" data-target="#sharedModal" data-guid="" class="add-item-by-modal btn" href="#">??????</a> <%if (this.Album.ParentUser == this.User && this.Album.OpenUpload == (int)AVA.ResourcesPlatform.Model.Pub.AlbumOpenUploadEnum.?? && this.Album.OpenUploadNeedExamine == true) { %> <div class="btn-group"> <%= new HtmlButton("???", "AlbumVideoBatchConfirm(this);"){ Class="btn btn-success pull-right" }%> <%= new HtmlButton("???", "AlbumVideoBatchUnConfirm(this);"){ Class="btn btn-warning pull-right" }%> </div> <% } %> </form> <script type="text/javascript"> $(document).on("hidden", "#sharedModal", function () { location.reload(); }); $(".add-item-by-modal").on("click", function () { var url = "/My/AlbumVideoAdd.aspx?Guid=<%= this.Album.Guid%>"; $("#sharedModal #sharedModalLabel").html("????????<%= Define.Get("Client_???")%>"); $(".modal-body").css("height", $(window).height() * .8); $("#sharedModal").width($(window).width() * .9) .css("margin-left", -$("#sharedModal").width() / 2) .css("margin-top", -$("#sharedModal").height() / 2); $("#iframeControl").attr("src", url).css("width", "100%").css("min-height", $(".modal-body").height()); $(document).on("ChildPageLoad", function (e, param) { $("#iframeControl").css("min-height", "98%"); }); }); </script> </div> <% if (this.Album.ParentUser == this.User && SettingGroup.HasSubject) { %> <div id="add_2_my_subject" style="display: inline;float:left"> <div class="btn-group dropdown"> <button class="btn ">?????<%= Define.Get("Client_???") %>???</button> <button class="btn dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> </button> <div class="dropdown-menu" id="ShowSubject"> <!-- dropdown menu links --> <form> <ul style="margin-left:0px;"> <% if (this.ListSubject != null && this.ListSubject.Count > 0) { foreach (var subject in this.ListSubject) { %> <li style="padding-left: 6px;"> <%--<input type="checkbox" id="checkbox_del_stuser_<%= subject.Guid %>" class="stUsersel" value="<%= subject.Guid%>" data-guid="<%= subject.Guid %>" />--%> <%= new HtmlRadio("SubjectGuid", subject.Guid, null) { ID = "SubjectGuid"+subject.Guid, }%> <%= new HtmlSpan(subject.Name) { TextLength=10, Suffix=".."}%> </li> <% } %> <li><%= new HtmlButton("????????", "AlbumVideoBatchToSubject(this);"){ Class="btn btn-danger" }.Style(new {Width ="100%"})%></li> <% } else { %> <li style="padding-left: 6px;">?????????????? </li> <% } %> </ul> </form> </div> </div> </div> <%= new HtmlButton("???", "AlbumVideoBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> <% } %> <script type="text/javascript"> //?????????????? function AlbumVideoBatchToSubject(send) { var subject = $('input[name="SubjectGuid"]').filter(':checked'); var subjectGuid = ""; if (subject.length > 0) { subjectGuid = subject.val(); } var items = $("#MyAlbumVideoData .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 (subjectGuid != "") { if (confirm("?????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumVideoBatchToSubject", data: key + "&Subject=" + subjectGuid, async: true, dataType: 'json', success: function (result) { $(send).val("?????<%= Define.Get("Client_???") %>???"); flash("?????<%= Define.Get("Client_???") %>??????") Global.Disabled(send, false); $("#frmAlbumVideoSearch").submit(); }, 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("??????????????<%= Define.Get("Client_???") %>?????"); } } else { flash("???????????????"); } } </script> <div id="MyAlbumVideoData" 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> <%--<td valign="middle"></td>--%> <td valign="middle"></td> <td valign="middle" style="width: 100px;"></td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListAlbumVideo.Count - 1; i++) { var albumVideo = this.ListAlbumVideo[i]; var album = this.ListAlbumVideo[i].ParentAlbum; var video = this.ListAlbumVideo[i].ParentVideo; %> <tr> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(albumVideo.Guid, albumVideo.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.AlbumPlay(album.Guid, video.Guid), Title = video.Name, Target = "_blank" }%> </div> </li> </ul> </td> <td> <p> <%= new HtmlAnchor(video.Name) { Href = WebUrl.AlbumPlay(album.Guid, video.Guid), Target = "_blank", TextLength=18, Suffix="...", WideWord =true }%> <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> <br /> ?????<%= video.VideoView %> ?????<%= video.CommentCount %> <br /> ?????<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %> </p> </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> </td>--%> <td><span>????????</span> <%= new HtmlSpan(albumVideo.SubmissionTime.ToShortDate()) { Title = albumVideo.SubmissionRemark }%> <br /> <% if (albumVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.AlbumVideoConfirmStatusEnum.???) { %> <span class="pass">????????</span> <% } else if (albumVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.AlbumVideoConfirmStatusEnum.???) { %> <span style="color: Red;">????????</span> <% } else if (albumVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.AlbumVideoConfirmStatusEnum.?????) { %> <span style="color:red">??????</span> <% } %> <%= new HtmlSpan(albumVideo.ConfirmTime.ToShortDate()) { Title = albumVideo.ConfirmRemark }%> <br /> <% if (album.ParentUser == this.User) { %> <span>???????? <%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "AlbumVideoChangeStatusClient(this,'" + SetKey(albumVideo.Guid, albumVideo.Version) + "');", Lang = albumVideo.ConfirmStatus.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.AlbumVideoConfirmStatusEnum), SelectedValue = albumVideo.ConfirmStatus}.Style(new { Width = "auto" })%></span> <br /> <% } %> </td> <td> <%if(video.ParentUser == this.User || album.ParentUser == User){ %><a href="#delete" onclick="AlbumVideoDelete(this,'<%= SetKey(albumVideo.Guid, albumVideo.Version) %>'); return false;">???</a>|<%} %> <%= new HtmlAnchor("???") { Href = WebUrl.AlbumPlay(album.Guid, video.Guid) }%> <br /> <%= new HtmlText("SortNumber", albumVideo.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};AlbumVideoChangeSortNumberClient(this,'" + SetKey(albumVideo.Guid, albumVideo.Version) + "')", Lang = albumVideo.SortNumber.ToString(), Width = 50, Title = "???????????"+Define.Get("Client_???")+"??????" }%> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyAlbumVideoData .trselall").click(function () { if (this.checked == true) { $("#MyAlbumVideoData .trsel").attr("checked", "checked"); } else { $("#MyAlbumVideoData .trsel").removeAttr("checked"); } }) function SelectMyAlbumVideoAll() { var bool = $("#MyAlbumVideoData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyAlbumVideoData .trsel").attr("checked", "checked"); $("#MyAlbumVideoData .trselall").attr("checked", "checked"); } else { $("#MyAlbumVideoData .trsel").removeAttr("checked"); $("#MyAlbumVideoData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyAlbumVideoAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyAlbumVideo(this.Album.Guid, int.MaxValue, this.Name, this.ConfirmStatus.ToString(null)) }.ToHtml()%> </div> <%} else { %> <% for (int i = 0; i <= this.ListAlbumVideo.Count - 1; i++) { var albumVideo = this.ListAlbumVideo[i]; var album = this.ListAlbumVideo[i].ParentAlbum; var video = this.ListAlbumVideo[i].ParentVideo; %> <li> <div class="video-photo"> <div class=""><%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.AlbumPlay(album.Guid, video.Guid), Title = video.Name, Target = "_blank" }%></div> </div> <div class="video-infos"> <p><%= new HtmlAnchor(video.Name) { Href = WebUrl.AlbumPlay(album.Guid, video.Guid), Target = "_blank", TextLength=18, Suffix="...", WideWord =true }%></p> <p> <%if(video.ParentUser == this.User) { %> <a href="#delete" onclick="AlbumVideoDelete(this,'<%= SetKey(albumVideo.Guid, albumVideo.Version) %>'); return false;">???</a>| <%} %> <%= new HtmlAnchor("???") { Href = WebUrl.AlbumPlay(album.Guid, video.Guid) }%> </p> </div> </li> <% } %> <li class="left_fix"> </li> <li class="left_fix"> </li> <li class="left_fix"> </li> <li class="left_fix"> </li> <li class="left_fix"> </li> <%} %> <form id="frmAlbumVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> </form> <script type="text/javascript"> //?????? function AlbumVideoBatchDelete(send) { var items = $("#MyAlbumVideoData .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.AlbumVideoBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("<%= Define.Get("Client_???")%>?????????") Global.Disabled(send, false); $("#frmAlbumVideoSearch").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("???????????<%= Define.Get("Client_???")%>?????"); } }; //?????? function AlbumVideoDelete(send, pkid) { if (confirm("?????????<%= Define.Get("Client_???")%>??????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumVideoDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("<%= Define.Get("Client_???")%>?????????") Global.Disabled(send, false); //$("#frmAlbumVideoSearch").submit(); 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); } }); } }; //???????? function AlbumVideoChangeSortNumberClient(send, pkid) { if (send.value != send.lang) { if (confirm("?????????<%= Define.Get("Client_???")%>??????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumVideoChangeSortNumber", data: "key=" + pkid + "&SortNumber=" + encodeURIComponent($(send).val()), async: true, dataType: 'json', success: function (result) { flash("<%= Define.Get("Client_???")%>??????????????") Global.Disabled(send, false); $("#frmAlbumVideoSearch").submit(); }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { send.value = send.lang; Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } else { send.value = send.lang; } } }; //?????? function AlbumVideoBatchConfirm(send) { var items = $("#MyAlbumVideoData .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 confirmRemark = window.prompt("??????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumVideoBatchConfirm", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("<%= Define.Get("Client_???")%>?????????") Global.Disabled(send, false); $("#frmAlbumVideoSearch").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("???????????<%= Define.Get("Client_???")%>?????"); } }; //?????? function AlbumVideoBatchUnConfirm(send) { var items = $("#MyAlbumVideoData .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 confirmRemark = window.prompt("??????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumVideoBatchUnConfirm", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("<%= Define.Get("Client_???")%>?????????") Global.Disabled(send, false); $("#frmAlbumVideoSearch").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("???????????<%= Define.Get("Client_???")%>?????"); } }; //??????? function AlbumVideoChangeStatusClient(send, pkid) { if (confirm("?????????<%= Define.Get("Client_???")%>????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumVideoChangeStatus", data: "key=" + pkid + "&ConfirmStatus=" + $(send).val(), async: true, dataType: 'json', success: function (result) { flash("<%= Define.Get("Client_???")%>????????????????") send.lang = send.value; Global.Disabled(send, false); window.location.href = window.location.href; }, beforeSend: function () { Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(send, false); send.value = send.lang; var message = XMLHttpRequest.responseText; Global.Error(message); } }); } else { send.value = send.lang; } }; </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de