%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.Header" %>
<%--
if(this.Local == "Index" )
{
--%>
<%= Import.CSS("css/style.css") %>
<%
var listChannel = CreateInstance.ChannelDao.Where(l => l.Status == (int)AVA.ResourcesPlatform.Model.Pub.ChannelStatusEnum.有效)
.OrderBy(l => l.SortNumber)
.ToList();
foreach (var channel in listChannel)
{
if (channel.ParentChannel == null)
{
var parentChild=false;
if (Request.QueryString["ParentChannel"] == channel.Guid)
{
parentChild = true;
}
else
{
var parentChannel = CreateInstance.ChannelDao.Get(Request.QueryString["ParentChannel"]);
if (parentChannel != null && parentChannel.ParentChannel!=null)
{
if (parentChannel.ParentChannel.Guid == channel.Guid)
{
parentChild = true;
}
}
}
%>
-
<%= new HtmlAnchor(channel.Name) { Href = WebUrl.AlbumListForChannel(channel.Guid) }%>
<%
}
}
%>
<%-- --%>
<%---
学校活动
-
研讨课例
-
教师培训
-
资源中心
--%>
<%--
if (SettingGroup.HasSubject == true)
{
%>
-
<%= new HtmlAnchor("专题研究") { Href = WebUrl.SubjectList() }%>
<%
}
--%>
<%--
if (SettingGroup.HasMeeting == true)
{
var listMeetingLevel = CreateInstance.MeetingLevelDao.Where(l => l.Status == (int)AVA.ResourcesPlatform.Model.Pub.MeetingLevelStatusEnum.有效)
.OrderBy(l => l.SortNumber)
.ToList();
foreach (var meetingLevel in listMeetingLevel)
{
%>
-
<%= new HtmlAnchor(meetingLevel.Name) { Href = WebUrl.MeetingList(meetingLevel.Guid) }%>
<%
}
}
-
<%= new HtmlAnchor("点播中心") { Href = WebUrl.AlbumList() }%>
-
<%= new HtmlAnchor("资源中心") { Href = WebUrl.Video() }%>
--%>
<%-- <%
if (this.User != null && this.User.ParentUserType.LiveShow)
{
%>
<%
}
else if (this.User==null && SettingGroup.Setting().LiveShow)
{
%>
<%
}
%>--%>
<%--
<% if (SettingGroup.HasLive == true)
{
%>
-
<%= new HtmlAnchor("课堂直播") { Href = WebUrl.Live() }%>
<%
}
%>
--%>
<%-- } else {--%>
<%
if (!string.IsNullOrEmpty(CreateInstance.DomainInfoDao.THIS().MinLogo))
{
%>
<%
}
%>
<%-- } --%>