Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MySubjectSTVideo.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectSTVideo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectSTVideo" %> <%= new MySubjectUserNavTopInstance(this) { Local= MySubjectUserNavTopItem.????????? }.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="frmSubjectSTVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ????? <%= new HtmlSelect("ParentCategory", "Name", "Guid", "Guid") { Option = this.ListCategory }.InsertOption("::???::", "", 0)%> <%= new HtmlHidden("Key","MySubjectSTVideo") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> </form> </div> <script> var listWeike = {}; </script> <div id="MySubjectSTVideoData" 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>--%> <td valign="middle" class="disabled">??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListSTUserVideo.Count - 1; i++) { var subjectVideo = this.ListSTUserVideo[i]; var subject = this.ListSTUserVideo[i].ParentSubjectVideo.ParentSubject; var video = this.ListSTUserVideo[i].ParentSubjectVideo.ParentVideo; %> <script> listWeike["<%= video.Guid %>"] = { nrurl: "<%= CreateInstance.VideoDao.GetResourcePath(video).VideoShow %> ", hdurl: "<%= CreateInstance.VideoDao.GetResourcePath(video).HighDefinition %> ", <%-- nrurl: "<%= Request.WebPath()+"/upload/Video/test/test.mp4"%>", hdurl: "<%= Request.WebPath()+"/upload/Video/test/test.mp4"%>",--%> weburl: "<%= WebUrl.VideoPlay(video.Guid) %>", image: "<%= SettingGroup.VideoCoverL(video) %>", name: "<%= video.Name%> " }; </script> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSTUserVideo.Count - 1 ? "lastLine" : "" %>'> <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(subjectVideo.Guid, subjectVideo.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li class=""> <%= new HtmlImg(SettingGroup.VideoCover(video), video.Name) { Width=100, Height=62, OnErrorImg=SettingGroup.DefaultImg} %> </li> </ul> </td> <td> <p> <a data-toggle="modal" class="open-playerDialog" data-target="#videoplayerModal" data-guid="<%= video.Guid %>" style="cursor: pointer;"><%=video.Name %> </a> <%-- <%= new HtmlAnchor(video.Name) { Href = WebUrl.SubjectPlay(subject.Guid, video.Guid), Target = "_blank" }%>--%> <%-- <% 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> <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 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> <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="#delete" onclick="SubjectVideoDelete(this,'<%= SetKey(subjectVideo.Guid, subjectVideo.Version) %>'); return false;">???</a><br /> <%= new HtmlAnchor("???") { Href = WebUrl.SubjectPlay(subject.Guid, video.Guid), Target = "_blank" }%> </td>--%> <td>????????<%= CreateInstance.STVideoScoreDao.VideoScoreCount(subject,video) %> / <%= subject._ListSTUser.Count %> <br /> <% if (CreateInstance.STVideoScoreDao.VideoScore(subject, video) == 0) { %> <span style="color: red">?????</span> <% } else { %> ???<%=CreateInstance.STVideoScoreDao.VideoScore(subject, video) %>?? <% } %> </td> </tr> <% } %> </tbody> </table> </div> <div id="videoplayerModal" class="modal hide " tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width: 1200px; overflow: hidden; margin: -250px 0 0 -580px; max-height: 650px; height: 650px;"> <div style="width: 1200px; overflow: hidden; float: left"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">?</button> <h3><a href="#" id="myModalLabel">Modal header</a><i class="icon-info-sign" style="vertical-align: middle; margin-top: -5px;"></i></h3> </div> <div class="modal-body" style="overflow-x: auto;padding:0;"> <div style="float: left;"> <div class="" id="JWPlayer"> </div> <div class="hor-tabs mini-tabs"> <ul class="tabs" style="list-style: none;"> <li style="margin-bottom: 0;" class="active"><a href="#VideoInfo-pane" class="btn" data-toggle="tab">???????</a></li> <li style="margin-bottom: 0;"><a href="#VideoAttachment-pane" class="btn" data-toggle="tab">???</a></li> </ul> <div class="pill-content hor-content" style="height: 100px; overflow-x: auto;"> <div class="pill-pane active" id="VideoInfo-pane"> <div class="" id="VideoInfo"> </div> </div> <div class="pill-pane" id="VideoAttachment-pane"> <div class="" id="VideoAttachment"> </div> </div> </div> </div> </div> <div style="margin-left: 710px; "> <ul class="nav-pills hidden" style="display: inline-block; list-style: none;"> <li class="active"><a href="#socreItemWrapper-pane" data-toggle="tab">?????</a></li> <li><a href="#videoSWPatternWrapper-pane" data-toggle="tab">ST??</a></li> <li><a href="#UserComments-pane" data-toggle="tab">??????</a></li> </ul> <div class="pill-content"> <div class="pill-pane active" id="socreItemWrapper-pane"> <div class="hor-tabs mini-tabs" id="socreItemWrapper" style="overflow-x: auto; height: 400px"> </div> </div> <div class="pill-pane hidden" id="videoSWPatternWrapper-pane" > <div class="" id="videoSWPatternWrapper"> </div> </div> <div class="pill-pane active" id="UserComments-pane" style="height: 190px"> <div class="" id="UserComments"> </div> </div> </div> </div> </div> <div class="modal-footer "> <a class="btn" id="nextVideo">></a><a class="btn" id="preVideo"><</a> <%-- <button class="btn" data-dismiss="modal" aria-hidden="true">???</button> <button class="btn btn-primary">Save changes</button>--%> </div> </div> </div> <script type="text/javascript" src='<%= Request.WebPath()+"/Tools/JWPlayer/jwplayer.js" %>'></script> <script> $(document).ready(function () { $("#videoplayerModal").appendTo("body"); var aArray = $('.open-playerDialog'); var currentIdx = -1; $("#nextVideo").on("click", function (e) { e.preventDefault(); if (currentIdx != -1) { if (currentIdx != aArray.length - 1) { $(aArray[currentIdx + 1]).trigger("click").trigger("click"); } if (currentIdx + 1 == aArray.length - 1) { //$(e.target).toggleClass("hidden"); } } }); $("#preVideo").on("click", function (e) { e.preventDefault(); if (currentIdx != -1) { if (currentIdx != 0) { $(aArray[currentIdx - 1]).trigger("click").trigger("click"); } if (currentIdx - 1 == 0) { // $(e.target).toggleClass("hidden"); } } }); $(document).on("click", ".open-playerDialog", function (e) { e.preventDefault(); currentIdx = $(aArray).index($(e.target)); LoadFrameAjax(this); }); function LoadFrameAjax(target) { var myBookId = $(target).data('guid'); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.PVHistoryAdd", data: "PKId=" + myBookId + "&PVTarget=video&PVType=1", async: true, dataType: 'json', success: function (result) { }, beforeSend: function () { }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { } }); var prams = "SubjectGuid=<%= this.Subject.Guid %>&VideoGuid=" + myBookId; Global.HtmlControl("<%= ControlPath("/SubjectPlay/SubjectPlaySTScoreItem")%>", prams, null, function (json) { if (json != null) { $("#socreItemWrapper").html(json.Html); } }); var prams1 = "VideoGuid=" + myBookId; Global.HtmlControl("<%= ControlPath("/VideoPlay/VideoPlaySWPattern")%>", prams1, null, function (json) { if (json != null) { $("#videoSWPatternWrapper").html(json.Html); } }); Global.HtmlControl("<%= ControlPath("/SubjectPlay/SubjectVideoInfo")%>", prams1, null, function (json) { if (json != null) { $("#VideoInfo").html(json.Html); } }); var prams2 = "TargetType=Video&TargetGuid=" + myBookId + "&IsShowComment=false"; Global.HtmlControl("<%= ControlPath("/Comment/LiveCommentAdd")%>", prams2, null, function (json) { if (json != null) { $("#UserComments").html(json.Html); } }); var video = listWeike[myBookId]; $("#videoplayerModal #myModalLabel").html(video.name).attr("href", video.weburl); //jwplayer("JWPlayer").load([{ // file: video.nrurl, // image: video.image //}]); //jwplayer("JWPlayer").play(); jwplayer("JWPlayer").setup({ flashplayer: '<%= Request.WebPath()+"/Tools/JWPlayer/AvaPlayer.swf" %>', controlbar: 'bottom', autostart: true, // streamer: "start", file: FormatHTML5Path(video.nrurl), image: video.image, height: 420, width: 700 }); jwplayer("JWPlayer").load().play(); } }); function FormatHTML5Path(url) { var temp1 = '<%= AVA.ResourcesPlatform.Factory.CreateInstance.DomainDao.Get(CookieGroup.DomainGuid).RouteWebSite %>'; var temp2 = '<%= AVA.ResourcesPlatform.Factory.CreateInstance.DomainDao.Get(CookieGroup.DomainGuid).RouteRecourseSite %>'; url = url.replace(temp1, temp2); return url; } </script> <script type="text/javascript"> $("#MySubjectSTVideoData .trselall").click(function () { if (this.checked == true) { $("#MySubjectSTVideoData .trsel").attr("checked", "checked"); } else { $("#MySubjectSTVideoData .trsel").removeAttr("checked"); } }) function SelectMySubjectSTVideoAll() { var bool = $("#MySubjectSTVideoData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectSTVideoData .trsel").attr("checked", "checked"); $("#MySubjectSTVideoData .trselall").attr("checked", "checked"); } else { $("#MySubjectSTVideoData .trsel").removeAttr("checked"); $("#MySubjectSTVideoData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMySubjectSTVideoAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectSTVideo(this.Subject.Guid, int.MaxValue,this.CategoryGuid,this.Name) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de