Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyGroupAlbum.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyGroupAlbum.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyGroupAlbum" %> <div class=" box well"> <div class="head"> <span class="title">???<%= Define.Get("Client_???")%>??</span>???<%= this.Query.RecordCount %>?????<%= Define.Get("Client_???")%> </div> <div class="dataControl "> <form id="frmGroupAlbumSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ??? <%= new HtmlSelect("LockAlbum", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoLockVideoEnum) }.InsertOption("::???::", "", 0).SelectValue(this.LockAlbum)%> ????? <%= 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","MyGroupAlbum") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> </form> <script type="text/javascript"> $(function () { $("#frmGroupAlbumSearch [name=CreateTimeBegin]").datepicker({ maxDate: new Date($("#frmGroupAlbumSearch [name=CreateTimeEnd]").val()), onClose: function () { $("#frmGroupAlbumSearch [name=CreateTimeEnd]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmGroupAlbumSearch [name=CreateTimeEnd]").datepicker({ minDate: new Date($("#frmGroupAlbumSearch [name=CreateTimeBegin]").val()), onClose: function () { $("#frmGroupAlbumSearch [name=CreateTimeBegin]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> </div> <div id="MyGroupAlbumData" 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"><%= Define.Get("Client_???")%> </td> <td valign="middle" class="disabled">?????? </td> <td valign="middle" class="disabled">?????? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListAlbum.Count - 1; i++) { var album = this.ListAlbum[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListAlbum.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(album.Guid, album.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.AlbumCover(album), album.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Title = album.Name, Href = WebUrl.MyAlbumVideo(album.Guid), Target = "_blank" }%></div> </li> <li> <p> <%= new HtmlAnchor(album.Name) { Href = WebUrl.MyAlbumVideo(album.Guid), Target = "_blank" }%> <br /> <% var classStatus = ""; if (album.Status == (int)AVA.ResourcesPlatform.Model.Pub.AlbumStatusEnum.???) { classStatus = "pass"; } else { classStatus = ""; } %> <span class="<%=classStatus %>"> <%= ((AVA.ResourcesPlatform.Model.Pub.AlbumStatusEnum)album.Status).Define() %> </span> <% var classExamine = ""; if (album.Examine == (int)AVA.ResourcesPlatform.Model.Pub.AlbumExamineEnum.??????) { classExamine = "pass"; } else if (album.Examine == (int)AVA.ResourcesPlatform.Model.Pub.AlbumExamineEnum.????????) { } else { classExamine = ""; } %> <span class="<%=classExamine %>"> <%= ((AVA.ResourcesPlatform.Model.Pub.AlbumExamineEnum)album.Examine).Define() %> </span> <% if (album.LockAlbum == (int)AVA.ResourcesPlatform.Model.Pub.AlbumLockAlbumEnum.???) { %> <%= new HtmlSpan("???") { Title = album.ParentLockUser.UserName + " " + album.LockDateTime + " " + album.LockDescription }.Style(new { Color = "Red" })%> <% } %> <br /> ?????<%= album.VideoView%> ?????<%= album.CommentCount%> </p> </li> </ul> </td> <td> <%= album.CreateTime.ToDateTimeN().ToShortDate() %> </td> <td> <%= CreateInstance.AlbumVideoDao.Count(l=>l.ParentAlbum== album) %> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyGroupAlbumData .trselall").click(function () { if (this.checked == true) { $("#MyGroupAlbumData .trsel").attr("checked", "checked"); } else { $("#MyGroupAlbumData .trsel").removeAttr("checked"); } }) function SelectMyGroupAlbumAll() { var bool = $("#MyGroupAlbumData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyGroupAlbumData .trsel").attr("checked", "checked"); $("#MyGroupAlbumData .trselall").attr("checked", "checked"); } else { $("#MyGroupAlbumData .trsel").removeAttr("checked"); $("#MyGroupAlbumData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyGroupAlbumAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyGroupAlbum(int.MaxValue, this.Name, this.CreateTimeBegin.ToString(null), this.CreateTimeEnd.ToString(null), this.LockAlbum.ToString(null), this.Examine.ToString(null)) }.ToHtml()%> <div class="dataControl "><form> <%= new HtmlButton("???", "AlbumBatchLock(this);")%> <%= new HtmlButton("???", "AlbumBatchUnLock(this);")%> <%= new HtmlButton("??????", "AlbumBatchExamine(this);")%> <%= new HtmlButton("????????", "AlbumBatchUnExamine(this);")%> <%= new HtmlButton("???", "AlbumBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form></div> </div> <script type="text/javascript"> //?????? function AlbumBatchDelete(send) { var items = $("#MyGroupAlbumData .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) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("<%= Define.Get("Client_???")%>??????") Global.Disabled(send, false); $("#frmGroupAlbumSearch").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 AlbumBatchLock(send) { var items = $("#MyGroupAlbumData .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 lockDescription = window.prompt("?????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumBatchLock", data: key + "&LockDescription=" + encodeURIComponent(lockDescription), async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("<%= Define.Get("Client_???")%>??????") Global.Disabled(send, false); $("#frmGroupAlbumSearch").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 AlbumBatchUnLock(send) { var items = $("#MyGroupAlbumData .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) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumBatchUnLock", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("<%= Define.Get("Client_???")%>??????") Global.Disabled(send, false); $("#frmGroupAlbumSearch").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 AlbumBatchExamine(send) { var items = $("#MyGroupAlbumData .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) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumBatchExamine", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("??????"); flash("<%= Define.Get("Client_???")%>?????????") Global.Disabled(send, false); $("#frmGroupAlbumSearch").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 AlbumBatchUnExamine(send) { var items = $("#MyGroupAlbumData .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) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumBatchUnExamine", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("????????"); flash("<%= Define.Get("Client_???")%>???????????") Global.Disabled(send, false); $("#frmGroupAlbumSearch").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_???")%>??"); } }; </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de