%@ Control Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.Control.Search.SearchVideoGrade" %>
<%
if (this.ListMasterGrade != null
&& this.ListMasterGrade.Count > 0)
{
%>
-
<%= new HtmlAnchor("全部") { Href = WebUrl.Video(this.ListUrlParam.Remove("ParentGrade")) }%>
<%
foreach (var grade in this.ListMasterGrade)
{
%>
-
<%= new HtmlAnchor(grade.Name) { Href=WebUrl.Video(this.ListUrlParam.AddOnly("ParentGrade",grade.Guid)) }%>
<%
var listGrade = this.ListGrade(grade);
if (listGrade.Count > 0)
{
%>
<%
foreach (var subGrade in listGrade)
{
%>
-
<%= new HtmlAnchor(subGrade.Name) { Href = WebUrl.Video(this.ListUrlParam.AddOnly("ParentGrade", subGrade.Guid)) }.Style(new { Padding_Left="28px" })%>
<%
}
}
}
%>
<%
}
%>