<%@ 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) { HeaderItem=HeaderItem.Index, ReplaceItems = new ReplaceItems().Add("HeaderSearch", ReplaceTypeEnum.Html,new SearchVideoMaxInstance(this){}.ToHtml()) }.ToHtml()%> <%-- <% var categoriesList = CreateInstance.CategoryDao.Where(l => l.ParentCategory == null) .OrderBy(l => l.SortNumber) .ToList(); %>
--%>
<%--<%= new NavInstance(this) { }.Add(Define.Get("首页"),WebUrl.Index()).ToHtml()%>--%>
<% //是否开启了浏览范围控制 bool videoRangeControl = SettingGroup.Setting().VideoRangeControl; %> <%= new IndexVideoByInstance(this) { PageSize = 5, OrderBy = AVA.ResourcesPlatform.Config.OrderType.先置顶后推荐再播放量, TransferControl = "/Index/IndexVideoBySlider_small", SchoolPageView = videoRangeControl == false ? "" : ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeSchoolPageViewEnum.允许).ToString() }.ToHtml()%>
    <%= new IndexNoticeByInstance(this){ListNoticeCount=9}.ToHtml() %>
<%= new IndexLiveByInstance(this) { PageSize=9, OrderBy = AVA.ResourcesPlatform.Config.OrderType.时间倒序, StartTime=DateTime.Now.Date,EndTime=DateTime.Now.Date.AddDays(1) , TransferControl="/Index/IndexLiveByHot"}.ToHtml()%>
<%-- <%= new HtmlAnchor("中职晒客入口") { Title="中职晒客入口", Target = "_blank", Href = WebUrl.SubjectView(""), TextLength=22,Suffix="...", Class="zz"}%> <%= new HtmlAnchor("特课晒客入口") { Title="特课晒客入口", Target = "_blank", Href = WebUrl.SubjectView(""), TextLength=22,Suffix="...", Class="tj" }%>--%> <%if (this.User != null) { %> <%= new HtmlAnchor("中职晒客入口") { Title="中职晒客入口", Target = "_blank", Href = WebUrl.MyVideoUpload("c24638e668ab417e87be3a6cfb9727c0"), TextLength=22,Suffix="...", Class="zz"}%> <%= new HtmlAnchor("特课晒客入口") { Title="特课晒客入口", Target = "_blank", Href = WebUrl.MyVideoUpload("357222c790c042608eade7a4b4d0dbe2"), TextLength=22,Suffix="...", Class="tj" }%> <% } %>
<%= new IndexVideoByInstance(this) { TransferControl = "/Index/indexvideobyhot", PageSize=8, SchoolPageView = videoRangeControl == false ? "" : ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeSchoolPageViewEnum.允许).ToString(), ParentAlbumGuid = CreateInstance.AlbumDao.Where(l=>l.Name == "中等职业教育晒课专辑").Select(l=>l.Guid).FirstResult() }.ToHtml()%>
<%= new IndexVideoByInstance(this) { PageSize = 9, OrderBy = AVA.ResourcesPlatform.Config.OrderType.周播放量, TransferControl = "/Index/IndexVideoByHot_orders", SchoolPageView = videoRangeControl == false ? "" : ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeSchoolPageViewEnum.允许).ToString() }.ToHtml()%>
<%= new IndexVideoByInstance(this) { TransferControl = "/Index/indexvideobyhot", PageSize=8, ParentAlbumGuid = CreateInstance.AlbumDao.Where(l=>l.Name == "特殊教育晒课专辑").Select(l=>l.Guid).FirstResult(), SchoolPageView = videoRangeControl == false ? "" : ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeSchoolPageViewEnum.允许).ToString() }.ToHtml()%>
<%=new HtmlAnchor("更多...") { Href=WebUrl.SchoolResource(), Target="_blank"}%>
<% var ListDomain = CreateInstance.VideoDao.ListDomainResource().Take(9).ToList(); %> <% if (ListDomain.Count > 0) { %>
    <% for (var i = 0; i < ListDomain.Count; i++) { var domain = ListDomain[i]; if (i < 3) { %>
  • <% var label = "0" + (i + 1); %> <%= new HtmlAnchor( new HtmlLabel("label",label){Class=" hots"}+"" + new HtmlSpan( domain.Name){ Class="text", TextLength=18,Suffix=".."}+""+ new HtmlSpan(domain.Count){Class="total_num"} ){ Class="nums", Title=domain.Name, Href = domain.WebSite }%>
  • <% } else { if (i + 1 < 10) { %>
  • <% var label = "0" + (i + 1); %> <%= new HtmlAnchor( new HtmlLabel("label",label){Class=" "}+ ""+ new HtmlSpan( domain.Name){ Class="text", TextLength=18,Suffix=".."}+""+ new HtmlSpan(domain.Count){Class="total_num"} ){ Class="nums", Title=domain.Name, Href = domain.WebSite }%>
  • <% } else { %>
  • <% var label = (i + 1).ToString(); %> <%= new HtmlAnchor( new HtmlLabel("label", label){Class=" "}+""+ new HtmlSpan( domain.Name){ Class="text", TextLength=18,Suffix=".."}+""+ new HtmlSpan(domain.Count){Class="total_num"} ){ Class="nums", Title=domain.Name, Href = domain.WebSite }%>
  • <% } } } %>
<% } else { %>
暂无数据
<% } %>
<%= new FooterInstance(this) { }.ToHtml() %>