<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchResult.aspx.cs" Inherits="AVA.ResourcesPlatform.WebUI.SearchResult" %> <%= 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")%> <%= Import.CSS("Carousel.css")%> <%= new HeadInstance(this) { }.ToHtml() %> <%= new BrowserTipInstance(this) { }.ToHtml() %> <%= new HeaderInstance(this) { CacheEnable = 60*60, HeaderItem=HeaderItem.Index, ReplaceItems = new ReplaceItems().Add("HeaderSearch", ReplaceTypeEnum.Html,new SearchAllMaxInstance(this){}.ToHtml()) }.ToHtml()%>
<% var channelList = CreateInstance.ChannelDao.Where(l => l.ParentChannel == null ).ToList(); %> <% for (var i = 0; i < channelList.Count; i++) { var channel = channelList[i]; var color = "green"; switch (i % 4) { case 0: color = "skyblue"; break; case 1: color = "yellow"; break; case 2: color = "red"; break; case 3: color = "green_blue"; break; } %>
<%= new HtmlAnchor(channel.Name){ Href=WebUrl.Album( new List().AddOnly("ParentChannel", channel.Guid))}%>
<%--
    <% for (var j = 0; j <= channel._ListChannel.Count - 1; j++) { var subChannel = channel._ListChannel[j]; if (j == 12) break; %>
  • <%= new HtmlAnchor(subChannel.Name) { Href = WebUrl.Album(new List().AddOnly("ParentChannel", subChannel.Guid)) }%>
  • <% } %>
--%>
<%= new IndexVideoByInstance(this) {ParentChannel = channel.Guid, SearchKeyWord = this.SearchKeyWord, PageSize=10, OrderBy = AVA.ResourcesPlatform.Config.OrderType.先置顶后推荐再播放量, TransferControl="/Index/IndexVideoByHot"}.ToHtml()%>
<% }%>
<%= new HtmlAnchor(Define.Get("Client_优课点播")){ Href=WebUrl.Video(new List().AddOnly("SearchKeyWord", this.SearchKeyWord))}%>
<%= new IndexVideoByInstance(this) { SearchKeyWord = this.SearchKeyWord, PageSize=10, OrderBy = AVA.ResourcesPlatform.Config.OrderType.先置顶后推荐再播放量, TransferControl="/Index/IndexVideoByHot", FilterAlbumAndChannel = true}.ToHtml()%>
<%= new FooterInstance(this) { }.ToHtml() %>