Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\My\MyMeetingAttachmentList.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyMeetingAttachmentList.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyMeetingAttachmentList" %> <div class="well"> <div class="p_title"> <span class="title">??????????????</span><span> <%= this.Meeting._ListMeetingAttachment.Count %>????? </span><span class="f_r"> <%= new HtmlAnchor("??????") { Href= WebUrl.MyMeetingEdit(this.Meeting.Guid) }%> | <%= new HtmlAnchor("??????") { Href= WebUrl.MyMeetingUserList(this.Meeting.Guid) }%> | <%= new HtmlAnchor("????????") { Href= WebUrl.MyMeetingUserApplyList(this.Meeting.Guid) }%> | <%= new HtmlAnchor("????????") { Href= WebUrl.MyMeetingSpeakerList(this.Meeting.Guid) }%> | <%= new HtmlAnchor("??????") { Href= WebUrl.MyMeetingVideoList(this.Meeting.Guid) }%> </span> </div> <div class="dataControl box"> <%= new HtmlButton("???...", "window.location.href='" + WebUrl.MyMeetingAttachmentAdd(this.Meeting.Guid) + "';")%> <%= new HtmlButton("???", "MeetingAttachmentBatchDelete(this);")%> </div> <div id="MyMeetingAttachmentData" 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" 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.ListMeetingAttachment.Count - 1; i++) { var meetingAttachment = this.ListMeetingAttachment[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListMeetingAttachment.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(meetingAttachment.Guid, meetingAttachment.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <%= new HtmlAnchor(meetingAttachment.FileName) { Target = "_blank", Href = SettingGroup.MeetingAttachmentFile(meetingAttachment) }%> </td> <td> <%= ((AVA.ResourcesPlatform.Model.Pub.MeetingAttachmentFileTypeEnum)meetingAttachment.FileType).Define() %> </td> <td> <%= AVA.ResourcesPlatform.Config.Helper.FormatSize(meetingAttachment.FileSize) %> </td> <td class="action"> <%= new HtmlAnchor("???") { Href = WebUrl.MyMeetingAttachmentEdit(meetingAttachment.Guid) }%> | <a href="#delete" onclick="MeetingAttachmentDelete(this,'<%= SetKey(meetingAttachment.Guid, meetingAttachment.Version) %>'); return false;">???</a></td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyMeetingAttachmentData .trselall").click(function () { if (this.checked == true) { $("#MyMeetingAttachmentData .trsel").attr("checked", "checked"); } else { $("#MyMeetingAttachmentData .trsel").removeAttr("checked"); } }) function SelectMyMeetingAttachmentAll() { var bool = $("#MyMeetingAttachmentData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyMeetingAttachmentData .trsel").attr("checked", "checked"); $("#MyMeetingAttachmentData .trselall").attr("checked", "checked"); } else { $("#MyMeetingAttachmentData .trsel").removeAttr("checked"); $("#MyMeetingAttachmentData .trselall").removeAttr("checked"); } } </script> <script type="text/javascript"> //?????? function MeetingAttachmentBatchDelete(send) { var items = $("#MyMeetingAttachmentData .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.MeetingAttachmentBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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 MeetingAttachmentDelete(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MeetingAttachmentDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("????????????") Global.Disabled(send, false); window.location.href = window.location.href; }, 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> <a onclick="SelectMyMeetingAttachmentAll(); return false;" href="#">???? - ???</a> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de