Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\Index\IndexVideoSort.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SimpleTemplate.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.Template.SimpleTemplate" %> <div class="tab-pane active" id="hots"> <ul class="nav nav-pills "> <%-- <li class="active"><a href="#unit-hots" data-toggle="pill">??????</a></li> --%> <li class="active"><a href="#week-hots" data-toggle="pill">?????</a></li> <li class=""><a href="#year-hots" data-toggle="pill">?????</a></li> </ul> <div class="tab-pane active" id="week-hots"> <ul class="orders"> <% //????????????????? bool videoRangeControl = SettingGroup.Setting().VideoRangeControl; var listVideo = CreateInstance.VideoDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.??, ResultCount = 10, VideoRangeType = "AreaPageView", VideoViewRange = videoRangeControl ? ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeAreaPageViewEnum.???).ToString() : null }); for (int i = 0; i < listVideo.Count; i++) { var video = listVideo[i]; if (i < 3) { %> <li> <a class="nums" title="<%=video.Name %>" target="_blank" href="<%=WebUrl.VideoPlay(video.Guid) %>" onclick="<%= video.Share == (int)AVA.ResourcesPlatform.Model.Pub.VideoShareEnum.?????? ? "return VideoShareWithLogined();" : "" %>" > <label class=" hots">0<%= i + 1 %></label><%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%><span class="total_num"> <%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.??,video.Guid,CookieGroup.DomainGuid) %></span></a>--%> <%= video.VideoView %></span></a> </li> <% } else { if (i + 1 < 10) { %> <li> <a class="nums" title="<%=video.Name %>" target="_blank" href="<%=WebUrl.VideoPlay(video.Guid) %>" onclick="<%= video.Share == (int)AVA.ResourcesPlatform.Model.Pub.VideoShareEnum.?????? ? "return VideoShareWithLogined();" : "" %>" > <label class=" ">0<%= i + 1 %></label><%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%><span class="total_num"> <%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.??,video.Guid,CookieGroup.DomainGuid) %></span></a>--%> <%= video.VideoView %></span></a> </li> <% } else { %> <li> <a class="nums" title="<%=video.Name %>" target="_blank" href="<%=WebUrl.VideoPlay(video.Guid) %>" onclick="<%= video.Share == (int)AVA.ResourcesPlatform.Model.Pub.VideoShareEnum.?????? ? "return VideoShareWithLogined();" : "" %>" > <label class=" "><%= i + 1 %></label><%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%><span class="total_num"> <%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.??,video.Guid,CookieGroup.DomainGuid) %></span></a>--%> <%= video.VideoView %></span></a> </li> <% } } } %> </ul> </div> <div class="tab-pane " id="year-hots"> <ul class="orders"> <% listVideo = CreateInstance.VideoDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.??, ResultCount = 10, VideoViewRange = videoRangeControl ? ((int)AVA.ResourcesPlatform.Model.Pub.VideoViewRangeAreaPageViewEnum.???).ToString() : null }); for (int i = 0; i < listVideo.Count; i++) { var video = listVideo[i]; if (i < 3) { %> <li> <a class="nums" title="<%=video.Name %>" target="_blank" href="<%=WebUrl.VideoPlay(video.Guid) %>" onclick="<%= video.Share == (int)AVA.ResourcesPlatform.Model.Pub.VideoShareEnum.?????? ? "return VideoShareWithLogined();" : "" %>" > <label class=" hots">0<%= i + 1 %></label><%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%><span class="total_num"> <%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.??,video.Guid,CookieGroup.DomainGuid) %></span></a>--%> <%= video.VideoView %></span></a> </li> <% } else { if (i + 1 < 10) { %> <li> <a class="nums" title="<%=video.Name %>" target="_blank" href="<%=WebUrl.VideoPlay(video.Guid) %>" onclick="<%= video.Share == (int)AVA.ResourcesPlatform.Model.Pub.VideoShareEnum.?????? ? "return VideoShareWithLogined();" : "" %>" > <label class=" ">0<%= i + 1 %></label><%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%><span class="total_num"> <%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.??,video.Guid,CookieGroup.DomainGuid) %></span></a>--%> <%= video.VideoView %></span></a> </li> <% } else { %> <li> <a class="nums" title="<%=video.Name %>" target="_blank" href="<%=WebUrl.VideoPlay(video.Guid) %>" onclick="<%= video.Share == (int)AVA.ResourcesPlatform.Model.Pub.VideoShareEnum.?????? ? "return VideoShareWithLogined();" : "" %>"> <label class=" "><%= i + 1 %></label><%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%><span class="total_num"> <%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.??,video.Guid,CookieGroup.DomainGuid) %></span></a>--%> <%= video.VideoView %></span></a> </li> <% } } } %> </ul> </div> <%--<div class="tab-pane active" id="unit-hots"> <%= new IndexUnitVideoByInstance(this) { PageSize = 10 }.ToHtml() %> </div> --%> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de