<%
var channelList = CreateInstance.ChannelDao.Where(l => l.ParentChannel == null
).ToList();
%>
<% for (var i = 0; i < channelList.Count; i++)
{
var channel = channelList[i];
var color = "green";
switch (i % 4)
{
case 0:
color = "skyblue";
break;
case 1:
color = "yellow";
break;
case 2:
color = "red";
break;
case 3:
color = "green_blue";
break;
}
%>
<%= new HtmlAnchor(channel.Name){
Href=WebUrl.Album( new List().AddOnly("ParentChannel", channel.Guid))}%>
<%--
<%
for (var j = 0; j <= channel._ListChannel.Count - 1; j++)
{
var subChannel = channel._ListChannel[j];
if (j == 12) break;
%>
<%= new HtmlAnchor(subChannel.Name) { Href = WebUrl.Album(new List().AddOnly("ParentChannel", subChannel.Guid)) }%>