<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyAlbum.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyAlbum" %> <%--<%= new MyAlbumNavTopInstance(this) { Local= MyAlbumNavTopItem.专辑列表 }.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","MyAlbum") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton(Define.Get("Client_创建专辑"), "window.location.href='" + WebUrl.MyAlbumAdd() + "';")%> <%= new HtmlButton("删除", "AlbumBatchDelete(this);")%>
<% for (int i = 0; i <= this.ListAlbum.Count - 1; i++) { var album = this.ListAlbum[i]; %> <% } %>
封面 名称 状态 日期 视频数量 操作 序号
<%= new HtmlCheckBox() { Value = SetKey(album.Guid, album.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
  • <%= new HtmlAnchor( new HtmlImg(SettingGroup.AlbumCover(album), album.Name) { OnErrorImg=SettingGroup.DefaultImg, Width=100,Height=62 }) { Href = WebUrl.MyAlbumVideo(album.Guid), Title=album.Name }%>

<%= new HtmlAnchor(album.Name) { Href = WebUrl.MyAlbumVideo(album.Guid) }%> <%--
<%= album.ParentAlbumLevel.Name %>

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

<% 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() %>
<% if (album.LockAlbum == (int)AVA.ResourcesPlatform.Model.Pub.AlbumLockAlbumEnum.锁定) { %> <%= new HtmlSpan("锁定") { Title = album.ParentLockUser.UserName + " " + album.LockDateTime + " " + album.LockDescription }.Style(new { Color = "Red" })%> <% } %>
<%= album.CreateTime.ToDateTimeN().ToShortDate() %> <%= CreateInstance.AlbumVideoDao.Count(l=>l.ParentAlbum== album) %> <%= new HtmlAnchor("编辑") { Href = WebUrl.MyAlbumEdit(album.Guid) }%> | 删除 <%--
<%= new HtmlAnchor("管理视频") { Href = WebUrl.MyAlbumVideo(album.Guid) }%>
--%>
<%= new HtmlText("SortNumber", album.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};AlbumChangeSortNumberClient(this,'" + SetKey(album.Guid, album.Version) + "')", Lang = album.SortNumber.ToString(), Width = 50, Title = "修改当前专辑的位置" }%>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyAlbum(int.MaxValue, this.Name, this.CreateTimeBegin.ToString(null), this.CreateTimeEnd.ToString(null)) }.ToHtml()%>