<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideo" %> <%= new MyVideoNavTopInstance(this) { Local= MyVideoNavTopItem.视频列表 }.ToHtml()%>
我的<%= this.Query.RecordCount %>个视频
名称: <%= 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 " }%>
<%= new HtmlButton("删除", "VideoBatchDelete(this);"){ Class="btn-danger pull-right" }%>
<%----%> <% for (int i = 0; i <= this.ListVideo.Count - 1; i++) { var video = this.ListVideo[i]; %> <%----%> <% } %>
封面 名称 状态 日期 大小 学科 操作序号
<%= new HtmlCheckBox() { Value = SetKey(video.Guid, video.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
<%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.VideoPlay(video.Guid), Title=video.Name, Target = "_blank" }%> " href="<%= WebUrl.VideoPlay(video.Guid) %>" target="_blank">

<%= new HtmlAnchor(video.Name) { Href = WebUrl.VideoPlay(video.Guid), Target = "_blank" ,Suffix="...",TextLength=20 }%>
<% var listSubject = CreateInstance.SubjectVideoDao.Where(l => l.ParentVideo == video).ToList(); if (listSubject.Count > 0) { %> 已参加任务:
<% 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" })%>
<% } } else { %> 该视频尚未参加任务 <% } %> <%--

播放:<%= video.VideoView %> 评论:<%= video.CommentCount %>--%>

<% var classStatus = ""; if (video.Status == (int)AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum.有效) { classStatus = "pass"; } else { classStatus = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum)video.Status).Define() %>
<% 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 = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoExamineEnum)video.Examine).Define() %>
<% var videoConvertStatus = ""; if (video.VideoConvertStatus == (int)AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum.已转换) { videoConvertStatus = "pass"; } else { videoConvertStatus = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum)video.VideoConvertStatus).Define() %>
<% if (video.LockVideo == (int)AVA.ResourcesPlatform.Model.Pub.VideoLockVideoEnum.锁定) { %> <%= new HtmlSpan("锁定") { Title = video.ParentLockUser.UserName + " " + video.LockDateTime + " " + video.LockDescription }.Style(new { Color = "Red" })%> <% } %>
<%= video.CreateTime.ToShortDate() %>

大小:<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(video.FileSize.ToDouble()) %>
时长:<%= AVA.ResourcesPlatform.Config.Helper.FormatSecond(video.Period) %> <%--
权限:<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %>
<%= video.ParentCategory.Name %>
<% if (video.ParentLesson != null) { %> <%= video.ParentLesson.Section %> 《 <%= video.ParentLesson.Name %> 》 <% } %>--%>

<%= video.ParentCategory.Name %>

<% var list = new List(); 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) { %>
<% } else if (x != list.Count - 1) { %>
<% } } %>

<%= 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 = "修改当前视频的位置" }%>
全选 - 取消
<%= 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()%>