<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyApplicationAdd.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyApplicationAdd" %> <%if (this.Application == null) { %> <%= new MyApplicationNavTopInstance(this) { Local= MyApplicationNavTopItem.申请录制 }.ToHtml()%> <% } else { %> <%= new MyApplicationNavInstance(this) { Local= MyApplicationNavItem.基本信息 }.ToHtml()%> <% } %>
申请录制
<% if (this.Application == null) { %> <% } else { %> <% } %> <% if (CreateInstance.ConfigDao.ApplicationLessonTag() == null) { //如果有课表的话,这一个肯定是单选的 %> <% } %> <% if (CreateInstance.ConfigDao.ApplicationLessonTag() != null) { %> <% } //如果这里是要有单元课的话,那么他这里肯定是只能选择一个学科 %>
*授课教室: <%= new HtmlSelect("ParentRecordEquipment", "Name", "Guid", "Guid") { Option = this.ListRecordEquipment,DefaultSelectValue= ViewData.Val("ParentRecordEquipment.Guid", this.Application), OnChange = "GetTimeRange();" }.InsertOption("::选择::", "", 0)%> <%= new HtmlYKTip("ParentRecordEquipment")%>
*录制日期: <%= new HtmlText("ApplicationDate", ViewData.Val("ApplicationDate", this.Application).ToDateTimeN().ToAutoShortDate()) { OnChange = "GetTimeRange();" }%> <%= new HtmlYKTip("ApplicationDate") %>
*录制时间:
请先选择授课教室和录制日期
*开始时间: <%= new HtmlText("StartTime", ViewData.Val("StartTime", this.Application).ToDateTimeN().ToAutoShortDate()) { Class = "" }%> <%= new HtmlYKTip("StartTime") %>
*结束时间: <%= new HtmlText("EndTime", ViewData.Val("EndTime", this.Application).ToDateTimeN().ToAutoShortDate()) { Class = " " }%> <%= new HtmlYKTip("EndTime") %>
<%= CreateInstance.ConfigDao.ApplicationTitleTag("*") %>标题: <%= new HtmlText("Title", ViewData.Val("Title", this.Application), 200) { }%> <%= new HtmlYKTip("Title") %>
<%= CreateInstance.ConfigDao.ApplicationSpeakerTag("*") %>主讲人: <% var speaker = ViewData.Val("Speaker", this.Application); if (speaker == null) { speaker = this.UserName; } %> <%= new HtmlText("Speaker", speaker, 200) { }%> <%= new HtmlYKTip("Speaker")%>
<%= CreateInstance.ConfigDao.ApplicationChannelTag("*") %>*所属学科: <%= new HtmlSelect("Category", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory), DefaultSelectValue = "", OnChange = "GetTextbook();", SelectedValue = (this.Application != null ? (this.Application._ListApplicationCategory.Count > 0? (this.Application._ListApplicationCategory[0].ParentCategory.ParentCategory==null?this.Application._ListApplicationCategory[1].ParentCategory.Guid:this.Application._ListApplicationCategory[0].ParentCategory.Guid) : "" ): CookieGroup.ListUserCategory.FirstResult()) }.InsertOption("::选择::", "", 0)%> <%= new HtmlYKTip("Category") { }%>
*所属年级: <%= new HtmlSelect("ParentGrade", "Name", "Guid", "Guid") { Option = this.ListAllGrade, OptGroup= CreateInstance.GradeDao.GetOptGroup(this.ListAllGrade), DefaultSelectValue = ViewData.Val("ParentGrade.Guid", this.Application), OnChange = "GetTextbook();" }.InsertOption("::选择::", "", 0)%>
*所属学科: <%--<%= new HtmlSelect("Category", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory), DefaultSelectValue = "", OnChange = "GetTextbook();", SelectedValue = ViewData.Val("=>_ListApplicationCategory[0].Guid", this.Application) }.InsertOption("::选择::", "", 0)%>--%> <%= new HtmlSelect("Category", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory), DefaultSelectValue = "", OnChange = "GetTextbook();", SelectedValue = (this.Application != null ? (this.Application._ListApplicationCategory.Count > 0? this.Application._ListApplicationCategory[0].ParentCategory.Guid : "" ):"") }.InsertOption("::选择::", "", 0)%> <%= new HtmlYKTip("Category") { }%>
*出版社: <%= new HtmlSelect("ParentPress", "Name", "Guid", "Guid") { Option = this.ListAllPress, DefaultSelectValue = "", SelectedValue = ViewData.Val("ParentLesson.ParentTextbook.ParentPress.Guid", this.Application), OnChange = "GetTextbook();" }.InsertOption("::选择::", "", 0)%> <%= new HtmlYKTip("ParentPress") { }%>
<%= Define.Get("Application_是否发布预约通知").ToScriptTag() %>: <%= new HtmlCheckBox("IsPubNotice", ViewData.Val("IsPubNotice", this.Application), true, false) { Class = ""}%>
发布高清视频: <%= new HtmlCheckBox("IsHDVideo", ViewData.Val("IsHDVideo", this.Application), true, false) { Class = ""}%>
<%= CreateInstance.ConfigDao.ApplicationAlbumNameTag("*") %><%= Define.Get("Client_专辑")%>名称: <% var album = ViewData.Val("AlbumName", this.Application); if (album != null && this.ListAllAlbum.Select(l => l.Name).Contains(album)) { %> <%= new HtmlText("", ViewData.Val("AlbumName", this.Application), 64) { ID = "AlbumText" }.Style(new { display="none" })%> <%= new HtmlSelect("AlbumName", "Name", "Name", "Guid") { ID="AlbumSelect", Option = this.ListAllAlbum,DefaultSelectValue = "", SelectedValue= ViewData.Val("AlbumName", this.Application), OnChange="ChangeAlbumText(this)" }.InsertOption("我要输入...","change",this.ListAllAlbum.Count).InsertOption("::选择::", "", 0)%> <% } else if (album != null && album !="" && this.ListAllAlbum.Select(l => l.Name).Contains(album) == false) { %> <%= new HtmlText("", ViewData.Val("AlbumName", this.Application), 64) { ID = "AlbumText" }%> 取消 <%= new HtmlSelect("AlbumName", "Name", "Name", "Guid") { ID = "AlbumSelect", Option = this.ListAllAlbum, DefaultSelectValue = "", SelectedValue = ViewData.Val("AlbumName", this.Application), OnChange = "ChangeAlbumText(this)" }.InsertOption("我要输入...", "change", this.ListAllAlbum.Count).InsertOption("::选择::", "", 0).Style(new { display="none"})%> <% } else if (album == null || album == "") { %> <%= new HtmlText("", ViewData.Val("AlbumName", this.Application), 64) { ID = "AlbumText" }.Style(new { display="none" })%> <%= new HtmlSelect("AlbumName", "Name", "Name", "Guid") { ID="AlbumSelect", Option = this.ListAllAlbum,DefaultSelectValue = "", SelectedValue= ViewData.Val("AlbumName", this.Application), OnChange="ChangeAlbumText(this)" }.InsertOption("我要输入...","change",this.ListAllAlbum.Count).InsertOption("::选择::", "", 0)%> <% } %> <%= new HtmlYKTip("AlbumName")%>
<%= CreateInstance.ConfigDao.ApplicationViewPasswordTag("*") %><%= Define.Get("Application_需要登录观看").ToScriptTag() %>: <%= new HtmlCheckBox("NeetLoginToLive", ViewData.Val("NeetLoginToLive", this.Application), true, false) { Class = ""}%>
<%= CreateInstance.ConfigDao.ApplicationViewPasswordTag("*") %>观看密码: <%= new HtmlText("ViewPassword", ViewData.Val("ViewPassword", this.Application), 200) { }%> <%= new HtmlYKTip("ViewPassword")%>
<%= CreateInstance.ConfigDao.ApplicationCoverTag("*") %>直播封面:
<%= new HtmlHidden("Cover", ViewData.Val("Cover",this.Application)) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlImg(SettingGroup.ApplicationCover(this.Application,SettingGroup.DefaultImg), "") { ID = "imgCover",Width=140, Height=88 ,OnErrorImg=SettingGroup.DefaultImg }%>
<%= new HtmlYKTip("Cover")%>
支持.jpg、gif、png格式的图片
*观看权限: <%= new HtmlRadio("Share", 0, null) { ID = "Application_Share_0", Checked=(ViewData.Val("Share", this.Application).ToIntN()==0) }.Style(new { Width = "auto" })%> <%--<%= new HtmlRadio("Share", 1, null) { ID = "Application_Share_1", Checked=(ViewData.Val("Share", this.Application).ToIntN()==1) }.Style(new { Width = "auto" })%> --%> <%= new HtmlRadio("Share", true , 2, null) { ID = "Application_Share_2", Checked=(ViewData.Val("Share", this.Application).ToIntN()==2 || ViewData.Val("Share", this.Application).ToIntN()==null) }.Style(new { Width = "auto" })%> <%= new HtmlYKTip("Share") %>
*到场人数: <%= new HtmlText("NumberOfPeople", 1) { Class = "ipt-t ipt-t-dft " }%><%--不显示到场人数--%> <%= new HtmlYKTip("NumberOfPeople") %>
<%= CreateInstance.ConfigDao.ApplicationDescriptionTag("*") %>申请说明: <%= new HtmlTextArea("Description", ViewData.Val("Description", this.Application), 2000)%> <%= new HtmlYKTip("Description") %>
<%= CreateInstance.ConfigDao.ApplicationChannelTag("*") %>课程分类:
    <% for (var i = 0; i <= this.ListAllChannel.Count - 1; i++) { var channel = this.ListAllChannel[i]; string parentChannelGuid = ""; if (channel.ParentChannel != null) { parentChannelGuid = channel.ParentChannel.Guid; %>
  • <%= new HtmlCheckBox("Channel", CreateInstance.ApplicationChannelDao.Count(l=>l.ParentApplication== this.Application && l.ParentChannel== channel)>0, 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)%> <% if (i == 0) { %> <%= new HtmlYKTip("Channel")%> <% } %>
  • <% } else { %>
  • <%= new HtmlCheckBox("Channel", CreateInstance.ApplicationChannelDao.Count(l=>l.ParentApplication== this.Application && l.ParentChannel== channel)>0 , channel.Guid, "") { ID = "Channel" + channel.Guid, Class = "ChannelMaster ChannelMaster" + channel.Guid }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Channel" + channel.Guid, channel.Name)%> <% if (i == 0) { %> <%= new HtmlYKTip("Channel")%> <% } %>
  • <% } } %>
<%= new HtmlHidden("Key", this.KEY)%> <%= new HtmlHidden("ParentUser", this.User.Guid)%> <%= new HtmlSubmit("提交", "ApplicationEdit",this.Application==null? "ApplicationAddClient(this);":"ApplicationEditClient(this);").Style(new { Width = "100px" })%>