<%@ Page Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.AlbumList" %> <% var listChannel = AlbumExecute.GetListChannel(this.ListUrlParamWhere); %> <%= Define.Get("Client_专辑资源") %> - <%= this.Title %> <%= Import.CSS("js", "/JQueryUI/css/redmond/jquery-ui-1.8.9.custom.css")%> <%= Import.ScriptTheme("js/jquery.1.9.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.ScriptTheme("js/jquery-ui.min.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("/global.aspx")%> <%= Import.Script("js", "/global.js")%> <%= new HeadInstance(this) { }.ToHtml() %> <%= new BrowserTipInstance(this) {CacheEnable = 60*60 }.ToHtml() %> <%= new HeaderInstance(this) { CacheEnable = 60*60, HeaderItem = HeaderItem.AlbumShow, ReplaceItems = new ReplaceItems().Add("HeaderSearch", ReplaceTypeEnum.Html, new SearchAlbumMaxInstance(this) {CacheEnable = 60*60 }.ToRenderHtml()) }.ToHtml()%>
<% var changeName = listChannel.Select(l => l.Value).ToArray().Join(","); if (string.IsNullOrEmpty(changeName)) { changeName = Define.Get("Client_专辑资源"); } %> <%= new NavInstance(this) { CacheEnable = 60*60}.Add(changeName,null).ToHtml()%>
<% var albumLevelList = CreateInstance.AlbumLevelDao.Where(l => l.Status == (int)AVA.ResourcesPlatform.Model.Pub.AlbumLevelStatusEnum.有效) .OrderBy(l => l.SortNumber) .ToList(); foreach (var albumLevel in albumLevelList) { %>
<%= new HtmlAnchor(albumLevel.Name + listChannel.Select(l=>l.Value).ToArray().Join(",")) { Href=WebUrl.Album(this.ListUrlParamWhere.AddOnly("ParentAlbumLevel",albumLevel.Guid).AddOnly("OrderBy",((int)AVA.ResourcesPlatform.Config.OrderType.月播放量).ToString())) }%>
<%= new HtmlAnchor("更多...") { Href=WebUrl.Album(this.ListUrlParamWhere.AddOnly("ParentAlbumLevel",albumLevel.Guid).AddOnly("OrderBy",((int)AVA.ResourcesPlatform.Config.OrderType.月播放量).ToString())) }%>
<%= new IndexAlbumByInstance(this) { CacheEnable = 60, PageSize = 4, ParentChannel= listChannel.Select(l=>l.Key).FirstResult(), ParentAlbumLevel = albumLevel.Guid, OrderBy = AVA.ResourcesPlatform.Config.OrderType.月播放量 }.ToHtml()%>
<%= new HtmlAnchor(Define.Get("Client_热门播放")) { Href=WebUrl.Album(this.ListUrlParamWhere.AddOnly("ParentAlbumLevel",albumLevel.Guid).AddOnly("OrderBy",((int)AVA.ResourcesPlatform.Config.OrderType.先当天上传播放量后再当天播放量).ToString())) }%>
<%= new HtmlAnchor("更多...") { Href=WebUrl.Album(this.ListUrlParamWhere.AddOnly("ParentAlbumLevel",albumLevel.Guid).AddOnly("OrderBy",((int)AVA.ResourcesPlatform.Config.OrderType.先当天上传播放量后再当天播放量).ToString())) }%>
<%= new IndexAlbumByInstance(this) {CacheEnable = 60, PageSize = 4, ParentChannel= listChannel.Select(l=>l.Key).FirstResult(), ParentAlbumLevel = albumLevel.Guid, TransferControl="/Index/IndexAlbumByOrders", OrderBy = AVA.ResourcesPlatform.Config.OrderType.先当天上传播放量后再当天播放量 }.ToHtml()%>
<% } %>
<%= new FooterInstance(this) {CacheEnable = 60*60 }.ToHtml() %>