Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MySTUserVideo.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySTUserVideo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySTUserVideo" %> <%= 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> </div> <div class="dataControl box"> <form id="frmSubjectVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ???????? <%= new HtmlSelect("ConfirmStatus", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectVideoConfirmStatusEnum) }.InsertOption("::???::", "", 0).SelectValue(this.ConfirmStatus)%> <%= new HtmlHidden("Key","MySTUserVideo") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlHidden("ParentSTUser",this.STUser.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("??????", "STUserVideoBatchAdd(this);")%> </form> </div> <script type="text/javascript"> //?????? function STUserVideoBatchAdd(send) { var items = $("#MySTUserVideoData .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("????????????????????<%=this.STUser.ParentUser.TrueName%>???") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STUserVideoBatchAdd", //data: key + "&SubmissionRemark=" + encodeURIComponent(submissionRemark), data: key, async: true, dataType: 'json', success: function (result) { $(send).val("??????"); alert("???????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MySTUserList(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 STUserVideoAdd(send, pkid) { if (confirm("??????????????????<%=this.STUser.ParentUser.TrueName%>???") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STUserVideoAdd", //data: "key=" + pkid + "&SubmissionRemark=" + encodeURIComponent(submissionRemark), data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("???????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MySTUserList(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 id="MySTUserVideoData" 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" style="width: 100px;"> ??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListSubjectVideo.Count - 1; i++) { var subjectVideo = this.ListSubjectVideo[i]; var subject = this.ListSubjectVideo[i].ParentSubject; var video = this.ListSubjectVideo[i].ParentVideo; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSubjectVideo.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(subjectVideo.Guid+","+this.STUser.Guid, subjectVideo.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { Width=100, Height=62, OnErrorImg=SettingGroup.DefaultImg } ) { Href=WebUrl.SubjectPlay(subject.Guid, video.Guid), Title=video.Name, Target="_blank" }%> </td> <td> <p> <%= new HtmlAnchor(video.Name) { Href = WebUrl.SubjectPlay(subject.Guid, video.Guid), Target = "_blank" }%> <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> </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> <br /> <nobr> ?????<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %> </nobr> </td> <td> <span>?????</span> <%= new HtmlSpan(subjectVideo.SubmissionTime.ToShortDate()) { Title = subjectVideo.SubmissionRemark }%> <br /> <% if (subjectVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectVideoConfirmStatusEnum.???) { %> <span class="pass">?????</span> <% } else if (subjectVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectVideoConfirmStatusEnum.???) { %> <span style="color: Red;">?????</span> <% } else if (subjectVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectVideoConfirmStatusEnum.?????) { %> <span>??????</span> <% } %> <%= new HtmlSpan(subjectVideo.ConfirmTime.ToShortDate()) { Title = subjectVideo.ConfirmRemark }%> </td> <td> <a href="#fenpei" onclick="STUserVideoAdd(this,'<%= SetKey(subjectVideo.Guid+","+this.STUser.Guid, subjectVideo.Version) %>'); return false;">???</a> | <%= new HtmlAnchor("???") { Href = WebUrl.SubjectPlay(subject.Guid, video.Guid) }%> <br /> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MySTUserVideoData .trselall").click(function () { if (this.checked == true) { $("#MySTUserVideoData .trsel").attr("checked", "checked"); } else { $("#MySTUserVideoData .trsel").removeAttr("checked"); } }) function SelectMySTUserVideoAll() { var bool = $("#MySTUserVideoData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySTUserVideoData .trsel").attr("checked", "checked"); $("#MySTUserVideoData .trselall").attr("checked", "checked"); } else { $("#MySTUserVideoData .trsel").removeAttr("checked"); $("#MySTUserVideoData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMySTUserVideoAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySTUserVideo(this.STUser.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