%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HeaderData.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.HeaderData" %>
<%
if (this.User != null && this.User.ParentUserType.LiveShow && SettingGroup.HasLive == true)
{
%>
<%
}
else if (this.User == null && SettingGroup.Setting().LiveShow && SettingGroup.HasLive == true)
{
%>
<%
}
%>
<%
if (this.User != null && this.User.ParentUserType.VideoShow)
{
%>
<%
}
else if (this.User == null && SettingGroup.Setting().VideoShow)
{
%>
<%
}
%>
<%
if (this.User != null && this.User.ParentUserType.TextbookShow && SettingGroup.HasBook == true)
{
%>
<%
}
else if (this.User == null && SettingGroup.Setting().TextbookShow && SettingGroup.HasBook == true)
{
%>
<%
}
%>
<%--<%
if (this.User != null && this.User.ParentUserType.AlbumShow)
{
%>
<%
}
else if (this.User == null && SettingGroup.Setting().AlbumShow)
{
%>
<%
}
%>--%>
<% var ListAlbumLevel = CreateInstance.AlbumLevelDao.GetAll(); %>
<%
foreach (var albumLevel in ListAlbumLevel)
{
%>
<%= new HtmlAnchor(albumLevel.Name) { Href=WebUrl.AlbumListForLevel(albumLevel.Guid) }%>
<%
}
%>
<%--<%
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;
this.ListUrlParam.Has("ParentChannel", channel.Guid);
if (this.ListUrlParam.Has("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 (this.User != null && this.User.ParentUserType.SubjectShow && SettingGroup.HasSubject == true)
{
%>
<%
}
else if (this.User == null && SettingGroup.Setting().SubjectShow && SettingGroup.HasSubject == true)
{
%>
<%
}
%>
<%
if (this.User != null && this.User.ParentUserType.MeetingShow && SettingGroup.HasMeeting == true)
{
%>
<%
}
else if (this.User == null && SettingGroup.Setting().MeetingShow && SettingGroup.HasMeeting == true)
{
%>
<%
}
%>
<%
if (this.User != null && this.User.ParentUserType.ShowOnline)
{
%>
<%
}
else if (this.User == null && SettingGroup.Setting().OnlineShow)
{
%>
<%
}
%>
<%
if (this.User != null && this.User.ParentUserType.SchoolShow && SettingGroup.HasDomain == true)
{
%>
<%
}
else if (this.User == null && SettingGroup.Setting().SchoolShow && SettingGroup.HasDomain == true)
{
%>
<%
}
%>
<%
if (this.User != null)
{
%>
<%
}
%>