Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyShiXunWorkVideo.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectVideo" %> <%= new MyShiXunWorkNavInstance(this) { Local = MyShiXunWorkNavItem.??????, Subject = this.Subject }.ToHtml()%> <div class="flat data-box"><div class="head"> <span class="title"><%= Define.Get("Client_??????")%>"<%= this.Subject.Name %>"??<%= this.Query.RecordCount %>?????</span><span class="sub-title"></span><span class="pull-right total-items"></span> </div> <div class="dataControl "> <form id="frmSubjectVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> <%= new HtmlHidden("Key","MyShiXunWorkVideo") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%--<%= new HtmlButton("??????", "window.location.href='" + WebUrl.MySubjectVideoAdd(this.Subject.Guid) + "';"){ Class="btn btn-defalut " }%>--%> <%--<a data-toggle="modal" data-target="#sharedModal" data-guid="" class="add-item-by-modal btn btn-defalut" href="#">??????</a>--%> <input type="button" value="????????????" onclick="ExprotExcelXML(this);" class="btn pull-right" style="margin-left:10px;" /> <%= new HtmlButton("???", "SubjectVideoBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> </form> <form id="frmExprotExcelXML" method="post" action="<%= WebUrl.Exprot() %>"> <%= new HtmlHidden("ExprotExcelXMLParameter", this.Subject.Guid)%> <%= new HtmlHidden("ExprotKey","STVideoScore") %> <%--<%= new HtmlButton("?????????", "ExprotExcelXML(this);"){ Class="pull-right" }%>--%> </form> <script type="text/javascript"> $(document).on("hidden", "#sharedModal", function () { location.reload(); }); $(".add-item-by-modal").on("click", function () { var url = "/My/SubjectVideoAdd.aspx?Guid=<%= this.Subject.Guid%>"; $("#sharedModal #sharedModalLabel").html("???<%= Define.Get("Nav_Subject_??????")%>"); $(".modal-body").css("height", $(window).height() * .7); $("#sharedModal").width($(window).width() * .9) .css("margin-left", -$("#sharedModal").width() / 2) .css("margin-top", -$("#sharedModal").height() / 2); $("#iframeControl").attr("src", url).css("width", "100%").css("min-height", $(".modal-body").height()).css("height", $($("#iframeControl")[0].contentDocument).height()); $(document).on("ChildPageLoad", function (e, param) { $("#iframeControl").css("min-height", "98%"); }); }); //????????? function ExprotExcelXML() { if (confirm("???????????????") == false) { return false; } //alert("?????????"); $("#exportVideoScore").val("??????"); document.getElementById('frmExprotExcelXML').submit(); $("#exportVideoScore").val("?????????"); } //?????? function SubjectVideoBatchDelete(send) { var items = $("#MySubjectVideoData .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.SubjectVideoBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("<%= Define.Get("Client_??????") %>?????????") Global.Disabled(send, false); $("#frmSubjectVideoSearch").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("???????????<%= Define.Get("Client_??????") %>????????"); } }; //?????? function SubjectVideoDelete(send, pkid) { if (confirm("?????????<%= Define.Get("Client_??????") %>?????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectVideoDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("<%= Define.Get("Client_??????") %>?????????") Global.Disabled(send, false); $("#frmSubjectVideoSearch").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="MySubjectVideoData" 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" colspan="2"> ??? </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, subjectVideo.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td> <% int stUserCount = CreateInstance.STUserDao.Count(l=>l.ParentSubject == this.Subject); int hasSTUserCount = CreateInstance.STVideoScoreDao.Count(l => l.ParentVideo == video && l.ParentSTUser.ParentSubject == this.Subject); int noSTUserCount = stUserCount-hasSTUserCount; %> ?????<%= hasSTUserCount %>??<br /> ?????<%= noSTUserCount %>?? </td> <td> <% var videoFinallyScore = CreateInstance.STfinallyScoreDao.Where(l => l.ParentVideo == video && l.ParentSubject == this.Subject).FirstResult(); if (videoFinallyScore == null) { %> ?????? <% } else { %> <%= videoFinallyScore.AllScore %>?? <% } %> </td> <td class="v"> <div class="min-video-photo"><%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { OnErrorImg=SettingGroup.DefaultImg } ) { Href=WebUrl.SubjectPlay(subject.Guid, video.Guid), Title=video.Name, Target="_blank" }%></div> </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 %><br /> ?????<%= video.Period %>?? </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> <%= new MarkingMarkInstance(this) { MKType=(int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.???,MKTarget=AVA.ResourcesPlatform.Model.Pub.MarkingMKTargetEnum.???.ToString(),MKGuid=video.Guid }.ToHtml()%> </td> <td> <a href="#delete" onclick="SubjectVideoDelete(this,'<%= SetKey(subjectVideo.Guid, subjectVideo.Version) %>'); return false;">???</a> | <%= new HtmlAnchor("???") { Href="#", OnClick="GoToSubjectST();" }%> <br /> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MySubjectVideoData .trselall").click(function () { if (this.checked == true) { $("#MySubjectVideoData .trsel").attr("checked", "checked"); } else { $("#MySubjectVideoData .trsel").removeAttr("checked"); } }) function SelectMySubjectVideoAll() { var bool = $("#MySubjectVideoData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectVideoData .trsel").attr("checked", "checked"); $("#MySubjectVideoData .trselall").attr("checked", "checked"); } else { $("#MySubjectVideoData .trsel").removeAttr("checked"); $("#MySubjectVideoData .trselall").removeAttr("checked"); } } function GoToSubjectST() { if ('<%= this.Subject.CutoffTime > DateTime.Now%>' == 'True') { alert("???????????????<%= this.Subject.CutoffTime.ToShortDate() %>????????"); return; } window.open('<%= WebUrl.MySubjectSTVideo(this.Subject.Guid)%>'); } </script> <div> <a onclick="SelectMySubjectVideoAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyShiXunWorkVideo(this.Subject.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