<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MySubjectAlbum.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectAlbum" %> <%= new MySubjectNavInstance(this) { Local = MySubjectNavItem.关联专辑, Subject = this.Subject }.ToHtml()%>
我的评课:<%= this.Subject.Name %> 共<%= this.Query.RecordCount %>个专辑
专辑名称: <%= new HtmlText("Name", this.Name) { Width = 120 }%> 确认状态: <%= new HtmlSelect("ConfirmStatus", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.SubjectAlbumConfirmStatusEnum) }.InsertOption("::选择::", "", 0).SelectValue(this.ConfirmStatus)%> <%= new HtmlHidden("Key","MySubjectAlbum") %> <%= new HtmlHidden("ParentSubject",this.Subject.Guid) %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton("添加专辑", "window.location.href='" + WebUrl.MySubjectAlbumAdd(this.Subject.Guid) + "';")%> <%= new HtmlButton("确认", "SubjectAlbumBatchConfirm(this);")%> <%= new HtmlButton("拒绝", "SubjectAlbumBatchUnConfirm(this);")%> <%= new HtmlButton("删除", "SubjectAlbumBatchDelete(this);")%>
<% for (int i = 0; i <= this.ListSubjectAlbum.Count - 1; i++) { var subjectAlbum = this.ListSubjectAlbum[i]; var subject = this.ListSubjectAlbum[i].ParentSubject; var album = this.ListSubjectAlbum[i].ParentAlbum; %> <% } %>
专辑 信息 用户 时间 操作
<%= new HtmlCheckBox() { Value = SetKey(subjectAlbum.Guid, subjectAlbum.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
  • <%= new HtmlAnchor( new HtmlImg(SettingGroup.AlbumCover(album), album.Name) { Width=100, Height=62, OnErrorImg=SettingGroup.DefaultImg} ) { Title = album.Name, Href = WebUrl.SubjectPlay(subject.Guid, album.Guid), Target = "_blank" }%>

<%= new HtmlAnchor(album.Name) { Href = WebUrl.SubjectPlay(subject.Guid, album.Guid), Target = "_blank" }%>
<% var classStatus = ""; if (album.Status == (int)AVA.ResourcesPlatform.Model.Pub.AlbumStatusEnum.有效) { classStatus = "pass"; } else { classStatus = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.AlbumStatusEnum)album.Status).Define() %> <% var classExamine = ""; if (album.Examine == (int)AVA.ResourcesPlatform.Model.Pub.AlbumExamineEnum.审核通过) { classExamine = "pass"; } else if (album.Examine == (int)AVA.ResourcesPlatform.Model.Pub.AlbumExamineEnum.审核不通过) { } else { classExamine = ""; } %> <%= ((AVA.ResourcesPlatform.Model.Pub.AlbumExamineEnum)album.Examine).Define() %>
播放:<%= album.VideoView %> 评论:<%= album.CommentCount %>
大小:<%= AVA.ResourcesPlatform.Config.Helper.FormatSize(album.FileSize.ToDouble()) %>
时长:<%= album.Period %>秒
权限:<%= ((AVA.ResourcesPlatform.Model.Pub.AlbumShareEnum)album.Share).Define() %>

<%= album.ParentUser.ParentDomain.Name %>
<%= new HtmlAnchor(album.ParentUser.TrueName) { Href= WebUrl.Show(album.ParentUser.ParentDomain.Code,album.ParentUser.UserName) }%> ( <%= new HtmlAnchor(album.ParentUser.UserName) { Href= WebUrl.Show(album.ParentUser.ParentDomain.Code,album.ParentUser.UserName) }%> )
申请: <%= new HtmlSpan(subjectAlbum.SubmissionTime.ToShortDate()) { Title = subjectAlbum.SubmissionRemark }%>
<% if (subjectAlbum.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectAlbumConfirmStatusEnum.通过) { %> 确认: <% } else if (subjectAlbum.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectAlbumConfirmStatusEnum.拒绝) { %> 拒绝: <% } else if (subjectAlbum.ConfirmStatus == (int)AVA.ResourcesPlatform.Model.Pub.SubjectAlbumConfirmStatusEnum.未审核) { %> 未审核: <% } %> <%= new HtmlSpan(subjectAlbum.ConfirmTime.ToShortDate()) { Title = subjectAlbum.ConfirmRemark }%>
删除 | <%= new HtmlAnchor("预览") { Href = WebUrl.SubjectPlay(subject.Guid, album.Guid) }%>
<%= new HtmlText("SortNumber", subjectAlbum.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};SubjectAlbumChangeSortNumberClient(this,'" + SetKey(subjectAlbum.Guid, subjectAlbum.Version) + "')", Lang = subjectAlbum.SortNumber.ToString(), Width = 50, Title = "修改当前专辑在优课评比中的位置" }%>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MySubjectAlbum(this.Subject.Guid, int.MaxValue, this.Name, this.ConfirmStatus.ToString(null)) }.ToHtml()%>