<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MySubjectEdit" %>
我的优课评比: <%= string.IsNullOrEmpty(this.PrimaryKey) ? "添加优课评比" : "优课评比编辑"%> <% if (Has(this.ViewData["_Subject"])) { %> <%= new MySubjectNavInstance(this) { Local = "编辑" }.ToHtml()%> <% } %>

*标题: <%= new HtmlText("Name", this.ViewData["_Subject.Name"], 256) { }%> <%= new HtmlYKTip("Name")%>
上级评课: <%= new HtmlSelect("ParentSubject", "Name", "Guid", "Guid") { Option = this.ListSubject, SelectedValue=this.ViewData["_Subject.ParentSubject.Guid"] }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%>
*优课评比封面:
<%= new HtmlHidden("Cover", this.ViewData["_Subject.Cover"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlImg(SettingGroup.SubjectCover(this.ViewData["_Subject"]), "") { ID = "imgCover", Width=140, Height=88, OnErrorImg=SettingGroup.DefaultImg }%>
<%= new HtmlYKTip("Cover")%>
支持.jpg、gif、png格式的图片
海报图:
<%= new HtmlHidden("Ad", this.ViewData["_Subject.Ad"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlImg(SettingGroup.SubjectAd(this.ViewData["_Subject"]), "") { ID = "imgAd", Width=400, Height=300, OnErrorImg= SettingGroup.DefaultMaxImg }%>
<%= new HtmlYKTip("Ad")%>
支持.jpg、gif、png格式的图片
主持人名称: <%= new HtmlText("Compere", this.ViewData["_Subject.Compere"], 255) { }%>
*开始日期: <%= new HtmlText("BeginTime", this.ViewData["_Subject.BeginTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("BeginTime")%>
*结束日期: <%= new HtmlText("EndTime", this.ViewData["_Subject.EndTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("EndTime")%>
*截止申请日期: <%= new HtmlText("CutoffTime", this.ViewData["_Subject.CutoffTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("CutoffTime")%>
公开上传: <%= new HtmlCheckBox("ShareUpload", this.ViewData["_Subject.ShareUpload"], 1, 0) { Class = "" }.Style(new { Width = "auto" })%>
启用评奖排名: <%= new HtmlCheckBox("STEnable", this.ViewData["_Subject.STEnable"], 1, 0) { Class = "", OnClick="SwitchCutoffTimeBeforLock();" }.Style(new { Width = "auto" })%>
*观看权限: <%= new HtmlRadio("Share", (this.ViewData["_Subject.Share"].ToInt(0) == 0 ? true : false), 0, null) { ID = "Subject_Share_0" }.Style(new { Width = "auto" })%> <%= new HtmlRadio("Share", (this.ViewData["_Subject.Share"].ToInt(0) == 1 ? true : false), 1, null) { ID = "Subject_Share_1" }.Style(new { Width = "auto" })%> <%= new HtmlRadio("Share", (this.ViewData["_Subject.Share"].ToInt(0) == 2 || this.ViewData["_Subject.Share"] == null ? true : false), 2, null) { ID = "Subject_Share_2" }.Style(new { Width = "auto" })%> <%= new HtmlYKTip("Share") %>
详细描述: <%= new HtmlTextArea("Description", this.ViewData["_Subject.Description"], 2000)%>
*排序号: <%= new HtmlText("SortNumber", this.ViewData["_Subject.SortNumber"], 4) { DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %>
标签用空格(" ")分开: <%= new HtmlText("SubjectTag", this.SubjectTag, 256) { }%>
所属课程:
    <% foreach (var channel in this.ListAllChannel) { string parentChannelGuid = ""; if (channel.ParentChannel != null) { parentChannelGuid = channel.ParentChannel.Guid; %>
  • <%= new HtmlCheckBox("Channel", this.SelectChannel.Contains(channel.Guid), channel.Guid, "") { ID = "Channel" + channel.Guid, Class = "ChannelItem ChannelItemChannel" + parentChannelGuid, Lang = channel.ParentChannel.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Channel" + channel.Guid, channel.Name)%>
  • <% } else { %>
  • <%= new HtmlCheckBox("Channel", this.SelectChannel.Contains(channel.Guid), channel.Guid, "") { ID = "Channel" + channel.Guid, Class = "ChannelMaster ChannelMaster" + channel.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Channel" + channel.Guid, channel.Name)%>
  • <% } } %>
所属学科:
    <% foreach (var category in this.ListAllCategory) { string parentCategoryGuid = ""; if (category.ParentCategory != null) { parentCategoryGuid = category.ParentCategory.Guid; %>
  • <%= new HtmlCheckBox("Category", this.SelectCategory.Contains(category.Guid), category.Guid, "") { ID = "Category" + category.Guid, Class = "CategoryItem CategoryItemCategory" + parentCategoryGuid, Lang = category.ParentCategory.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Category" + category.Guid, category.Name)%>
  • <% } else { %>
  • <%= new HtmlCheckBox("Category", this.SelectCategory.Contains(category.Guid), category.Guid, "") { ID = "Category" + category.Guid, Class = "CategoryMaster CategoryMaster" + category.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Category" + category.Guid, category.Name)%>
  • <% } } %>
<%= new HtmlHidden("InheritScoreItem", "0")%> <%= new HtmlHidden("Key", SetKey(this.ViewData["_Subject.Guid"], this.ViewData["_Subject.Version"]))%> <%= new HtmlSubmit(string.IsNullOrEmpty(this.PrimaryKey) ? "添加优课评比" : "修改优课评比信息", "SubjectEdit", "SubjectEditClient(this);").Style(new { Width = "100px" })%>