<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Video.Edit" %> <%= this.Title%> <%= Import.Theme()%> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap.css")%> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap-theme.css")%> <%= Import.CSS("/zh-cn/bootstrap/admin.css")%> <%-- <%= Import.CSS("/zh-cn/Admin_StyleSheet.css") %>--%> <%= Import.Script("/jquery.1.9.js")%> <%= Import.Script("/app.js")%> <%= Import.Script("/bootstrap/bootstrap.min.js")%>
<% var nav = new NavigationInstance(this) { }; nav.IsTopNav = true; %> <%= nav.ToHtml()%>
<% nav.GetChildMenu(Request["muid"]);%> <%= nav.ToHtml()%>
<%----%> <%----%> <%if (SettingGroup.HasWeike) { %> <% } %> <% if (Has(this.ViewData["_Video"])) { %> <% } %> <%-- --%> <%-- --%>
"> <%= Define.Get("Video_UserDomainName_平台名称").HtmlEncode() %>: <%= new HtmlText(null, this.ViewData["_Video.ParentUser.ParentDomain.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%>
"> <%= Define.Get("Video_UserDomainCode_平台编码").HtmlEncode() %>: <%= new HtmlText(null, this.ViewData["_Video.ParentUser.ParentDomain.Code"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%>
"> <%= Define.Get("Video_UserUserTypeName_用户类型名称").HtmlEncode() %>: <%= new HtmlText(null, this.ViewData["_Video.ParentUser.ParentUserType.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%>
"> *<%= Define.Get("Video_所属用户").HtmlEncode()%>: <%= new HtmlText("ParentUser_TrueName_UserName", IN(this.ViewData["_Video"], this.ViewData["_Video.ParentUser.TrueName"] + "[" + this.ViewData["_Video.ParentUser.UserName"] + "]")) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmVideo [name=ParentUser]","Edit");" }%> <%= new HtmlHidden("ParentUser", this.ViewData["_Video.ParentUser.Guid"])%> [<%= DefineEnum.选择.Define()%>] <%= new HtmlYKTip("ParentUser")%>
"> *<%= Define.Get("Video_所属学科").HtmlEncode()%>: <%= new HtmlText("ParentCategory_Name", IN(this.ViewData["_Video"], this.ViewData["_Video.ParentCategory.Name"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmVideo [name='ParentCategory']","Edit");" }%> <%= new HtmlHidden("ParentCategory", this.ViewData["_Video.ParentCategory.Guid"])%> [<%= DefineEnum.选择.Define()%>] <%= new HtmlYKTip("ParentCategory")%>
"> <%= Define.Get("Video_所属出版社").HtmlEncode()%>: <%= new HtmlText("ParentPress_Name", IN(this.ViewData["_Video"], this.ViewData["_Video.ParentPress.Name"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmVideo [name=ParentPress]","Edit");" }%> <%= new HtmlHidden("ParentPress", this.ViewData["_Video.ParentPress.Guid"])%> [<%= DefineEnum.选择.Define()%>] <%= new HtmlYKTip("ParentPress")%>
"> <%= Define.Get("Video_所属年级").HtmlEncode()%>: <%= new HtmlText("ParentGrade_Name", IN(this.ViewData["_Video"], this.ViewData["_Video.ParentGrade.Name"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmVideo [name=ParentGrade]","Edit");" }%> <%= new HtmlHidden("ParentGrade", this.ViewData["_Video.ParentGrade.Guid"])%> [<%= DefineEnum.选择.Define()%>] <%= new HtmlYKTip("ParentGrade")%>
"> <%= Define.Get("Video_所属单元课").HtmlEncode()%>: <%= new HtmlText("ParentLesson_Name", IN(this.ViewData["_Video"], this.ViewData["_Video.ParentLesson.Name"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmVideo [name=ParentCategory]","Edit");" }%> <%= new HtmlHidden("ParentLesson", this.ViewData["_Video.ParentLesson.Guid"])%> [<%= DefineEnum.选择.Define()%>]
"> <%= Define.Get("Video_所属课程").HtmlEncode()%>: <%= new HtmlSelect("ParentChannel", "Name", "Guid", "Guid") { Option = this.ListChannel, OptGroup = CreateInstance.ChannelDao.GetOptGroup(this.ListChannel), DefaultSelectValue = this.ListSelectChannel != null ? this.ListSelectChannel[0].Guid : "" }.InsertOption("::选择::", "", 0)%> <%--
    <% for (var i = 0; i <= this.ListChannel.Count - 1; i++) { var channelMaster = this.ListChannel[i]; %>
  • <%= new HtmlLabel("Channel" + channelMaster.Guid, channelMaster.Name)%> <% if (i == 0) { %> <%= new HtmlYKTip("Channel")%> <% } %>
  • <% foreach (var channel in channelMaster._ListChannel) { %>
  • <%= new HtmlCheckBox("ParentChannel", false, channel.Guid, "") { ID = "Channel" + channel.Guid, Class = "ChannelItem ChannelItemChannel" + channelMaster.Guid, Lang = channel.ParentChannel.Guid, Checked = this.ListSelectChannel == null ? false: this.ListSelectChannel.Contains(channel) }.Style(new { Width = "auto" })%> <%= new HtmlLabel("Channel" + channel.Guid, channel.Name)%> <% if (i == 0) { %> <%= new HtmlYKTip("Channel")%> <% } %>
  • <% } } %>
--%> <%--<%= new HtmlYKTip("ParentChannel") %>--%>
"> <%= Define.Get("Video_LessonTextbookPressName_出版社名称").HtmlEncode() %>: <%= new HtmlText(null, this.ViewData["_Video.ParentLesson.ParentTextbook.ParentPress.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%>
"> <%= Define.Get("Video_LessonTextbookGradeName_年级名称").HtmlEncode() %>: <%= new HtmlText(null, this.ViewData["_Video.ParentLesson.ParentTextbook.ParentGrade.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%>
"> <%= Define.Get("Video_LessonTextbookCategoryName_学科学科名称").HtmlEncode() %>: <%= new HtmlText(null, this.ViewData["_Video.ParentLesson.ParentTextbook.ParentCategory.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%>
"> <%= Define.Get("Video_LessonTextbookName_课本名称").HtmlEncode()%>: <%= new HtmlText(null, this.ViewData["_Video.ParentLesson.ParentTextbook.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%>
"> <%= Define.Get("Video_封面").HtmlEncode()%>: <%= new HtmlHidden("Cover", ViewData["_Video.Cover"])%> <%= new HtmlImg(SettingGroup.NonePic) { Class = "default-image" }%>
','0','<%= SettingGroup.VideoUploadPath%>','','960', '540')">[<%= DefineEnum.图片上传.Define()%>]
"> *<%= Define.Get("Video_视频名称").HtmlEncode()%>: <%= new HtmlText("Name", this.ViewData["_Video.Name"]) { Class = "ipt-t ipt-t-dft ", Width = 400 }%> <%= new HtmlYKTip("Name")%>
"> <%= Define.Get("Video_视频是否为微课").HtmlEncode()%>: <%= new HtmlCheckBox("IsWeiKe", this.ViewData["_Video.IsWeiKe"], true, false) { Class = "" }%>
"> <%= Define.Get("Video_所属服务器").HtmlEncode()%>: <%= new HtmlText("ParentPlaySaveServer_Name", IN(this.ViewData["_Video"], this.ViewData["_Video.ParentPlaySaveServer.Name"])) { ReadOnly = true, Disabled= true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmVideo [name=ParentPlaySaveServer]","Edit");" }%> <%= new HtmlHidden("ParentPlaySaveServer", this.ViewData["_Video.ParentPlaySaveServer.Guid"])%>
"> <%= Define.Get("Video_直播课堂").HtmlEncode()%>: <%= new HtmlText("ParentApplication_Title", IN(this.ViewData["_Video"], this.ViewData["_Video.ParentApplication.StartTime"].ToDateTime().ToAutoShortDate() + " " + this.ViewData["_Video.ParentApplication.Title"].ToString(null) + " " + this.ViewData["_Video.ParentApplication.Speaker"].ToString(null))) { ReadOnly = true, Class = "ipt-t ipt-t-dft width400" }%> <%= new HtmlHidden("ParentApplication", this.ViewData["_Video.ParentApplication.Guid"])%> [<%= DefineEnum.选择.Define()%>]
"> <%= Define.Get("Video_主讲人").HtmlEncode()%>: <%= new HtmlText("Spreaker", this.ViewData["_Video.Spreaker"]) { Class = "ipt-t ipt-t-dft ", Width = 400 }%> <%= new HtmlYKTip("Spreaker")%>
"> <%= Define.Get("Video_文件名").HtmlEncode()%>: <%= new HtmlText("FileNameShow", this.ViewData["_Video.FileName"], 256) { Class = "ipt-t ipt-t-dft", Width = 400, ReadOnly = true }%> <%= new HtmlHidden("FileName", this.ViewData["_Video.FileName"]) { Class = "ipt-t ipt-t-dft", Width = 400 }%>
<%= new SingleUploadInstance(this) { UploadTag = "FileName", Accept = CreateInstance.DomainInfoDao.THIS().UploadVideoType.ToUpper().Replace("*", "").Replace(";", ","), UploadControlName = "上传视频文件" }.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "FileName", InitParams = "FileFilter=*.*|*.*,SelectFiles=选择上传的视频文件,Upload=确认上传视频" }.ToHtml()%> --%>
"> <%= Define.Get("Video_视频字幕").HtmlEncode()%>: <%= new HtmlText("CaptionsFile", this.ViewData["_Video.CaptionsFile"], 256) { Class = "ipt-t ipt-t-dft", Width = 400, ReadOnly = true }%>
<%= new SingleUploadInstance(this) { UploadTag = "CaptionsFile", Accept = ".srt", UploadControlName = "上传字幕文件" }.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "CaptionsFile", InitParams = "FileFilter=*.srt|*.srt,SelectFiles=选择上传的视频字幕,Upload=确认上传字幕" }.ToHtml()%> --%>
"> <%= Define.Get("Video_培训年度").HtmlEncode()%>: <%= new HtmlText("TrainYear", this.ViewData["_Video.TrainYear"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("TrainYear")%>
"> <%= Define.Get("Video_简介").HtmlEncode()%>: <%= new HtmlTextArea("Summary", this.ViewData["_Video.Summary"], 2000) { Class = "ipt-t ipt-t-dft width400 height100" }%>
"> <%= Define.Get("Video_视频文件类型").HtmlEncode()%>: <%= new HtmlSelect("FileType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoFileTypeEnum), Disabled = true }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0).SelectValue(this.ViewData["_Video.FileType"])%>
"> *<%= Define.Get("Video_录制时间").HtmlEncode()%>: <%= new HtmlText("RecTime", this.ViewData["_Video.RecTime"].ToDateTime()) { Class = "ipt-t ipt-t-dft datetime " }%> <%= new HtmlYKTip("RecTime")%>
"> *<%= Define.Get("Video_文件大小").HtmlEncode()%>: <%= new HtmlText("FileSize", this.ViewData["_Video.FileSize"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%> <%= new HtmlYKTip("FileSize")%>
"> *<%= Define.Get("Video_时长(秒)").HtmlEncode() %>: <%= new HtmlText("Period", this.ViewData["_Video.Period"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Period")%>
"> *<%= Define.Get("Video_审核状态").HtmlEncode()%>: <%= new HtmlYKTip("Examine")%>
显示高级选项:
"> <%= Define.Get("Video_创建时间").HtmlEncode()%>: <%= new HtmlText("CreateTime", this.ViewData["_Video.CreateTime"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft datetime ", DefaultValue = System.DateTime.Now }%> <%= new HtmlYKTip("CreateTime")%>
"> <%= Define.Get("Video_是否加锁").HtmlEncode()%>: <%= new HtmlCheckBox("LockVideo", this.ViewData["_Video.LockVideo"], 1, 0) { Class = "" }%>
"> <%= Define.Get("Video_描述").HtmlEncode()%>: <%= new HtmlTextArea("Description", this.ViewData["_Video.Description"], 2000) { Class = "ipt-t ipt-t-dft width400 height100" }%>
"> <%= Define.Get("Video_视频转换结果").HtmlEncode()%>: <%= new HtmlSelect("VideoConvertStatus", "Value", "Key") { Disabled = true, Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum) }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0).SelectValue(this.ViewData["_Video.VideoConvertStatus"])%>
"> <%= Define.Get("Video_视频是否可以下载").HtmlEncode()%>: <%= new HtmlCheckBox("HasDownload", this.ViewData["_Video.HasDownload"], true, false) { Class = "" }%>
"> <%= Define.Get("Video_版权").HtmlEncode()%>: <%= new HtmlYKTip("Copyright")%>
"> <%= Define.Get("Video_观看权限").HtmlEncode()%>: <%----%> <%= new HtmlYKTip("Share")%>
"> <%= Define.Get("Video_教师比例").HtmlEncode()%>: <%= new HtmlText("TeacherRatio", this.ViewData["_Video.TeacherRatio"]) { Class = "ipt-t ipt-t-dft " }%>% <%= new HtmlYKTip("TeacherRatio")%>
"> <%= Define.Get("Video_学生比例").HtmlEncode()%>: <%= new HtmlText("StudentRatio", this.ViewData["_Video.StudentRatio"]) { Class = "ipt-t ipt-t-dft " }%>% <%= new HtmlYKTip("StudentRatio")%>
"> <%= Define.Get("Video_转换率").HtmlEncode()%>: <%= new HtmlText("TransferRatio", this.ViewData["_Video.TransferRatio"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%>% <%= new HtmlYKTip("TransferRatio")%>
"> <%= Define.Get("Video_授课类型").HtmlEncode()%>: <%= new HtmlSelect("TeachingType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoTeachingTypeEnum) }.InsertOption("::" + DefineEnum.选择.Define() + "::", null, 0).SelectValue(this.ViewData["_Video.TeachingType"])%> <%= new HtmlYKTip("TeachingType")%>
"> <%= Define.Get("Video_视频存放文件夹").HtmlEncode() %>: <%= new HtmlText("FioderName", this.ViewData["_Video.FioderName"], 32) { Class = "ipt-t ipt-t-dft " }%>
"> <%= Define.Get("Video_高清视频地址").HtmlEncode()%>: <%= new HtmlText("HDURL", this.ViewData["_Video.HDURL"], 256) { Class = "ipt-t ipt-t-dft " }%>
"> <%= Define.Get("Video_标清视频地址").HtmlEncode()%>: <%= new HtmlText("NRURL", this.ViewData["_Video.NRURL"], 256) { Class = "ipt-t ipt-t-dft " }%>
"> <%= Define.Get("Video_排序号")%>: "> <%= new HtmlText("SortNumber", this.ViewData["_Video.SortNumber"], 4) { Class = "ipt-t ipt-t-dft ", DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber")%>
"> <%= Define.Get("Video_状态")%>: "> <%= new HtmlCheckBox("Status", this.ViewData["_Video.Status"], 1, 0) { DefaultChecked = 0 }%>
"> <%= Define.Get("Video_是否为特殊日视频").HtmlEncode()%>: <%= new HtmlCheckBox("IsSpecial", this.ViewData["_Video.IsSpecial"], true, false) { Class = "" }%> 注:如勾选此项,请联系管理员重启平台
推荐: <% var marking0 = CreateInstance.MarkingDao.Has(AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.推荐, AVA.ResourcesPlatform.Model.Pub.MarkingMKTargetEnum.视频, this.ViewData["_Video.Guid"].ToString(null)); %> <%= new HtmlCheckBox("Marking0", marking0, 1, 0) { DefaultChecked = 0 }%>
<%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_Video"])) { Class = "hidden" }%>
<%= GetSubmitText(this.ViewData["_Video"])%>
<%= Define.Get("Video_转换当前视频").HtmlEncode()%>
<%--<% if (CreateInstance.DomainGroupResultDao.Count(l => l.ParentDomain.Guid == CookieGroup.DomainGuid && l.ParentMasterDomain.Guid != CookieGroup.DomainGuid) > 0) { %>
<%= Define.Get("Video_视频上传到上级平台").HtmlEncode()%>
<% } %>--%>
<%= DefineEnum.返_回.Define()%>
<% if (Has(this.ViewData["_Video"])) { %> <%-- --%> <% } %>
<%= Import.Script("js", "/JQueryUI/jquery-ui.min.js")%> <%= Import.Script("js", "/XhEditor/xheditor-zh-cn.min.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("js", "/FancyBox/jquery.fancybox-1.2.1.js")%> <%= Import.CSS("js", "/FancyBox/jquery.fancybox.css")%> <%= Import.Script("/ToolTip/jquery.tipsy.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.Script("/global.aspx")%> <%= Import.Script("/SelectForm.js")%> <%= Import.Script("js", "/global.js")%> <%= Import.Script("js", "/Public.js")%> <%= Import.Script("js", "/ListPublic.js")%> <%= Import.Script("js", "/Ajax/Pub/VideoAjax.js")%>