%@ Control Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.Control.Search.SearchVideoCategory" %>
<%
if (this.ListMasterCategory != null
&& this.ListMasterCategory.Count > 0)
{
%>
-
<%= new HtmlAnchor("全部") { Href = WebUrl.Video(this.ListUrlParam.Remove("ParentCategory")) }%>
<%
foreach (var category in this.ListMasterCategory)
{
%>
-
<%= new HtmlAnchor(category.Name) { Href=WebUrl.Video(this.ListUrlParam.AddOnly("ParentCategory",category.Guid)) }%>
<%
var listCategory = this.ListCategory(category);
if (listCategory.Count > 0)
{
%>
<%
foreach (var subCategory in listCategory)
{
%>
-
<%= new HtmlAnchor(subCategory.Name) { Href = WebUrl.Video(this.ListUrlParam.AddOnly("ParentCategory", subCategory.Guid)) }.Style(new { Padding_Left="28px" })%>
<%
}
}
}
%>
<%
}
%>