<%@ Page Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Index" %> <%= 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()%>
<%= new IndexVideoByInstance(this) { PageSize = 5, OrderBy = AVA.ResourcesPlatform.Config.OrderType.先置顶后推荐再播放量, TransferControl = "/Index/IndexVideoBySlider" }.ToHtml()%>
<% var gradeList = CreateInstance.GradeDao.Where(l => l.ParentGrade == null ).OrderBy(l => l.SortNumber).ToList(); %> <%= new HtmlAnchor(Define.Get("Client_优课点播")){ Href=WebUrl.Video(new List().AddOnly("OrderBy",((int)AVA.ResourcesPlatform.Config.OrderType.先置顶后推荐再播放量).ToString()))}%>
    <% for (var i = 0; i <= gradeList.Count -1; i++) { var grade = gradeList[i]; if (i == 12) break; %>
  • <%= new HtmlAnchor(grade.Name) { Href = WebUrl.Video(new List().AddOnly("ParentMasterGrade", grade.Guid)) }%>
  • <% } %>
<%= new IndexVideoByInstance(this) { PageSize=8, OrderBy = AVA.ResourcesPlatform.Config.OrderType.先置顶后推荐再播放量, TransferControl="/Index/IndexVideoByHot", FilterAlbumAndChannel = true }.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, PageSize=8, OrderBy = AVA.ResourcesPlatform.Config.OrderType.先置顶后推荐再播放量, TransferControl="/Index/IndexVideoByHot"}.ToHtml()%>
<% }%>
<%= new HtmlAnchor("公告信息") { Href = WebUrl.NoticeList(new List().AddOnly("NoticeType",((int)AVA.ResourcesPlatform.Model.Pub.NoticeTypeEnum.公告).ToString())) }%>
<%= new HtmlAnchor("更多...") { Href = WebUrl.NoticeList(new List().AddOnly("NoticeType",((int)AVA.ResourcesPlatform.Model.Pub.NoticeTypeEnum.公告).ToString())) }%>
    <%= new IndexNoticeByInstance(this) { ListNoticeCount=9, FirstString=40, NoticeType = (int)AVA.ResourcesPlatform.Model.Pub.NoticeTypeEnum.公告 }.ToHtml()%>
<%= new HtmlAnchor("最新上传") { Href = WebUrl.Video() }%>
<%= new IndexVideoByInstance(this) { PageSize=5 ,TransferControl="/Index/IndexVideoByHot"}.ToHtml()%>
<%= new HtmlAnchor("教师介绍") { Href = WebUrl.Teacher() }%>
<%= new IndexTeacherByInstance(this) { }.ToHtml()%>
<%= new FooterInstance(this) { }.ToHtml() %>