Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\Search\SearchVideoListInfo.ascx
??<%@ Control Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.Control.Search.SearchVideoList" %> <div> <table class="table table-striped"> <tbody> <% foreach (var video in this.ListVideo) { %> <tr> <td style="vertical-align: top" > <%= new HtmlAnchor( new HtmlImg(SettingGroup.VideoCover(video), video.Name) { Width=140, Height=88, OnErrorImg=SettingGroup.DefaultImg} ) { Title = video.Name, Target = "_blank", Href = WebUrl.VideoPlay(video.Guid) }%> </td> <td style="vertical-align: top">?????<%= new HtmlAnchor(WebUrl.Light(video.Name,this.SearchKeyWord)) { Title = video.Name, Target = "_blank", Href = WebUrl.VideoPlay(video.Guid) }%> <%= video.ParentCategory.Name %> <br /> ????? <%= new HtmlAnchor(WebUrl.Light(video.Author,this.SearchKeyWord)) { Href = WebUrl.Show(video.ParentUser.ParentUserType.ParentDomain.Code, video.ParentUser.UserName), Title = video.ParentUser.ParentUserType.ParentDomain.Name }%> <%= new HtmlAnchor(video.ParentUser.ParentUserType.ParentDomain.Name){ Href=video.ParentUser.ParentUserType.ParentDomain.RouteWebSite} %> <% if (video.ParentLesson != null) { %> <br /> ??????<%= WebUrl.Light(video.ParentLesson.ParentTextbook.ParentPress.Name,this.SearchKeyWord) %> <br /> ?????<%= WebUrl.Light(video.ParentLesson.ParentTextbook.ParentGrade.Name,this.SearchKeyWord) %> <br /> ?????<%= WebUrl.Light(video.ParentLesson.ParentTextbook.Name,this.SearchKeyWord) %> <br /> ??????<%= WebUrl.Light(video.ParentLesson.Section,this.SearchKeyWord) %> <br /> ?????<%= WebUrl.Light(video.ParentLesson.Name,this.SearchKeyWord) %> <% } %> <% if (!string.IsNullOrEmpty(video.Summary)) { %> <br /> ????? <%= video.Summary.ToFirstString(100,"...",true) %> <% } %> <% var tagTitle = CreateInstance.VideoTagDao.Where(l => l.ParentVideo == video) .OrderBy(l => l.SortNumber) .ToList(); if (tagTitle != null && tagTitle.Count > 0) { %> <br /> ????? <% foreach (var tag in tagTitle) { %> <%= WebUrl.Light(tag.Title,this.SearchKeyWord) %> <% } } %> </td> <td> <% var timeInfos = CreateInstance.VideoTimeInfoDao.Where(l => l.ParentVideo == video) .OrderBy(l => l.Seconds) .ThenBy(l => l.SecondsEnd) .ToList(); if (timeInfos != null && timeInfos.Count > 0) { %> <div class="video-info-more"> <ul> <% foreach (var timeInfo in timeInfos) { %> <li> <%= new HtmlAnchor(WebUrl.Light(timeInfo.Description.ToFirstString(25, "...", true),this.SearchKeyWord)) { Target = "_blank", Href = WebUrl.VideoPlay(video.Guid, timeInfo.Seconds) }%> <span class="num"> <%= AVA.ResourcesPlatform.Config.Helper.FormatSecond(timeInfo.Seconds / 1000) %> </span> </li> <% } %> </ul> </div> <% } %> </td> </tr> <% } %> </tbody> </table> </div> <div class="pagination"> <ul> <% if (this.Query.PageIndex <= 1) { %> <li class="active"> <%= new HtmlAnchor("???") { Href = "#SearchList" }%></li> <% } else { %> <li> <%= new HtmlAnchor("???") { Href = this.GetPageUrl(1) }%> </li> <% } %> <% if (this.Query.PageIndex - 1 < 1) { %> <li class="active"> <%= new HtmlAnchor("???") { Href = "#SearchList" }%> </li> <% } else { %> <li> <%= new HtmlAnchor("???") { Href = this.GetPageUrl(this.Query.PageIndex - 1) }%> </li> <% } %> <% int beginPageItem = (this.Query.PageIndex % 8 == 0 ? this.Query.PageIndex - 1 : this.Query.PageIndex) / 8 * 8 + 1; int endPageItem = beginPageItem + 8 - 1; if (endPageItem > this.Query.PageCount) { endPageItem = this.Query.PageCount; } if (beginPageItem > 1) { //????????????????? %> <li> <%= new HtmlAnchor("...") { Href = this.GetPageUrl(beginPageItem - 1) }%> </li> <% } for (int i = beginPageItem; i <= endPageItem; i++) { if (i == this.Query.PageIndex) { %> <li class="active"> <%= new HtmlAnchor(i.ToString()) { Href = "#SearchList" }%></li> <% } else { %> <li> <%= new HtmlAnchor(i.ToString()) { Href = this.GetPageUrl(i) }%> </li> <% } } if (endPageItem < this.Query.PageCount) { //????????????????? %> <li> <%= new HtmlAnchor("...") { Href = this.GetPageUrl(endPageItem + 1) }%> </li> <% } %> <% if (this.Query.PageIndex + 1 > this.Query.PageCount) { %> <li class="active"> <%= new HtmlAnchor("???") { Href = "#SearchList" }%></li> <% } else { %> <li> <%= new HtmlAnchor("???") { Href = this.GetPageUrl(this.Query.PageIndex + 1) }%> </li> <% } %> <% if (this.Query.PageIndex == this.Query.PageCount) { %> <li class="active"> <%= new HtmlAnchor("???") { Href = "#SearchList" }%></li> <% } else { %> <li> <%= new HtmlAnchor("???") { Href = this.GetPageUrl(this.Query.PageCount) }%> </li> <% } %> </ul> </div> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de