%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SimpleTemplate.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.Template.SimpleTemplate" %>
<%
//是否开启了浏览范围控制
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)
{
%>
-
" >
<%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%>
<%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.周,video.Guid,CookieGroup.DomainGuid) %>--%>
<%= video.VideoView %>
<%
}
else
{
if (i + 1 < 10)
{
%>
-
" >
<%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%>
<%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.周,video.Guid,CookieGroup.DomainGuid) %>--%>
<%= video.VideoView %>
<%
}
else
{
%>
-
" >
<%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%>
<%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.周,video.Guid,CookieGroup.DomainGuid) %>--%>
<%= video.VideoView %>
<%
}
}
}
%>
<% 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)
{
%>
-
" >
<%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%>
<%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.年,video.Guid,CookieGroup.DomainGuid) %>--%>
<%= video.VideoView %>
<%
}
else
{
if (i + 1 < 10)
{
%>
-
" >
<%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%>
<%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.年,video.Guid,CookieGroup.DomainGuid) %>--%>
<%= video.VideoView %>
<%
}
else
{
%>
-
">
<%= new HtmlSpan(video.Name) { Class = "text", TextLength = 15, Suffix = ".." }%>
<%--<%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.年,video.Guid,CookieGroup.DomainGuid) %>--%>
<%= video.VideoView %>
<%
}
}
}
%>
<%--
<%= new IndexUnitVideoByInstance(this) { PageSize = 10 }.ToHtml() %>
--%>