Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\BeijingMiyun\Control\My\MyCollect.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyCollect" %> <div class="flat data-box"> <div class="dataControl "> <form id="frmCollectSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <% var dicType = new Dictionary<string, string>(); dicType.Add("::???::", ""); dicType.Add("???", "Video"); dicType.Add("???", "Album"); %> <%= new HtmlSelect("PVTarget", "Key", "Value", "Value") { Option=dicType,DefaultSelectValue=this.PVTarget }%> <%= new HtmlHidden("Key","MyCollect") %> <%= new HtmlSubmit("???") %> <%= new HtmlButton("??????", "CollectBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form> <script type="text/javascript"> //?????? function CollectBatchDelete(send) { var items = $("#MyCollectData .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.PVHistoryBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("?????????") Global.Disabled(send, false); $("#frmCollectSearch").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("???????????????"); } }; //?????? function CollectDelete(send, pkid) { if (confirm("???????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.PVHistoryDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("?????????") Global.Disabled(send, false); $("#frmCollectSearch").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); } }); } }; </script> </div> <div id="MyCollectData" 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" style="width: 100px;">???</td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListPVHistory.Count - 1; i++) { var pvHistory = this.ListPVHistory[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListPVHistory.Count - 1 ? "lastLine" : "" %>'> <td class="sel" style="width: 20px;" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(pvHistory.Guid, pvHistory.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li class="min-video-photo"> <% if (pvHistory.PVTarget == "Video") { var video = CreateInstance.VideoDao.Get(pvHistory.PVGuid); if (video != null) { %> <%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Title=video.Name, Target = "_blank" }%> <% } } else if (pvHistory.PVTarget == "Album") { var album = CreateInstance.AlbumDao.Get(pvHistory.PVGuid); if (album != null) { %> <%= new HtmlAnchor(album.Name) { Href = WebUrl.AlbumView(album.Guid), Title=album.Name, Target = "_blank" }%> <% } } else if (pvHistory.PVTarget == "Meeting") { var meeting = CreateInstance.MeetingDao.Get(pvHistory.PVGuid); if (meeting != null) { %> <%= new HtmlAnchor(meeting.Name) { Href = WebUrl.MeetingView(meeting.Guid), Title=meeting.Name, Target = "_blank" }%> <% } } else if (pvHistory.PVTarget == "Subject") { var subject = CreateInstance.SubjectDao.Get(pvHistory.PVGuid); if (subject != null) { %> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.SubjectView(subject.Guid), Title=subject.Name, Target = "_blank" }%> <% } } else if (pvHistory.PVTarget == "Application") { var application = CreateInstance.ApplicationDao.Get(pvHistory.PVGuid); if (application != null) { %> <%= new HtmlAnchor(application.Title) { Href = WebUrl.LivePlay(application.Guid), Title=application.Title, Target = "_blank" }%> <% } } %> </li> </ul> </td> <td> <a href="#delete" onclick="CollectDelete(this,'<%= SetKey(pvHistory.Guid, pvHistory.Version) %>'); return false;">??????</a> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyCollectData .trselall").click(function () { if (this.checked == true) { $("#MyCollectData .trsel").attr("checked", "checked"); } else { $("#MyCollectData .trsel").removeAttr("checked"); } }) function SelectMyCollectAll() { var bool = $("#MyCollectData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyCollectData .trsel").attr("checked", "checked"); $("#MyCollectData .trselall").attr("checked", "checked"); } else { $("#MyCollectData .trsel").removeAttr("checked"); $("#MyCollectData .trselall").removeAttr("checked"); } } </script> <div> <a href="#" onclick="SelectMyCollectAll(); return false;">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyCollect(int.MaxValue, this.PVTarget) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de