<%@ Control Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.Control.SubjectView.SubjectViewInfo" %>

优课评比: <%= this.Subject.Name %> <%= new PVHistoryCollectInstance(this) { PKId= this.Subject.Guid,PVTarget="Subject" }.ToHtml() %> <%= ((AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum)this.Subject.Status).Define() %>

<%--
Kung Fu Panda 2
--%> <%=new HtmlImg(SettingGroup.SubjectCover(this.Subject), this.Subject.Name) { Class = "vi-img",Width=140, Height=88, OnErrorImg=SettingGroup.DefaultImg}.Style(new { margin_top = "20px" }) %>
<% //申请 if ((this.Subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.启动 || this.Subject.Status == (int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.禁用) && this.Subject.CutoffTime >= DateTime.Now ) { //当优课评比为启动/禁用时,且申请时间没有过 if (this.SubjectUser != null) { %> <%= new HtmlButton("我已参加当前优课评比") { Title = "我已参加当前优课评比..", OnClick = "return false;" }%> <% } else { %>
<%= new HtmlButton("我要申请参加...") { Title = "申请参加...", OnClick = "SubjectUserApplySignupClient(this,'" + SetKey(this.Subject.Guid, this.Subject.Version) + "');return false;" }%>
<% } } %>
<% if (!string.IsNullOrEmpty(this.Subject.Ad) && FileExists(SettingGroup.SubjectUploadPath, this.Subject.Ad)) { %>
<%= new HtmlImg(SettingGroup.SubjectAd(this.Subject)).Style(new { Max_Width="560px" })%>
<% } %>
<%= this.Subject.Description.RestoreHtml() %>
<%--
查看更多
--%>