<%= new IndexVideoByInstance(this) { PageSize = 5, OrderBy = AVA.ResourcesPlatform.Config.OrderType.只按置顶, TransferControl = "/Index/IndexVideoByHotDay" }.ToHtml()%>
<%--
<%= new HtmlAnchor("更多...") { Href = WebUrl.NoticeList() }%>
<%= new IndexNoticeByInstance(this) { ListNoticeCount=9, FirstString=40 }.ToHtml()%>
--%>
<%--
<%= new HtmlAnchor(Define.Get("Client_课程表...")) { Href = WebUrl.Live() }%>
--%> <%= new IndexNoticeByInstance(this) { ListNoticeCount=9, FirstString=40, NoticeType=1 }.ToHtml()%> <%-- <%= new IndexLiveByInstance(this) { PageSize=3, StartTime=DateTime.Now.Date,EndTime=DateTime.Now.Date.AddDays(1) }.ToHtml()%> --%>
<% var listVideo = CreateInstance.VideoDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.周, ResultCount = 6 }); %> <%-- <%= new IndexVideoByInstance(this) { PageSize=6, TransferControl="/Index/IndexVideoByHot_orders",OrderBy= AVA.ResourcesPlatform.Config.OrderType.月播放量 }.ToHtml() %>--%>
<% if (SettingGroup.HasDomain == false && 1 == 2) { //没有平台说明是列当前学校的 //取出第一个显示,基本显示在第二个 var firstUserType = CreateInstance.UserTypeDao.Where(l => l.IsManager == (int)AVA.ResourcesPlatform.Model.Pub.UserTypeIsManagerEnum.否 && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.UserTypeStatusEnum.有效) .OrderBy(l => l.SortNumber) .Take(1) .ToList() .FirstResult(); if (firstUserType != null) { %>
<%= new HtmlAnchor("推荐课程") { Href="#" }%>
<%= new HtmlAnchor("更多...") { Class="blue", Href=WebUrl.Album() }%>
<%= new IndexAlbumByInstance(this) { PageSize=10,ParentUserType = firstUserType.Guid, OrderBy= AVA.ResourcesPlatform.Config.OrderType.月播放量 }.ToHtml() %>
<% } } else { //列平台的 %>
<%= new HtmlAnchor("推荐课程") { Class="blue", Href=WebUrl.Album() }%>
<%= new HtmlAnchor("更多...") { Class="blue", Href=WebUrl.Album() }%>
<%= new IndexAlbumByInstance(this) { PageSize=5, OrderBy= AVA.ResourcesPlatform.Config.OrderType.只按推荐, TransferControl="/Index/IndexAlbumByHot" }.ToHtml() %>
<% } %>
<%= new HtmlAnchor("最新发布") { Href=WebUrl.Video()}%>
<%= new HtmlAnchor("更多...") { Class="blue", Href=WebUrl.Video() }%>
<%= new IndexVideoByInstance(this) { PageSize=5, TransferControl="/Index/IndexVideoByHot" }.ToHtml() %>
<%-- <% if (SettingGroup.HasSubject == true) { if (this.UserCode == null || CreateInstance.UserDao.Get(this.UserCode).ParentUserType.Name == "学生") { }else{ %>
<%= new HtmlAnchor(Define.Get("Client_优课评比研究")) { Href="#" }%>
<%= new HtmlAnchor("更多...") { Class="blue", Href=WebUrl.Subject() }%>
<%= new IndexSubjectByInstance(this) { PageSize=8, ParentIsNull = true, OrderBy= AVA.ResourcesPlatform.Config.OrderType.时间倒序 }.ToHtml() %>
<% } } %> <% if (SettingGroup.HasMeeting == true) { if (this.UserCode == null || CreateInstance.UserDao.Get(this.UserCode).ParentUserType.Name == "学生") { }else{ %>
<%= new HtmlAnchor(Define.Get("Client_教研互动")) { Href="#" }%>
<%= new HtmlAnchor("更多...") { Class="blue", Href=WebUrl.Meeting() }%>
<%= new IndexMeetingByInstance(this) { PageSize=8, OrderBy= AVA.ResourcesPlatform.Config.OrderType.月播放量, Stale=false }.ToHtml() %>
<% } } %> <% if (SettingGroup.HasLive == true) { if (this.UserCode == null || CreateInstance.UserDao.Get(this.UserCode).ParentUserType.Name == "学生") { }else{ %>
<%= new HtmlAnchor(Define.Get("Client_直播课堂")) { Href="#" }%>
<%= new HtmlAnchor("更多...") { Class="blue", Href=WebUrl.Live() }%>
<%= new IndexLiveByInstance(this) { PageSize = 8 }.ToHtml()%>
<% } } %> --%>