%@ Control Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.Control.Search.SearchVideoGrade" %>
<%--这里是一级年级的div--%>
" id="Ul1">
<%----%>
- <%= new HtmlAnchor("全部年级") { Href = WebUrl.Video(this.ListUrlParam.Remove("ParentMasterGrade").Remove("ParentGrade")) }%>
<%
var listMasterGrade = CreateInstance.GradeDao.Where(l => l.Status == (int)AVA.ResourcesPlatform.Model.Pub.GradeStatusEnum.有效
&& l.ParentGrade == null)
.OrderBy(l => l.SortNumber)
.ToList();
foreach (var grade in listMasterGrade)
{
%>
-
<%= new HtmlAnchor(grade.Name) { Href=WebUrl.Video(this.ListUrlParam.AddOnly("ParentMasterGrade",grade.Guid).Remove("ParentGrade")) }%>
<%
}
%>
<%--这里是二级 年级的div--%>
<%
if (this.ParentGrade != null)
{
%>
" id="grade-list">
<%
if (this.ListMasterGrade != null
&& this.ListMasterGrade.Count > 0)
{
%>
<%----%>
<%--- <%= new HtmlAnchor("全部年级") { Href = WebUrl.Video(this.ListUrlParam.Remove("ParentGrade")) }%>--%>
<%-- <%
if (this.ParentGrade != null)
{
%>
- <%= new HtmlAnchor("全部年级") { Href = WebUrl.Video(this.ListUrlParam.AddOnly("ParentMasterGrade",ParentGrade.ParentGrade == null?ParentGrade.Guid:ParentGrade.ParentGrade.Guid).Remove("ParentGrade")) }%>
<%
}
%>--%>
<%
foreach (var grade in this.ListMasterGrade)
{
%>
-
<%= new HtmlAnchor(grade.Name) { Href=WebUrl.Video(this.ListUrlParam.AddOnly("ParentGrade",grade.Guid)) }%>
<%-- <%
var listGrade = grade._ListGrade;
if (listGrade.Count > 0)
{
%>
<%
foreach (var subGrade in listGrade)
{
%>
-
<%= new HtmlAnchor(subGrade.Name) { Href = WebUrl.Video(this.ListUrlParam.AddOnly("ParentGrade", subGrade.Guid)) }%>
<%
}
}
%>--%>
<%
}
%>
<%
}
else
{
%>
-
暂无年级
<%
}
%>
<%
}
%>