Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyVideo.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideo" %> <%= new MyVideoNavTopInstance(this) { Local= MyVideoNavTopItem.?????? }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title">???<%= this.Query.RecordCount %>?????</span> </div> <div class="dataControl pull-left"> <form id="frmVideoSearch" method="post" action="<%= WebUrl.Proxy() %>"> ????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ????? <%= new HtmlText("CreateTimeBegin", this.CreateTimeBegin.ToShortDate()) { Width = 80 }%> ?? <%= new HtmlText("CreateTimeEnd", this.CreateTimeEnd.ToShortDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MyVideo") %> <%= new HtmlSubmit("???") %> <%= new HtmlReset("???") { Class="btn"}%> <%= new HtmlButton("??????", "window.location.href='" + WebUrl.MyVideoUpload() + "';"){ Class="btn btn-warning " }%> </form> <script type="text/javascript"> $(function () { $("#frmVideoSearch [name=CreateTimeBegin]").datepicker({ maxDate: new Date($("#frmVideoSearch [name=CreateTimeEnd]").val()), onClose: function () { $("#frmVideoSearch [name=CreateTimeEnd]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmVideoSearch [name=CreateTimeEnd]").datepicker({ minDate: new Date($("#frmVideoSearch [name=CreateTimeBegin]").val()), onClose: function () { $("#frmVideoSearch [name=CreateTimeBegin]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> //?????? function VideoBatchDelete(send) { var items = $("#MyVideoData .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.VideoBatchDelete", data: key, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("????????????") Global.Disabled(send, false); $("#frmVideoSearch").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("???????????????"); } }; //?????? function VideoDelete(send, pkid) { if (confirm("???????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoDelete", data: "key=" + pkid, async: true, dataType: 'json', success: function (result) { $(send).html("???"); flash("????????????") Global.Disabled(send, false); $("#frmVideoSearch").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 VideoChangeSortNumberClient(send, pkid) { if (send.value != send.lang) { if (confirm("???????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoChangeSortNumber", data: "key=" + pkid + "&SortNumber=" + encodeURIComponent($(send).val()), async: true, dataType: 'json', success: function (result) { flash("??????????????") Global.Disabled(send, false); $("#frmVideoSearch").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; } } }; //????????<%= Define.Get("Client_??????")%> function VideoBatchToSubject(send) { var subject = $('input[name="SubjectGuid"]').filter(':checked'); var subjectGuid = ""; if (subject.length > 0) { subjectGuid = subject.val(); } var items = $("#MyVideoData .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 (subjectGuid != "") { if (confirm("?????????????????") == true) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoBatchToSubject", data: key + "&Subject=" + subjectGuid, async: true, dataType: 'json', success: function (result) { $(send).val("???"); flash("??????") Global.Disabled(send, false); $("#frmVideoSearch").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("??????????????????????"); } } else { flash("???????????????"); } } </script> </div> <div id="add_2_my_subject" style="display: inline;float:left"> <div class="btn-group dropdown"> <button class="btn ">????????</button> <button class="btn dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> </button> <div class="dropdown-menu" id="ShowSubject"> <!-- dropdown menu links --> <form> <ul style="margin-left:0px;"> <% //????????????????????? List<AVA.ResourcesPlatform.Model.Pub.Subject> listShixunSubject = new List<AVA.ResourcesPlatform.Model.Pub.Subject>(); List<AVA.ResourcesPlatform.Model.Pub.Subject> listShixunWork = new List<AVA.ResourcesPlatform.Model.Pub.Subject>(); var listSubjectUser = CreateInstance.SubjectUserDao.Where(l => l.ParentUser == this.User && l.ParentSubject.CutoffTime > DateTime.Now && l.ParentSubject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.??? && (l.ParentSubject.ShareUpload == (int)AVA.ResourcesPlatform.Model.Pub.SubjectShareUploadEnum.?? || (l.ParentSubject.ShareUpload == (int)AVA.ResourcesPlatform.Model.Pub.SubjectShareUploadEnum.?? && l.JoinType == (int)AVA.ResourcesPlatform.Model.Pub.SubjectUserJoinTypeEnum.???????))) .OrderBy(l => l.ParentSubject.CutoffTime) .ToList(); if (listSubjectUser.Count > 0) { foreach (var item in listSubjectUser) { if (item.ParentSubject.STEnable == true) { listShixunSubject.Add(item.ParentSubject); } else { listShixunWork.Add(item.ParentSubject); } } } if (listShixunSubject != null && listShixunSubject.Count > 0) { foreach (var subject in listShixunSubject) { %> <li style="padding-left: 6px;"> <%--<input type="checkbox" id="checkbox_del_stuser_<%= subject.Guid %>" class="stUsersel" value="<%= subject.Guid%>" data-guid="<%= subject.Guid %>" />--%> <%= new HtmlRadio("SubjectGuid", subject.Guid, null) { ID = "SubjectGuid"+subject.Guid, }%> <%= new HtmlSpan(subject.Name) { TextLength=10, Suffix=".."}%> </li> <% } %> <li><%= new HtmlButton("???", "VideoBatchToSubject(this);"){ Class="btn btn-danger" }.Style(new {Width ="100%"})%></li> <% } else { %> <li style="padding-left: 6px;">?????????????? </li> <% } %> </ul> </form> </div> </div> </div> <div id="Div1" style="display: inline;float:left"> <div class="btn-group dropdown"> <button class="btn ">????????</button> <button class="btn dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> </button> <div class="dropdown-menu" id="ShowShiXunWork"> <!-- dropdown menu links --> <form> <ul style="margin-left:0px;"> <% if (listShixunWork != null && listShixunWork.Count > 0) { foreach (var subject in listShixunWork) { %> <li style="padding-left: 6px;"> <%--<input type="checkbox" id="checkbox_del_stuser_<%= subject.Guid %>" class="stUsersel" value="<%= subject.Guid%>" data-guid="<%= subject.Guid %>" />--%> <%= new HtmlRadio("SubjectGuid", subject.Guid, null) { ID = "SubjectGuid"+subject.Guid, }%> <%= new HtmlSpan(subject.Name) { TextLength=10, Suffix=".."}%> </li> <% } %> <li><%= new HtmlButton("???", "VideoBatchToSubject(this);"){ Class="btn btn-danger" }.Style(new {Width ="100%"})%></li> <% } else { %> <li style="padding-left: 6px;">?????????????? </li> <% } %> </ul> </form> </div> </div> </div> <%= new HtmlButton("???", "VideoBatchDelete(this);"){ Class="btn-danger pull-right" }%> <div id="MyVideoData" 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" style="width:250px;">???</td> <td valign="middle">????</td> <td valign="middle">???</td> <td valign="middle">???</td> <td valign="middle">???</td> <td valign="middle" style="width: 80px;">???</td> <%--<td valign="middle" style="width: 40px;">???</td>--%> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListVideo.Count - 1; i++) { var video = this.ListVideo[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListVideo.Count - 1 ? "lastLine" : "" %>'> <td class="sel" style="width: 20px;" valign="middle"> <%= new HtmlCheckBox() { Value = SetKey(video.Guid, video.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td> <td class="v min-video-photo-td"> <div class="min-video-photo"> <%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.VideoPlay(video.Guid), Title=video.Name, Target = "_blank" }%> <a class=" <%= video.IsWeiKe ? "weike_icon" : "" %>" href="<%= WebUrl.VideoPlay(video.Guid) %>" target="_blank"></a> </div> </td> <td> <p> <%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Target = "_blank" ,Suffix="...",TextLength=20 }%> <br /> <% var listSubject = CreateInstance.SubjectVideoDao.Where(l => l.ParentVideo == video).ToList(); if (listSubject.Count > 0) { %> ?????????<br /> <% foreach(var item in listSubject) { %> <%= new HtmlAnchor(item.ParentSubject.Name) { Href = WebUrl.SubjectView(item.ParentSubject.Guid), TextLength = 20, Suffix = "...", Target = "_blank" }.Style(new { Color="blue" })%> <br /> <% } } else { %> ?????????????? <% } %> <%-- <br /> <br /> ?????<%= video.VideoView %> ?????<%= video.CommentCount %>--%> </p> </td> <td> <% 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><br /> <% 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 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 /> <% if (video.LockVideo == (int)AVA.ResourcesPlatform.Model.Pub.VideoLockVideoEnum.???) { %> <%= new HtmlSpan("???") { Title = video.ParentLockUser.UserName + " " + video.LockDateTime + " " + video.LockDescription }.Style(new { Color = "Red" })%> <% } %> </td> <td> <%= video.CreateTime.ToShortDate() %> </td> <td> <p> ?????<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(video.FileSize.ToDouble()) %> <br /> ?????<%= AVA.ResourcesPlatform.Config.Helper.FormatSecond(video.Period) %> <%--<br /> ?????<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %> <br /> <%= video.ParentCategory.Name %> <br /> <% if (video.ParentLesson != null) { %> <%= video.ParentLesson.Section %> ?? <%= video.ParentLesson.Name %> ?? <% } %>--%> </p> </td> <td> <p><%= video.ParentCategory.Name %></p> </td> <td> <p> <% var list = new List<HtmlAnchor>(); list.Add(new HtmlAnchor("???") { Href = WebUrl.MyVideoEdit(video.Guid) }); list.Add(new HtmlAnchor("???") { Href = "#delete", OnClick = "VideoDelete(this,'" + SetKey(video.Guid, video.Version) + "'); return false;" }); list.Add(new HtmlAnchor("???") { Href = SettingGroup.VideoFileDownload(video) }); //if (SettingGroup.CutURL.Length > 0) //{ // //?????????????? // list.Add(new HtmlAnchor("???") { Href = WebUrl.MyVideoCut(video.Guid), Target="_blank"}); //} //list.Add(new HtmlAnchor("???") { Href = WebUrl.MyVideoAttachmentList(video.Guid) }); //list.Add(new HtmlAnchor("?????") { Href = WebUrl.MyVideoTimeInfoList(video.Guid) }); //list.Add(new HtmlAnchor("???") { Href = WebUrl.MyVideoTimeInfoOtherList(video.Guid) }); //list.Add(new HtmlAnchor("??????") { Href = WebUrl.MyVideoSWList(video.Guid) }); //if (SettingGroup.HasST) //{ // list.Add(new HtmlAnchor("ST") { Href = WebUrl.MyVideoSWPatternList(video.Guid) }); //} //if (SettingGroup.HasSubject // && CreateInstance.SubjectUserDao.Count(l => l.ParentUser == this.User) > 0) //{ // list.Add(new HtmlAnchor("?????<%= Define.Get("Client_???")") { Href = WebUrl.MyVideoToSubject(video.Guid) }); //} //if (SettingGroup.HasWeike) //{ // list.Add(new HtmlAnchor("??????") { Href = WebUrl.MyWeikeAdd(video.Guid) }); //} //if (video.ParentLesson != null && SettingGroup.HasBook) //{ // list.Add(new HtmlAnchor("?????") { Href = WebUrl.TextbookView(video.ParentLesson.ParentTextbook.Guid, video.ParentLesson.Guid), Target = "_blank" }); //} for (int x = 0; x <= list.Count - 1; x++) { var anchor = list[x]; %> <%= anchor %> <% if ((x+1) % 2 == 0 && x != 0 && x != list.Count - 1) { %> <br /> <% } else if (x != list.Count - 1) { %> <br /> <% } } %> </p> </td> <%--<td> <%= new HtmlText("SortNumber", video.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};VideoChangeSortNumberClient(this,'" + SetKey(video.Guid, video.Version) + "')", Lang = video.SortNumber.ToString(), Width = 20, Title = "??????????????" }%> </td>--%> </tr> <% } %> </tbody> </table> </div> <script type="text/javascript"> $("#MyVideoData .trselall").click(function () { if (this.checked == true) { $("#MyVideoData .trsel").attr("checked", "checked"); } else { $("#MyVideoData .trsel").removeAttr("checked"); } }) function SelectMyVideoAll() { var bool = $("#MyVideoData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MyVideoData .trsel").attr("checked", "checked"); $("#MyVideoData .trselall").attr("checked", "checked"); } else { $("#MyVideoData .trsel").removeAttr("checked"); $("#MyVideoData .trselall").removeAttr("checked"); } } </script> <div> <a href="#" onclick="SelectMyVideoAll(); return false;">???? - ???</a> </div> <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyVideo(int.MaxValue, this.Name, this.CreateTimeBegin.ToString(null), this.CreateTimeEnd.ToString(null)) }.ToHtml()%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de