Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyMeetingVideo.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyMeetingVideo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyMeetingVideo" %> <%= new MyMeetingNavInstance(this) { Local = MyMeetingNavItem.????????? }.ToHtml()%> <div class="box well"> <div class="p_title"> <span class="title">????????</span><%= this.Meeting.Name %> <span>??<%= this.Query.RecordCount %>?????</span> </div> <div class="dataControl box"> <form id="frmMeetingVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ???????? <%= new HtmlSelect("ConfirmStatus", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.MeetingVideoConfirmStatusEnum) }.InsertOption("::???::", "", 0).SelectValue(this.ConfirmStatus)%> <%= new HtmlHidden("Key","MyMeetingVideo") %> <%= new HtmlHidden("ParentMeeting",this.Meeting.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("??????", "window.location.href='" + WebUrl.MyMeetingVideoAdd(this.Meeting.Guid) + "';")%> <%= new HtmlButton("???", "MeetingVideoBatchConfirm(this);")%> <%= new HtmlButton("???", "MeetingVideoBatchUnConfirm(this);")%> <%= new HtmlButton("???", "MeetingVideoBatchDelete(this);")%> </form> <script type="text/javascript"> //?????? function MeetingVideoBatchDelete(send) { var items = $("#MyMeetingVideoData .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.MeetingVideoBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmMeetingVideoSearch").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 MeetingVideoDelete(send, pkid) { if (confirm("??????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MeetingVideoDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("????????????") Global.Disabled(send, false); $("#frmMeetingVideoSearch").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 MeetingVideoChangeSortNumberClient(send, pkid) { if (send.value != send.lang) { if (confirm("??????????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.MeetingVideoChangeSortNumber", data: "key=" + pkid + "&SortNumber=" + encodeURIComponent($(send).val()), async: true, dataType: 'json', success: function (result) { alert("?????????????????") Global.Disabled(send, false); $("#frmMeetingVideoSearch").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 MeetingVideoBatchConfirm(send) { var items = $("#MyMeetingVideoData .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.MeetingVideoBatchConfirm", data: key + "&ConfirmRemark=" + encodeURIComponent(confirmRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmMeetingVideoSearch").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 MeetingVideoBatchUnConfirm(send) { var items = $("#MyMeetingVideoData .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.MeetingVideoBatchUnConfirm", data: key + "&ConfirmRemark=" + encodeURIComponent(confirmRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???"); alert("????????????") Global.Disabled(send, false); $("#frmMeetingVideoSearch").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="MyMeetingVideoData" 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> <td valign="middle" class="disabled"> ??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListMeetingVideo.Count - 1; i++) { var meetingVideo = this.ListMeetingVideo[i]; var meeting = this.ListMeetingVideo[i].ParentMeeting; var video = this.ListMeetingVideo[i].ParentVideo; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListMeetingVideo.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(meetingVideo.Guid, meetingVideo.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li> <%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) {Width=100, Height=62 , OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.MeetingPlay(meeting.Guid, video.Guid), Title = video.Name, Target = "_blank" }%> </li> </ul> </td> <td> <ul> <li> <p> <%= new HtmlAnchor(video.Name) { Href = WebUrl.MeetingPlay(meeting.Guid, video.Guid), Suffix="..", TextLength=12, Target = "_blank" }%> </br> <%= new HtmlAnchor(video.Author) { Href= WebUrl.Show(video.ParentUser.ParentDomain.Code,video.ParentUser.UserName) }%> ( <%= new HtmlAnchor(video.ParentUser.UserName) { Href= WebUrl.Show(video.ParentUser.ParentDomain.Code,video.ParentUser.UserName) }%> ) </br> <% var classStatus = ""; if (video.Status == (int)AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum.???) { classStatus = "pass"; } else { classStatus = ""; } %> <span class="<%=classStatus %>"> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum)video.Status).Define() %> </span> <% var classExamine = ""; if (video.Examine == (int)AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum.??????) { classExamine = "pass"; } else if (video.Examine == (int)AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum.????????) { } else { classExamine = ""; } %> <span class="<%=classExamine %>"> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum)video.Examine).Define() %> </span> <% var videoConvertStatus = ""; if (video.VideoConvertStatus == (int)AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum.?????) { videoConvertStatus = "pass"; } else { videoConvertStatus = ""; } %> <span class="<%=videoConvertStatus %>"> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum)video.VideoConvertStatus).Define() %> </span> <%--<br /> ?????<%= video.VideoView %> ?????<%= video.CommentCount %>--%> </p> </li> </ul> </td> <td> <%= video.ParentUser.ParentDomain.Name %> <br /> <%= new HtmlAnchor(video.Author) { Href= WebUrl.Show(video.ParentUser.ParentDomain.Code,video.ParentUser.UserName) }%> ( <%= new HtmlAnchor(video.ParentUser.UserName) { Href= WebUrl.Show(video.ParentUser.ParentDomain.Code,video.ParentUser.UserName) }%> ) </td> <td> <nobr> ?????<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(video.FileSize.ToDouble()) %> </nobr> <br /> <nobr> ?????<%= video.Period %>?? </nobr> <nobr> <br /> ?????<%= video.VideoView %> ?????<%= video.CommentCount %> </nobr> <%--<br /> <nobr> ?????<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %> </nobr>--%> </td> <td> <span>?????</span> <%= new HtmlSpan(meetingVideo.SubmissionTime.ToShortDate()) { Title = meetingVideo.SubmissionRemark }%> <br /> <% if (meetingVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.MeetingVideoConfirmStatusEnum.???) { %> <span class="pass">?????</span> <% } else if (meetingVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.MeetingVideoConfirmStatusEnum.???) { %> <span style="color: Red;">?????</span> <% } else if (meetingVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.MeetingVideoConfirmStatusEnum.?????) { %> <span>??????</span> <% } %> <%= new HtmlSpan(meetingVideo.ConfirmTime.ToShortDate()) { Title = meetingVideo.ConfirmRemark }%> </td> <td> <a href="#delete" onclick="MeetingVideoDelete(this,'<%= SetKey(meetingVideo.Guid, meetingVideo.Version) %>'); return false;">???</a> | <%= new HtmlAnchor("???") { Href = WebUrl.MeetingPlay(meeting.Guid, video.Guid) }%> <br /> <%= new HtmlText("SortNumber", meetingVideo.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};MeetingVideoChangeSortNumberClient(this,'" + SetKey(meetingVideo.Guid, meetingVideo.Version) + "')", Lang = meetingVideo.SortNumber.ToString(), Width = 50, Title = "????????????????????" }%> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyMeetingVideoData .trselall").click(function () { if (this.checked == true) { $("#MyMeetingVideoData .trsel").attr("checked", "checked"); } else { $("#MyMeetingVideoData .trsel").removeAttr("checked"); } }) function SelectMyMeetingVideoAll() { var bool = $("#MyMeetingVideoData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyMeetingVideoData .trsel").attr("checked", "checked"); $("#MyMeetingVideoData .trselall").attr("checked", "checked"); } else { $("#MyMeetingVideoData .trsel").removeAttr("checked"); $("#MyMeetingVideoData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyMeetingVideoAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyMeetingVideo(this.Meeting.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