<%@ Page Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.SubjectTheme.Index" %> <%= this.Subject.Name %> <%= 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.Script("/bootstrap/jquery.lazyload.js")%> <%= Import.ScriptTheme("js/libs/jquery.rating.pack.js")%> <%= Import.CSS("style/jquery.rating.css")%> <%= Import.CSS("assets/libs.css")%> <%= Import.CSS("assets/app.css")%>
<%= new SubjectTemplateInstance(this) { Param1="入围", TransferControl="~/Subject/"+this.Subject.Theme+"/Control/Header" }.ToHtml() %>
<%--
还没有参赛作品,期待您的积极参与!
--%>
    作品展示
    Work
<%= new SubjectViewVideoInstance(this) { TransferControl="~/subject/"+this.Subject.Theme+"/control/subjectview/subjectviewvideo" }.ToHtml() %>
    微课排行榜
    Weike
<%= new IndexVideoByInstance(this) { CacheEnable = 60, PageSize = 10, OrderBy = AVA.ResourcesPlatform.Config.OrderType.播放量, TransferControl = "/Index/IndexVideoByHot_orders",ParentSubjectGuid = this.Subject.Guid }.ToHtml()%>

    <%= Define.Get("Category_学科") %>排行榜
    College
<% var listCategory = CreateInstance.VideoDao.Where(l => l.Status == (int)AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum.有效 && l.ParentCategory.ParentCategory !=null && l._ListSubjectVideo.Any(li=>li.ParentSubject == this.Subject)).GroupBy(l => new { l.ParentCategory.Guid, l.ParentCategory.Name, }).Select(s => new { Count = s.Count(), Guid = s.Key.Guid, Name = s.Key.Name }) .ToList() .OrderByDescending(l => l.Count) .Take(10) .ToList(); %> <% if (listCategory.Count > 0) { %>
    <% for (var i = 0; i < listCategory.Count; i++) { var domain = listCategory[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="#" }%>
  • <% } 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="#" }%>
  • <% } 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="#" }%>
  • <% } } } %>
<% } else { %>
暂无数据
<% } %> <%-- <%= new IndexVideoByInstance(this) { CacheEnable = 60, PageSize = 10, OrderBy = AVA.ResourcesPlatform.Config.OrderType.周播放量, TransferControl = "/Index/IndexVideoByHot_orders" }.ToHtml()%>--%>
<%= Import.ScriptTheme("assets/app.js") %> <%= Import.ScriptTheme("assets/theme.js") %>