<%@ Page Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.TeacherList" %> <%= Define.Get("Client_名师列表") %> - <%= this.Title %> <%= Import.CSS("js", "/JQueryUI/css/redmond/jquery-ui-1.8.9.custom.css")%> <%= Import.ScriptTheme("js/jquery.1.9.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.ScriptTheme("js/jquery-ui.min.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("/global.aspx")%> <%= Import.Script("js", "/global.js")%> <%= new HeadInstance(this) {Multithreading = true, CacheEnable=60*60 }.ToHtml() %> <%= new BrowserTipInstance(this) { Multithreading = true, CacheEnable = 60*60, }.ToHtml() %> <%= new HeaderInstance(this) { Multithreading = true, CacheEnable = 60*60, HeaderItem=HeaderItem.TeacherList, ReplaceItems = new ReplaceItems().Add("HeaderSearch", ReplaceTypeEnum.Html,new SearchVideoMaxInstance(this){ Multithreading = true, CacheEnable = 60*60, }.ToRenderHtml()) }.ToHtml() %>
<%= new NavInstance(this) { Multithreading = true, CacheEnable = 60*60, }.Add(Define.Get("Client_名师列表"),WebUrl.TeacherList()).AddRequiredValueEmpty("关键字:"+this.SearchKeyWord,this.SearchKeyWord).ToHtml()%>
<%--
<%= new SearchTeacherListCategoryInstance(this) { }.ToHtml() %>
<%-- <% var listTeacher = CreateInstance.UserDao.Where( l => l.ParentUserType.Name.Contains("名师") ).ToList(); %> <%= new SearchTeacherListInstance(this) { }.ToHtml()%>
--%>
<% var gradesList = CreateInstance.GradeDao.Where(l => l.ParentGrade == null && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.GradeStatusEnum.有效) .OrderBy(l => l.SortNumber) .ToList(); %> <% for (var i = 0; i < gradesList.Count; i++) { var grade = gradesList[i]; %>
">
  • "><%= grade.Name%>

    " class="more">更多>
      <%= new CategoryTeacherNumInstance(this) { Multithreading = true, CacheEnable = 60, ParentGradeGuid = grade.Guid}.ToHtml()%>
  • <%= new SearchTeacherListInstance(this) { Multithreading = true, CacheEnable = 60, TransferControl="/Search/SearchTeacherList_thumbnail_float" ,PageSize=11, ListUrlParam = ListUrlParam.AddOnly("ParentGrade",grade.Guid) }.ToHtml()%>
<% }%> <%= new FooterInstance(this) { Multithreading = true, CacheEnable = 60*60, }.ToHtml() %>