<%= new NavInstance(this) { }.Add(Define.Get("Client_在线直播"),null).ToHtml()%>
<%= Define.Get("Client_直播列表") %>
<%--
<%= new SearchLiveRecordEquipmentInstance(this) { }.ToHtml() %>
--%>
-
<%
foreach (var live in this.ListApplication)
{
var item = live.ParentRecordEquipment;
//找出录前时间最近的预约
//var live = CreateInstance.ApplicationDao.Where(l => l.ParentRecordEquipment == item
// && (l.Share == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationShareEnum.全部)
// && (l.Status == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.签到 || l.Status == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationStatusEnum.批准)
// && l.EndTime >= DateTime.Now)
// .OrderBy(l => l.StartTime)
// .Take(1)
// .ToList()
// .FirstResult();
if (live != null)
{
%>
-
<%= new HtmlAnchor(new HtmlImg(SettingGroup.ApplicationCover(live), live.Title) { Width=214, Height=120, OnErrorImg=SettingGroup.DefaultImg }) { Title = live.Title, Target = "_blank", Href = WebUrl.LivePlay(live.Guid) }%>
<%= item.Name %>
<% if (item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_直播中")) { %><%= CreateInstance.RecordEquipmentDao.GetRecordEquipmentStatusUser(item.LiveStatus) %><% } else if (item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_录制中") || item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_直播录制中")) { %><%= CreateInstance.RecordEquipmentDao.GetRecordEquipmentStatusUser(item.LiveStatus) %><% } else if (item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_准备就绪")) { %><%= CreateInstance.RecordEquipmentDao.GetRecordEquipmentStatusUser(item.LiveStatus) %><% } else { %><%= item.LiveStatus %><% } %>-----------------------
<%= new HtmlAnchor(live.Title) { Title = live.Title, Target = "_blank", Href = WebUrl.LivePlay(live.Guid) }%>
主讲人:<%= live.Speaker %>
<%= live.StartTime.ToLongDate() %>
<%
}
}
%>