<%= new NavInstance(this) { Multithreading = true, CacheEnable = 60*60, }.Add(Define.Get("Client_微课广场"),WebUrl.Weike()).AddRequiredValueEmpty("关键字:"+this.SearchKeyWord,this.SearchKeyWord).ToHtml()%>
<%--<%= new SearchWeikeListInstance(this) { PageSize = 24000 }.ToHtml()%>--%>
<%if (this.ListUrlParam.Has("ParentTag"))
{
var parentTag = CreateInstance.TagDao.Get(this.ListUrlParam.GetFirstValue("ParentTag"));
%>
<%} %>
<%= new SearchWeikeOrderInstance(this) { Multithreading = true, CacheEnable = 60*60, }.ToHtml() %>
<%
//是否开启了浏览范围控制
bool videoRangeControl = SettingGroup.Setting().VideoRangeControl;
if (this.Sort == 0)
{
%>
<%= new SearchWeikeListInstance(this) { Multithreading = true, CacheEnable = SettingGroup.Demonstrate? 0: 60, PageSize = 24, AreaPageView = videoRangeControl == false ? "" : ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeAreaPageViewEnum.允许).ToString(), TransferControl="/Search/SearchWeikeList_default", OrderBy = (AVA.ResourcesPlatform.Config.OrderType)this.ListUrlParam.Where(l=>l.Field=="OrderBy").FirstResult().Value.ToInt()}.ToHtml()%>
<%
}
else
{
%>
<%= new SearchWeikeListInstance(this) { Multithreading = true, CacheEnable = SettingGroup.Demonstrate? 0: 60, PageSize = 24, AreaPageView = videoRangeControl == false ? "" : ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeAreaPageViewEnum.允许).ToString(),TransferControl="/Search/SearchWeikeListInfo", OrderBy = (AVA.ResourcesPlatform.Config.OrderType)this.ListUrlParam.Where(l=>l.Field=="OrderBy").FirstResult().Value.ToInt()}.ToHtml()%>
<%
}
%>
<%= Define.Get("Client_微课标签")%>
<%= new SearchWeiKeTagInstance(this) { }.ToHtml() %>
<%= Define.Get("Client_热播排行榜")%>
<%= new SearchWeikeListInstance(this) { Multithreading = true, CacheEnable = 60, ListUrlParam = this.ListUrlParam.RemoveOnlyCopy("ParentTag").RemoveOnlyCopy("SearchKeyWord").RemoveOnlyCopy("OrderBy"), OrderBy = AVA.ResourcesPlatform.Config.OrderType.周播放量,PageSize =12, AreaPageView = videoRangeControl == false ? "" : ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeAreaPageViewEnum.允许).ToString(),TransferControl="/Search/SearchWeikeList_index"}.ToHtml()%>
<%= Define.Get("Client_微课名师")%>
<%= new SearchTeacherListInstance(this) { Multithreading = true, CacheEnable = 60, OrderBy = AVA.ResourcesPlatform.Config.OrderType.按微课上传数量, PageSize=5 }.ToHtml()%>