%@ 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" }) %>
-
<%= new HtmlAnchor(this.Subject.ParentUser.ParentUserType.ParentDomain.Name) { Target = "_blank", Href = new UrlExecute() { ParentDomain = this.Subject.ParentUser.ParentUserType.ParentDomain.Guid }.ToUrl(SearchType.Subject) }%>
<%
if (this.Subject.ParentSubject != null)
{
%>
-
<%= new HtmlAnchor(this.Subject.ParentSubject.Name) { Title = this.Subject.ParentSubject.Name, Target = "_blank", Href = WebUrl.SubjectView(this.Subject.ParentSubject.Guid) }%>
<%
}
%>
-
<%= this.Subject.Compere %>
<%
if (this.ListCategory.Count > 0)
{
%>
-
<%
foreach (var category in this.ListCategory)
{
%>
<%= new HtmlAnchor(category.Name) { Target = "_blank", Href = new UrlExecute() { ParentChannel = category.Guid }.ToUrl(SearchType.Subject) }%>
<%
}
%>
<%
}
%>
<%
if (this.ListChannel.Count > 0)
{
%>
-
<%
foreach (var channel in this.ListChannel)
{
%>
<%= new HtmlAnchor(channel.Name) { Target = "_blank", Href = new UrlExecute() { ParentChannel = channel.Guid }.ToUrl(SearchType.Subject) }%>
<%
}
%>
<%
}
%>
<%
if (this.ListSubjectTag.Count > 0)
{
%>
-
<%
foreach (var tag in this.ListSubjectTag)
{
%>
<%= new HtmlAnchor(tag.Title) { Target = "_blank", Href = new UrlExecute() { TagTitle = tag.Title }.ToUrl(SearchType.Subject) }%>
<%
}
%>
<%
}
%>
-
<%= this.Subject.BeginTime %>
-
<%= this.Subject.EndTime %>
-
<%= this.Subject.CutoffTime %>
<%
//申请
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() %>
<%--
--%>