<%= new NavInstance(this) { }.Add(Define.Get("Client_校园直播"),null).ToHtml()%>
直播列表
<%----%>
<%
foreach (var item in ListRecordEquipment)
{
//找出录前时间最近的预约
var live = CreateInstance.ApplicationDao.Where(l => l.ParentRecordEquipment == item
&& (l.Share == (int)AVA.ResourcesPlatform.Model.Pub.ApplicationShareEnum.本校 || 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=140, Height=88, OnErrorImg=SettingGroup.DefaultImg }) { Title = live.Title, Target = "_blank", Href = WebUrl.LivePlay(live.Guid) }%>
- <%= item.Name %> <% if (item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_直播中")) { %>
- <%= item.LiveStatus %> <% } else if (item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_录制中") || item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_直播录制中")) { %>
- <%= item.LiveStatus %> <% } else if (item.LiveStatus == Z.Core.Lang.Define.Get("RecordEquipment_准备就绪")) { %>
- <%= item.LiveStatus %> <% } else { %>
- <%= item.LiveStatus %> <% } %>
- -----------------------
- <%= new HtmlAnchor(live.Title) { Title = live.Title, Target = "_blank", Href = WebUrl.LivePlay(live.Guid) }%>
- 主讲人:<%= live.Speaker %>
- <%= live.StartTime.ToLongDate() %>