<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyAlbumVideo.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyAlbumVideo" %> <% if (!isAjax) { %> <%= new MyAlbumNavInstance(this) { Local= MyAlbumNavItem.专辑视频, Album = this.Album }.ToHtml()%>
<%if (this.Album.OpenUpload == (int)AVA.ResourcesPlatform.Model.Pub.AlbumOpenUploadEnum.否) { %> 我的<%= Define.Get("Client_专辑")%>: <% } else { %> 公开<%= Define.Get("Client_专辑")%>: <% } %> <%= this.Album.Name %> 共<%= this.Query.RecordCount%>个视频
视频名称: <%= new HtmlText("Name", this.Name) { Width=120 }%> <% if (this.Album.OpenUpload == (int)AVA.ResourcesPlatform.Model.Pub.AlbumOpenUploadEnum.是 && this.Album.OpenUploadNeedExamine == true) { %> 确认状态: <%= new HtmlSelect("ConfirmStatus", "Value", "Key", "Key") {Width=80, Option = typeof(AVA.ResourcesPlatform.Model.Pub.AlbumVideoConfirmStatusEnum) }.InsertOption("::选择::", "", 0).SelectValue(this.ConfirmStatus)%> <% } %> <%-- 学科: <%= new HtmlText("Name", this.Name) { Width=60 }%> 平台: <%= new HtmlText("Name", this.Name) { Width=60 }%> 作者: <%= new HtmlText("Name", this.Name) { Width=60 }%>--%> <%= new HtmlHidden("Key","MyAlbumVideo") %> <%= new HtmlHidden("ParentAlbum",this.Album.Guid) %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%--<%= new HtmlButton("添加视频", "window.location.href='" + WebUrl.MyAlbumVideoAdd(this.Album.Guid) + "';"){ Class="btn btn-default " }%>--%> 添加视频 <%if (this.Album.ParentUser == this.User && this.Album.OpenUpload == (int)AVA.ResourcesPlatform.Model.Pub.AlbumOpenUploadEnum.是 && this.Album.OpenUploadNeedExamine == true) { %>
<%= new HtmlButton("确认", "AlbumVideoBatchConfirm(this);"){ Class="btn btn-success pull-right" }%> <%= new HtmlButton("拒绝", "AlbumVideoBatchUnConfirm(this);"){ Class="btn btn-warning pull-right" }%>
<% } %>
<% if (this.Album.ParentUser == this.User && SettingGroup.HasSubject) { %>
<%= new HtmlButton("删除", "AlbumVideoBatchDelete(this);"){ Class="btn btn-danger pull-right" }%> <% } %>
<%----%> <% for (int i = 0; i <= this.ListAlbumVideo.Count - 1; i++) { var albumVideo = this.ListAlbumVideo[i]; var album = this.ListAlbumVideo[i].ParentAlbum; var video = this.ListAlbumVideo[i].ParentVideo; %> <%-- --%> <% } %>
视频
<%= new HtmlCheckBox() { Value = SetKey(albumVideo.Guid, albumVideo.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
  • <%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.AlbumPlay(album.Guid, video.Guid), Title = video.Name, Target = "_blank" }%>

<%= new HtmlAnchor(video.Name) { Href = WebUrl.AlbumPlay(album.Guid, video.Guid), Target = "_blank", TextLength=18, Suffix="...", WideWord =true }%>
<% 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() %>
播放:<%= video.VideoView %> 评论:<%= video.CommentCount %>
权限:<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %>

大小:<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(video.FileSize.ToDouble()) %>
时长:<%= video.Period %>秒
权限:<%= ((AVA.ResourcesPlatform.Model.Pub.VideoShareEnum)video.Share).Define() %>
申请日期: <%= new HtmlSpan(albumVideo.SubmissionTime.ToShortDate()) { Title = albumVideo.SubmissionRemark }%>
<% if (albumVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.AlbumVideoConfirmStatusEnum.通过) { %> 确认日期: <% } else if (albumVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.AlbumVideoConfirmStatusEnum.拒绝) { %> 拒绝日期: <% } else if (albumVideo.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.AlbumVideoConfirmStatusEnum.未审核) { %> 未审核: <% } %> <%= new HtmlSpan(albumVideo.ConfirmTime.ToShortDate()) { Title = albumVideo.ConfirmRemark }%>
<% if (album.ParentUser == this.User) { %> 申请状态: <%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "AlbumVideoChangeStatusClient(this,'" + SetKey(albumVideo.Guid, albumVideo.Version) + "');", Lang = albumVideo.ConfirmStatus.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.AlbumVideoConfirmStatusEnum), SelectedValue = albumVideo.ConfirmStatus}.Style(new { Width = "auto" })%>
<% } %>
<%if(video.ParentUser == this.User || album.ParentUser == User){ %>删除|<%} %> <%= new HtmlAnchor("预览") { Href = WebUrl.AlbumPlay(album.Guid, video.Guid) }%>
<%= new HtmlText("SortNumber", albumVideo.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};AlbumVideoChangeSortNumberClient(this,'" + SetKey(albumVideo.Guid, albumVideo.Version) + "')", Lang = albumVideo.SortNumber.ToString(), Width = 50, Title = "修改当前视频在"+Define.Get("Client_专辑")+"中的位置" }%>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyAlbumVideo(this.Album.Guid, int.MaxValue, this.Name, this.ConfirmStatus.ToString(null)) }.ToHtml()%>
<%} else { %> <% for (int i = 0; i <= this.ListAlbumVideo.Count - 1; i++) { var albumVideo = this.ListAlbumVideo[i]; var album = this.ListAlbumVideo[i].ParentAlbum; var video = this.ListAlbumVideo[i].ParentVideo; %>
  • <%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.AlbumPlay(album.Guid, video.Guid), Title = video.Name, Target = "_blank" }%>

    <%= new HtmlAnchor(video.Name) { Href = WebUrl.AlbumPlay(album.Guid, video.Guid), Target = "_blank", TextLength=18, Suffix="...", WideWord =true }%>

    <%if(video.ParentUser == this.User) { %> 删除| <%} %> <%= new HtmlAnchor("预览") { Href = WebUrl.AlbumPlay(album.Guid, video.Guid) }%>

  • <% } %>
  •  
  •  
  •  
  •  
  •  
  • <%} %>