Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MySubjectAlbum.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectAlbum.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectAlbum" %> <%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.??????, Subject = this.Subject }.ToHtml()%> <div class="box well"> <div class="p_title"> <span class="title">????????</span><%= this.Subject.Name %> <span>??<%= this.Query.RecordCount %>?????</span> <span class="f_r"> </span> </div> <div class="dataControl box"> <form id="frmSubjectAlbumSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ???????? <%= new HtmlSelect("ConfirmStatus", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectAlbumConfirmStatusEnum) }.InsertOption("::???::", "", 0).SelectValue(this.ConfirmStatus)%> <%= new HtmlHidden("Key","MySubjectAlbum") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("??????", "window.location.href='" + WebUrl.MySubjectAlbumAdd(this.Subject.Guid) + "';")%> <%= new HtmlButton("???", "SubjectAlbumBatchConfirm(this);")%> <%= new HtmlButton("???", "SubjectAlbumBatchUnConfirm(this);")%> <%= new HtmlButton("???", "SubjectAlbumBatchDelete(this);")%> </form> <script type="text/javascript"> //?????? function SubjectAlbumBatchDelete(send) { var items = $("#MySubjectAlbumData .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.SubjectAlbumBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("???????????????") Global.Disabled(send, false); $("#frmSubjectAlbumSearch").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 SubjectAlbumDelete(send, pkid) { if (confirm("?????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectAlbumDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("???????????????") Global.Disabled(send, false); $("#frmSubjectAlbumSearch").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 SubjectAlbumChangeSortNumberClient(send, pkid) { if (send.value != send.lang) { if (confirm("?????????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectAlbumChangeSortNumber", data: "key=" + pkid + "&SortNumber=" + encodeURIComponent($(send).val()), async: true, dataType: 'json', success: function (result) { alert("????????????????????") Global.Disabled(send, false); $("#frmSubjectAlbumSearch").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 SubjectAlbumBatchConfirm(send) { var items = $("#MySubjectAlbumData .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.SubjectAlbumBatchConfirm", data: key + "&ConfirmRemark=" + encodeURIComponent(confirmRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("???????????????") Global.Disabled(send, false); $("#frmSubjectAlbumSearch").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 SubjectAlbumBatchUnConfirm(send) { var items = $("#MySubjectAlbumData .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.SubjectAlbumBatchUnConfirm", data: key + "&ConfirmRemark=" + encodeURIComponent(confirmRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("???????????????") Global.Disabled(send, false); $("#frmSubjectAlbumSearch").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> </div> <div id="MySubjectAlbumData" class="data"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr id="dataHead" class="dataHead"> <td valign="middle" class="sel"> <input type="checkbox" class="trselall" /> </td> <td valign="middle"> ??? </td> <td valign="middle" width="80"> ??? </td> <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.ListSubjectAlbum.Count - 1; i++) { var subjectAlbum = this.ListSubjectAlbum[i]; var subject = this.ListSubjectAlbum[i].ParentSubject; var album = this.ListSubjectAlbum[i].ParentAlbum; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSubjectAlbum.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(subjectAlbum.Guid, subjectAlbum.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li> <%= new HtmlAnchor( new HtmlImg(SettingGroup.AlbumCover(album), album.Name) { Width=100, Height=62, OnErrorImg=SettingGroup.DefaultImg} ) { Title = album.Name, Href = WebUrl.SubjectPlay(subject.Guid, album.Guid), Target = "_blank" }%> </li> </ul> </td> <td width="80" style="word-break: break-all;"> <p> <%= new HtmlAnchor(album.Name) { Href = WebUrl.SubjectPlay(subject.Guid, 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> <br /> ?????<%= album.VideoView %> ?????<%= album.CommentCount %> <br /> <nobr> ?????<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(album.FileSize.ToDouble()) %> </nobr> <br /> <nobr> ?????<%= album.Period %>?? </nobr> <br /> <nobr> ?????<%= ((AVA.ResourcesPlatform.Model.Pub.AlbumShareEnum)album.Share).Define() %> </nobr> </p> </td> <td> <%= album.ParentUser.ParentDomain.Name %> <br /> <%= new HtmlAnchor(album.ParentUser.TrueName) { Href= WebUrl.Show(album.ParentUser.ParentDomain.Code,album.ParentUser.UserName) }%> ( <%= new HtmlAnchor(album.ParentUser.UserName) { Href= WebUrl.Show(album.ParentUser.ParentDomain.Code,album.ParentUser.UserName) }%> ) </td> <td> <span>?????</span> <%= new HtmlSpan(subjectAlbum.SubmissionTime.ToShortDate()) { Title = subjectAlbum.SubmissionRemark }%> <br /> <% if (subjectAlbum.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectAlbumConfirmStatusEnum.???) { %> <span class="pass">?????</span> <% } else if (subjectAlbum.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectAlbumConfirmStatusEnum.???) { %> <span style="color: Red;">?????</span> <% } else if (subjectAlbum.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectAlbumConfirmStatusEnum.?????) { %> <span>??????</span> <% } %> <%= new HtmlSpan(subjectAlbum.ConfirmTime.ToShortDate()) { Title = subjectAlbum.ConfirmRemark }%> </td> <td> <a href="#delete" onclick="SubjectAlbumDelete(this,'<%= SetKey(subjectAlbum.Guid, subjectAlbum.Version) %>'); return false;">???</a> | <%= new HtmlAnchor("???") { Href = WebUrl.SubjectPlay(subject.Guid, album.Guid) }%> <br /> <%= new HtmlText("SortNumber", subjectAlbum.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};SubjectAlbumChangeSortNumberClient(this,'" + SetKey(subjectAlbum.Guid, subjectAlbum.Version) + "')", Lang = subjectAlbum.SortNumber.ToString(), Width = 50, Title = "???????????????????????" }%> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MySubjectAlbumData .trselall").click(function () { if (this.checked == true) { $("#MySubjectAlbumData .trsel").attr("checked", "checked"); } else { $("#MySubjectAlbumData .trsel").removeAttr("checked"); } }) function SelectMySubjectAlbumAll() { var bool = $("#MySubjectAlbumData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectAlbumData .trsel").attr("checked", "checked"); $("#MySubjectAlbumData .trselall").attr("checked", "checked"); } else { $("#MySubjectAlbumData .trsel").removeAttr("checked"); $("#MySubjectAlbumData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMySubjectAlbumAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectAlbum(this.Subject.Guid, int.MaxValue, this.Name, this.ConfirmStatus.ToString(null)) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de