<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyVideoEdit.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideoEdit" %> <%= new MyVideoNavInstance(this) { Local = MyVideoNavItem.基本信息, Video = this.Video }.ToHtml() %>
我的视频:视频编辑
<%if (SettingGroup.HasWeike) { %> <% } %>
*标题: <%= new HtmlText("Name", this.Video.Name, 256) { }%> <%= new HtmlYKTip("Name")%>
主讲人: <% var speaker = this.Video.Spreaker; if (speaker == null) { speaker = this.Video.ParentUser.UserName; } %> <%= new HtmlText("Spreaker", speaker, 256) { }%>
*视频文件? <%= new HtmlText("FileName", this.Video.FileName) { ReadOnly = true }%> <%= new HtmlYKTip("FileName")%>
<%= new SingleUploadInstance(this) { UploadTag = "FileName", InitParams = "FileFilter=" + CreateInstance.DomainInfoDao.THIS().UploadVideoType.ToUpper().Replace("*.","") + "多媒体文件格式(" + CreateInstance.DomainInfoDao.THIS().UploadVideoType + ")|" + CreateInstance.DomainInfoDao.THIS().UploadVideoType + ",DefaultColor=#F5F5F5F5,SelectFiles=选择上传的视频文件,Upload=确认上传视频" }.ToHtml()%> <%= new HtmlHidden("VideoUploadPath",SettingGroup.VideoUploadPath) %>
<%--<%= new HtmlAnchor("未显示“上传”按钮,请点击下载,安装后重新加载页面!") { Href=Request.WebPath()+"/Resource/Silverlight.zip" }%>--%>
*学科: <%= new HtmlSelect("ParentCategory", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory), OnChange = "GetTextbook();", SelectedValue = this.Video.ParentCategory.Guid}.InsertOption("::选择::", "", 0)%> <%= new HtmlYKTip("ParentCategory") { }%>
<%= CreateInstance.ConfigDao.VideoGradeTag("") != null ? "*" : "" %>年级: <%= new HtmlSelect("ParentGrade", "Name", "Guid", "Guid") { Option = this.ListAllGrade, OptGroup= CreateInstance.GradeDao.GetOptGroup(this.ListAllGrade), DefaultSelectValue = "", SelectedValue = (this.Video.ParentGrade != null ? this.Video.ParentGrade.Guid : ""), OnChange = "GetTextbook();" }.InsertOption("::选择::", "", 0)%> <%= new HtmlYKTip("ParentGrade") { }%>
<%= CreateInstance.ConfigDao.VideoPressTag("") != null ? "*" : "" %>出版社: <%= new HtmlSelect("ParentPress", "Name", "Guid", "Guid") { Option = this.ListAllPress, DefaultSelectValue = "", SelectedValue = (this.Video.ParentPress != null ? this.Video.ParentPress.Guid : ""), OnChange = "GetTextbook();" }.InsertOption("::选择::", "", 0)%> <%= new HtmlYKTip("ParentPress") { }%>
课程分类: <%= new HtmlSelect("Channel", "Name", "Guid", "Guid") { Option = this.ListAllChannel, OptGroup= CreateInstance.ChannelDao.GetOptGroup(this.ListAllChannel), DefaultSelectValue = "", SelectedValue =this.SelectChannelOnly == null ? "" : this.SelectChannelOnly.Guid }.InsertOption("::选择::", "", 0)%>
微课广场: <%= new HtmlCheckBox("IsWeiKe", this.Video.IsWeiKe, 1, 0) {Class="IsWeiKe" }%>
标签用英文逗号(",")分开: <%= new HtmlText("VideoTag", this.VideoTag, 256) { Class="VideoTag", Width=800 ,ID = "inputTags"}%> <%if (this.ListTag.Count > 0) { var listTagCK = this.ListTag.Where(l => l.TagType == (int)AVA.ResourcesPlatform.Model.Pub.TagTagTypeEnum.常课标签).ToList();//常课标签 var listTagWK = this.ListTag.Where(l => l.TagType == (int)AVA.ResourcesPlatform.Model.Pub.TagTagTypeEnum.微课标签).ToList();//微课标签 %>

推荐标签:

    " id="ckTag"> <%foreach (var item in listTagCK) { %>
  • <%-- <%= new HtmlCheckBox("Tag", this.ListSelectTag.Contains(item.Guid), item.Guid, "") { ID = "Tag" + item.Guid, Class="Tag", Lang=item.Name}%>--%> <%= new HtmlLabel( item.Guid, item.Name) { Class="addClass"}.AddAttribute("data-value",item.Name) %>
  • <% } %>
    ;" id="wkTag"> <%foreach (var item in listTagWK) { %>
  • <%-- <%= new HtmlCheckBox("Tag", this.ListSelectTag.Contains(item.Guid), item.Guid, "") { ID = "Tag" + item.Guid, Class="Tag", Lang=item.Name}%>--%> <%= new HtmlLabel("Tag" + item.Guid, item.Name) { Class="addClass"}.AddAttribute("data-value",item.Name) %>
  • <% } %>
<% } %>
简介: <%= new HtmlTextArea("Summary", this.Video.Summary, 2000)%>
<%= CreateInstance.ConfigDao.VideoCaptionsFileTag("") != null ? "*" : "" %>视频字幕: <%= new HtmlText("CaptionsFile", this.Video.CaptionsFile) { Class = "ipt-t ipt-t-dft ",ReadOnly = true }%> <%= new HtmlButton("清除","$('#frmVideoEdit [Name=CaptionsFile]').val('');").Style(new { Width = "60px" })%> <%= new HtmlYKTip("CaptionsFile")%>
<%= new SingleUploadInstance(this) { UploadTag = "CaptionsFile", InitParams = "FileFilter=*.srt|*.srt,DefaultColor=#F5F5F5F5,SelectFiles=选择上传的视频字幕,Upload=确认上传字幕" }.ToHtml()%>
<%= CreateInstance.ConfigDao.VideoCoverTag("") != null ? "*" : "" %>视频封面:
<%= new HtmlHidden("Cover", this.Video.Cover) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlImg(SettingGroup.VideoCover(this.Video), "") { ID = "imgCover", OnErrorImg=SettingGroup.DefaultImg }%>
<%= new HtmlYKTip("Cover")%>
支持.jpg、gif、png格式的图片
*文件类型: <%= new HtmlSelect("FileType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoFileTypeEnum), Disabled = true, SelectedValue=this.Video.FileType }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0)%>
*文件大小: <%= new HtmlText("FileSize",this.Video.FileSize) { ReadOnly = true }%>
当视频是针对课本的某一单元课时,请先选择课本学科、所属出版社和年级
*录制时间: <%= new HtmlText("RecTime", this.Video.RecTime.ToLongDate(), 200) { }.Style(new { Width = "120px" })%> <%= new HtmlYKTip("RecTime")%>
时长(秒): <%= new HtmlText("Period", this.Video.Period, 200) { }.Style(new { Width = "120px" })%> <%= new HtmlYKTip("Period")%>
*版权: <%= new HtmlRadio("Copyright", (this.Video.Copyright == 0 ? true : false), 0, null) { ID = "Video_Copyright_0" }.Style(new { Width = "auto" })%> <%= new HtmlRadio("Copyright", (this.Video.Copyright == 1 ? true : false), 1, null) { ID = "Video_Copyright_1" }.Style(new { Width = "auto" })%> <%= new HtmlYKTip("Copyright") %>
*观看权限: <%= new HtmlRadio("Share", (this.Video.Share == 0 ? true : false), 0, null) { ID = "Video_Share_0" }.Style(new { Width = "auto" })%> <%--<%= new HtmlRadio("Share", (this.Video.Share == 1 ? true : false), 1, null) { ID = "Video_Share_1" }.Style(new { Width = "auto" })%> --%> <%= new HtmlRadio("Share", (this.Video.Share == 2 ? true : false), 2, null) { ID = "Video_Share_2" }.Style(new { Width = "auto" })%> <%= new HtmlRadio("Share", (this.Video.Share == 3 ? true : false), 3, null) { ID = "Video_Share_3" }.Style(new { Width = "auto" })%> <%= new HtmlYKTip("Share") %>
允许下载: <%= new HtmlCheckBox("HasDownload",this.Video.HasDownload,1,0)%>
详细描述: <%= new HtmlTextArea("Description", this.Video.Description, 2000)%>
*排序号: <%= new HtmlText("SortNumber", this.Video.SortNumber, 4) { DefaultValue = 1 }%> <%= new HtmlYKTip("SortNumber") %>
<%= new HtmlHidden("Key", SetKey(this.Video.Guid, this.Video.Version))%> <%= new HtmlSubmit("修改视频信息", "VideoEdit", "VideoEditClient(this);").Style(new { Width = "100px" })%>