Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\My\MySubjectUserAlbumAdd.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectUserAlbumAdd.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectUserAlbumAdd" %> <div class="well"> <div class="p_title"> <span class="title">??????????????</span><span>??????????????"<%= this.Subject.Name %>" </span><span class="f_r"></span> </div> <div class="dataControl box"> <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 }%> <%= new HtmlHidden("Key","MySubjectUserAlbumAdd") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???????????", "SubjectAlbumBatchAdd(this);")%> </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 SubjectAlbumBatchAdd(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("?????????????????????????") == true) { var submissionRemark = window.prompt("??????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectAlbumBatchAdd", data: key + "&SubmissionRemark=" + encodeURIComponent(submissionRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???????????"); alert("???????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MySubjectUserAlbum(this.Subject.Guid) %>"; }, 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 SubjectAlbumAdd(send, pkid) { if (confirm("???????????????????????") == true) { var submissionRemark = window.prompt("??????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectAlbumAdd", data: "key=" + pkid + "&SubmissionRemark=" + encodeURIComponent(submissionRemark), async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("???????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MySubjectUserAlbum(this.Subject.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); } }); } }; </script> </div> <div id="MyAlbumData" 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" class="disabled">?????? </td> <td valign="middle" class="disabled"></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 + "," + this.Subject.Guid, album.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.AlbumPlay(album.Guid), Target = "_blank" }%> </li> </ul> </td> <td> <p> <%= new HtmlAnchor(album.Name) { Href = WebUrl.AlbumPlay(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> </td> <td> <%= album.CreateTime.ToShortDate() %> </td> <td> <nobr> ?????<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(album.FileSize.ToDouble()) %> </nobr> <br /> <nobr> ?????<%= album.Period%>?? </nobr> <br /> <nobr> ?????<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)album.Share).Define()%> </nobr> </td> <td> <%= album.VideoCount %> </td> <td class="action"> <%= new HtmlAnchor("???") { Href = WebUrl.MyAlbumEdit(album.Guid) }%> | <a href="#delete" onclick="SubjectAlbumAdd(this,'<%= SetKey(album.Guid + "," + this.Subject.Guid, album.Version) %>'); return false;">???</a> <br /> <%= new HtmlAnchor("???") { Href = WebUrl.AlbumPlay(album.Guid) }%> </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> <a onclick="SelectMyAlbumAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageRecordSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectUserAlbumAdd(this.Subject.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