Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyAlbum.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyAlbum.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyAlbum" %> <%--<%= new MyAlbumNavTopInstance(this) { Local= MyAlbumNavTopItem.?????? }.ToHtml()%>--%> <div class="flat data-box"> <div class="head"> <%if (this.IsPublic == true) { %> <span class="title"><%= this.Query.RecordCount %>?????<%= Define.Get("Client_???")%></span> <% } else { %> <span class="title">???<%= this.Query.RecordCount %>??<%= Define.Get("Client_???")%></span> <% } %> </div> <div class="dataControl "> <form id="frmAlbumSearch" 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 }%> <%if(this.IsPublic) { %> <%= new HtmlHidden("Key","MyAlbumPublic") %> <%} else { %> <%= new HtmlHidden("Key","MyAlbum") %> <% } %> <%= new HtmlSubmit("???")%> <%= new HtmlReset("???") { Class = "btn" }%> <%= new HtmlButton(Define.Get("Client_??????"), "window.location.href='" + WebUrl.MyAlbumAdd() + "';") { Class = "btn btn-warning " }%> <%= new HtmlButton("???", "AlbumBatchDelete(this);") { Class = "btn btn-danger pull-right" }%> </form> <script type="text/javascript"> $(function () { $("#frmAlbumSearch [name=CreateTimeBegin]").datepicker({ maxDate: new Date($("#frmAlbumSearch [name=CreateTimeEnd]").val()), onClose: function () { $("#frmAlbumSearch [name=CreateTimeEnd]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmAlbumSearch [name=CreateTimeEnd]").datepicker({ minDate: new Date($("#frmAlbumSearch [name=CreateTimeBegin]").val()), onClose: function () { $("#frmAlbumSearch [name=CreateTimeBegin]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function AlbumBatchDelete(send) { var items = $("#MyAlbumData .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); $("#frmAlbumSearch").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 AlbumDelete(send, pkid) { if (confirm("?????????<%= Define.Get("Client_???")%>???") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("<%= Define.Get("Client_???")%>??????") Global.Disabled(send, false); $("#frmAlbumSearch").submit(); }, 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 AlbumChangeSortNumberClient(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.AlbumChangeSortNumber", data: "key=" + pkid + "&SortNumber=" + encodeURIComponent($(send).val()), async: true, dataType: 'json', success: function (result) { flash("<%= Define.Get("Client_???")%>???????????") Global.Disabled(send, false); $("#frmAlbumSearch").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; } } }; </script> </div> <div id="MyAlbumData" class="data"> <div class=""> <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 >??? </td> <td >???</td> <td >????</td> <td >??? </td> <td >?????? </td> <td >??? </td> <td >??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListAlbum.Count - 1; i++) { var album = this.ListAlbum[i]; //?????????????? bool isNotOpen = album.ParentUser == this.User ? true : false; %> <tr class='<%= i == 0 ? "firstLine" : ""%> <%= i == this.ListAlbum.Count - 1 ? "lastLine" : ""%>'> <td class="sel"> <% if (isNotOpen) { %> <%= new HtmlCheckBox() { Value = SetKey(album.Guid, album.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> <% } %> </td> <td class="v min-video-photo-td"> <div class="min-video-photo"><%= new HtmlAnchor( new HtmlImg(SettingGroup.AlbumCover(album), album.Name) { OnErrorImg = SettingGroup.DefaultImg }) { Href = WebUrl.MyAlbumVideo(album.Guid), Title = album.Name }%></div> </td> <td> <p> <%= new HtmlAnchor(album.Name) { Href = WebUrl.MyAlbumVideo(album.Guid) }%> <%-- <br /> <span class="pass"> <%= album.ParentAlbumLevel.Name %> </span> <br /> <br /> ?????<%= album.VideoView%> ?????<%= album.CommentCount%>--%> </p> </td> <td> <% 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><br /> <% 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><br /> <% if (album.LockAlbum == (int)AVA.ResourcesPlatform.Model.Pub.AlbumLockAlbumEnum.???) { %> <%= new HtmlSpan("???") { Title = album.ParentLockUser.UserName + " " + album.LockDateTime + " " + album.LockDescription }.Style(new { Color = "Red" })%> <% } %> </td> <td> <%= album.CreateTime.ToDateTimeN().ToShortDate()%> </td> <td class="play"> <%= CreateInstance.AlbumVideoDao.Count(l => l.ParentAlbum == album)%> </td> <td class="action"> <% if (isNotOpen) { %> <%= new HtmlAnchor("???") { Href = WebUrl.MyAlbumEdit(album.Guid),Class="myAction" }%> | <a href="#delete" class="myAction" onclick="AlbumDelete(this,'<%= SetKey(album.Guid, album.Version)%>'); return false;">???</a> <%--<br /> <%= new HtmlAnchor("??????") { Href = WebUrl.MyAlbumVideo(album.Guid) }%> <br />--%> <% } else { %> ??<%= Define.Get("Client_???")%>??????????<%= Define.Get("Client_???")%>??<br />??????? <% } %> </td> <td> <% if (isNotOpen) { %> <%= new HtmlText("SortNumber", album.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};AlbumChangeSortNumberClient(this,'" + SetKey(album.Guid, album.Version) + "')", Lang = album.SortNumber.ToString(), Width = 50, Title = "??????" + Define.Get("Client_???") + "?????" }%> <% } else { %> <%= new HtmlText("SortNumber", album.SortNumber) { Disabled = true, Width = 50 }%> <% } %> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyAlbumData .trselall").click(function () { if (this.checked == true) { $("#MyAlbumData .trsel").attr("checked", "checked"); } else { $("#MyAlbumData .trsel").removeAttr("checked"); } }) function SelectMyAlbumAll() { var bool = $("#MyAlbumData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyAlbumData .trsel").attr("checked", "checked"); $("#MyAlbumData .trselall").attr("checked", "checked"); } else { $("#MyAlbumData .trsel").removeAttr("checked"); $("#MyAlbumData .trselall").removeAttr("checked"); } } </script> </div> <div> <a onclick="SelectMyAlbumAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyAlbum(int.MaxValue, this.Name, this.CreateTimeBegin.ToString(null), this.CreateTimeEnd.ToString(null), this.IsPublic ? "1" : "0") }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de