Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyVideoToSubject.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideoToSubject" %> <div class="box well"> <div class="p_title"> <span class="title">????????</span> </div> <div class="dataControl box"> <form id="frmVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ????? <%= new HtmlText("BeginTime", this.BeginTime.ToShortDate()) { Width = 80 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToShortDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MyVideoToSubject") %> <%= new HtmlHidden("ParentVideo",this.Video.Guid) %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("???????????", "SubjectVideoBatchAdd(this);")%> </form> <script type="text/javascript"> $(function () { $("#frmVideoSearch [name=BeginTime]").datepicker({ maxDate: new Date($("#frmVideoSearch [name=EndTime]").val()), onClose: function () { $("#frmVideoSearch [name=EndTime]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmVideoSearch [name=EndTime]").datepicker({ minDate: new Date($("#frmVideoSearch [name=BeginTime]").val()), onClose: function () { $("#frmVideoSearch [name=BeginTime]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function SubjectVideoBatchAdd(send) { var items = $("#MySubjectData .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 submissionRemark = window.prompt("??????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectVideoBatchAdd", data: key + "&SubmissionRemark=" + encodeURIComponent(submissionRemark), async: true, dataType: 'json', success: function (result) { $(send).val("???????????"); alert("????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MyVideoToSubject(this.Video.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 SubjectVideoAdd(send, pkid) { if (confirm("???????????????????????") == true) { var submissionRemark = "";//window.prompt("????????????", ""); $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.SubjectVideoAdd", data: "key=" + pkid + "&SubmissionRemark=" + encodeURIComponent(submissionRemark), async: true, dataType: 'json', success: function (result) { $(send).html("???"); alert("????????????") Global.Disabled(send, false); window.location.href = "<%= WebUrl.MyVideoToSubject(this.Video.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> <div id="MySubjectData" 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.ListSubjectUser.Count - 1; i++) { var subject = this.ListSubjectUser[i].ParentSubject; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSubjectUser.Count - 1 ? "lastLine" : "" %>'> <td class="sel" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(subject.Guid, subject.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v"> <ul> <li> <%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { Width=100, Height=62, OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank" }%> </li> </ul> </td> <td> <p> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank" }%> <br /> <% var classExamine = ""; if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.??????) { classExamine = "pass"; } else if (subject.Examine == (int)AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum.????????) { } else { classExamine = ""; } %> <span class="<%=classExamine %>"> <nobr> <%= ((AVA.ResourcesPlatform.Model.Pub.SubjectExamineEnum)subject.Examine).Define() %> </nobr> </span> <% if (subject.LockSubject == (int)AVA.ResourcesPlatform.Model.Pub.SubjectLockSubjectEnum.???) { %> <%= new HtmlSpan("???") { Title = subject.ParentLockUser.UserName + " " + subject.LockDateTime + " " + subject.LockDescription }.Style(new { Color = "Red" })%> <% } %> <br /> <% if (subject.ShareUpload == (int)AVA.ResourcesPlatform.Model.Pub.SubjectShareUploadEnum.??) { %> ?????? <% } %> ?????<%= subject.VideoView%> ?????<%= subject.CommentCount%> </p> </td> <td> <% var classStatus = ""; if (subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { classStatus = "pass"; } else { classStatus = ""; } %> <span class="<%=classStatus %> short_input" > <%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "SubjectChangeStatusClient(this,'" + SetKey(subject.Guid, subject.Version) + "');", Lang = subject.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum), SelectedValue = subject.Status }.Style(new { Width = "auto" })%> </span></td> <td> <%= subject.BeginTime.ToShortDate()%> <br /> ?? <br /> <%= subject.EndTime.ToShortDate()%> </td> <td> <%= subject.CutoffTime.ToShortDate()%> </td> <td><a href="#delete" onclick="SubjectVideoAdd(this,'<%= SetKey(this.Video.Guid + "," + subject.Guid, this.Video.Version) %>'); return false;">???</a> </td> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MySubjectData .trselall").click(function () { if (this.checked == true) { $("#MySubjectData .trsel").attr("checked", "checked"); } else { $("#MySubjectData .trsel").removeAttr("checked"); } }) function SelectMyVideoAll() { var bool = $("#MySubjectData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectData .trsel").attr("checked", "checked"); $("#MySubjectData .trselall").attr("checked", "checked"); } else { $("#MySubjectData .trsel").removeAttr("checked"); $("#MySubjectData .trselall").removeAttr("checked"); } } </script> <div> <a onclick="SelectMyVideoAll(); return false;" href="#">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyVideoToSubject(this.Video.Guid, int.MaxValue, this.Name, this.BeginTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de