<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SimpleTemplate.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.Template.SimpleTemplate" %> <% var gradesList = CreateInstance.GradeDao.Where(l => l.ParentGrade == null && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.GradeStatusEnum.有效) .OrderBy(l => l.SortNumber) .ToList(); //是否开启了浏览范围控制 bool videoRangeControl = SettingGroup.Setting().VideoRangeControl; %>
<%= new HtmlAnchor("优课点播") { Href = WebUrl.Video()}%>
<% for (var i = 0; i < gradesList.Count; i++) { var grade = gradesList[i]; %>
" id="cat_idx_<%= grade.Guid %>">
<%= new IndexVideoByInstance(this) { Multithreading = true, PageSize=8,ParentMasterGrade = grade.Guid, OrderBy= AVA.ResourcesPlatform.Config.OrderType.时间倒序 , TransferControl="/Index/IndexVideoByHot"}.ToHtml() %>
<% } %>