<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyPublicClassEdit.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyPublicClassEdit" %> <% if (Has(this.ViewData["_PublicClass"])) { %> <%= new MyPublicClassNavInstance(this) { Local = MyPublicClassNavItem.基本信息, PublicClass = this.PublicClass }.ToHtml()%> <% } %>
<%= string.IsNullOrEmpty(this.PrimaryKey) ? "创建"+Define.Get("Client_公开课") : Define.Get("Client_公开课")+"编辑"%>
<%if (this.PrimaryKey != null) { %> <% } %>
*<%= Define.Get("Client_公开课")%>活动名称: <%= new HtmlText("Name", this.ViewData["_PublicClass.Name"], 256) { }%> <%= new HtmlYKTip("Name")%>
*<%= Define.Get("Client_公开课")%>活动状态: <%= new HtmlSelect("Status", "Value", "Key", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.PublicClassStatusEnum), SelectedValue = this.ViewData["_PublicClass.Status"] }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%> <%= new HtmlYKTip("Status")%>
<%= Define.Get("Client_公开课")%>审核状态: <%= new HtmlSelect("Examine", "Value", "Key", "Key") { Disabled=true, Option = typeof(AVA.ResourcesPlatform.Model.Pub.PublicClassExamineEnum), SelectedValue = this.ViewData["_PublicClass.Examine"] }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%> <%= new HtmlYKTip("Examine")%>
主持人名称: <%= new HtmlText("Compere", this.ViewData["_PublicClass.Compere"], 255) { }%>
*开始日期: <%= new HtmlText("BeginTime", this.ViewData["_PublicClass.BeginTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("BeginTime")%>
*结束日期: <%= new HtmlText("EndTime", this.ViewData["_PublicClass.EndTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("EndTime")%>
*截止报名日期: <%= new HtmlText("CutoffTime", this.ViewData["_PublicClass.CutoffTime"].ToDateTimeN().ToShortDate(), 255) { }%> <%= new HtmlYKTip("CutoffTime")%>
*所属学科: <%= new HtmlSelect("ParentCategory", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory),SelectedValue = this.PublicClassCategory != null ? this.PublicClassCategory.Guid : CookieGroup.ListUserCategory.FirstResult() }.InsertOption("::选择::", "", 0) %>
<%= Define.Get("Client_公开课")%>活动封面:
<%= new HtmlHidden("Cover", this.ViewData["_PublicClass.Cover"]) { Class = "ipt-t ipt-t-dft " }%> <%if (string.IsNullOrEmpty(SettingGroup.PublicClassCover(this.ViewData["_PublicClass"]))) { %> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover", Width=140, Height=88 }%> <% } else { %> <%= new HtmlImg(SettingGroup.PublicClassCover(this.ViewData["_PublicClass"]), "") { ID = "imgCover", OnErrorImg=SettingGroup.DefaultImg }%> <% } %>
<%= new HtmlYKTip("Cover")%>
支持.jpg、gif、png格式的图片
活动海报图:
<%= new HtmlHidden("Ad", this.ViewData["_PublicClass.Ad"]) { Class = "ipt-t ipt-t-dft " }%> <%if (string.IsNullOrEmpty(SettingGroup.PublicClassAd(this.ViewData["_PublicClass"]))) { %> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover", Width=400, Height=300 }%> <% } else { %> <%= new HtmlImg(SettingGroup.PublicClassAd(this.ViewData["_PublicClass"]), "") { ID = "imgAd", OnErrorImg= SettingGroup.DefaultImg, Width = 400, Height = 300 }%> <% } %>
<%= new HtmlYKTip("Ad")%>
支持.jpg、gif、png格式的图片
详细描述: <%= new HtmlTextArea("Description", this.ViewData["_PublicClass.Description"], 2000) { Class = "ipt-t ipt-t-dft width600 height400 xheditor-full"}.AddAttribute("style","width:600px;height:300px;")%>
<%= new HtmlHidden("Key", SetKey(this.ViewData["_PublicClass.Guid"], this.ViewData["_PublicClass.Version"]))%> <%= new HtmlSubmit(string.IsNullOrEmpty(this.PrimaryKey) ? "创建"+Define.Get("Client_公开课")+"活动" : "修改"+Define.Get("Client_公开课")+"信息", "PublicClassEdit", "PublicClassEditClient(this);").Style(new { Width = "120px" })%>