Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\Pub\Video\Edit.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Video.Edit" %> <!doctype html > <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title> <%= this.Title%></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")%> </head> <body> <div class="wrap"> <% var nav = new NavigationInstance(this) { }; nav.IsTopNav = true; %> <%= nav.ToHtml()%> <div class="container-fulid"> <div class="row"> <% nav.GetChildMenu(Request["muid"]);%> <%= nav.ToHtml()%> <div class="col-md-12 " id="content"> <div id="divMain" class="gContent"> <div class="gCnta"> <div class="gCnta-cont"> <div class="g-title-2"> <div class="ico-loading right hidden"> </div> <div title="<%= DefineEnum.?????????.Define().ToScriptTag()%>" class="ico-question right"> </div> <h3 class="txt-14"> <%= Title%></h3> <span class="txt-info">[<a href="#" onclick="GoList();return false;"><%= DefineEnum.???.Define()%></a>]</span> <span class="txt-info">[<a href="InportExcel.aspx">??????</a>]</span> </div> <div class="gWel-tab"> <div class="tabs txt-link"> <ul> <li>?????? </li> <% if (Has(this.ViewData["_Video"])) { %> <li>?????? </li> <%--<li>?????? </li>--%> <li>???????? </li> <li>?????? </li> <li>?????? </li> <li>?????? </li> <li>?????? </li> <li>ST </li> <% } %> </ul> </div> <div class="pans"> <div style="" class="panel"> <div> <form id="frmVideo" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <%--<tr style='<%= IN(this.ViewData["_Video"], "", "display:none;")%>'> <th title="<%= Define.Get("Video_UserDomainName_??????").ToScriptTag() %>"> <%= Define.Get("Video_UserDomainName_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_Video.ParentUser.ParentDomain.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_Video"], "", "display:none;")%>'> <th title="<%= Define.Get("Video_UserDomainCode_??????").ToScriptTag() %>"> <%= Define.Get("Video_UserDomainCode_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_Video.ParentUser.ParentDomain.Code"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_Video"], "", "display:none;")%>'> <th title="<%= Define.Get("Video_UserUserTypeName_?????????").ToScriptTag() %>"> <%= Define.Get("Video_UserUserTypeName_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_Video.ParentUser.ParentUserType.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr>--%> <tr> <th title="<%= Define.Get("Video_???????").ToScriptTag()%>"> <span class="required">*</span><%= Define.Get("Video_???????").HtmlEncode()%>?? </th> <td> <%= 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"])%> <a href="#selectUser" class="decoration-none" onclick="return SelectUser('#frmVideo [name=ParentUser]','#frmVideo [name=ParentUser_TrueName_UserName]')"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <%= new HtmlYKTip("ParentUser")%> </td> </tr> <tr> <th title="<%= Define.Get("Video_???????").ToScriptTag()%>"> <span class="required">*</span><%= Define.Get("Video_???????").HtmlEncode()%>?? </th> <td> <%= 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"])%> <a href="#selectCategory" class="decoration-none" onclick="return SelectCategoryLast('#frmVideo [name=ParentCategory]','#frmVideo [name=ParentCategory_Name]')"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <%= new HtmlYKTip("ParentCategory")%> </td> </tr> <tr> <th title="<%= Define.Get("Video_????????").ToScriptTag()%>"> <%= Define.Get("Video_????????").HtmlEncode()%>?? </th> <td> <%= 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"])%> <a href="#selectPress" class="decoration-none" onclick="return SelectPress('#frmVideo [name=ParentPress]','#frmVideo [name=ParentPress_Name]')"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <%= new HtmlYKTip("ParentPress")%> </td> </tr> <tr> <th title="<%= Define.Get("Video_???????").ToScriptTag()%>"> <%= Define.Get("Video_???????").HtmlEncode()%>?? </th> <td> <%= 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"])%> <a href="#selectGrade" class="decoration-none" onclick="return SelectGradeLast('#frmVideo [name=ParentGrade]','#frmVideo [name=ParentGrade_Name]')"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <%= new HtmlYKTip("ParentGrade")%> </td> </tr> <tr> <th title="<%= Define.Get("Video_????????").ToScriptTag()%>"> <%= Define.Get("Video_????????").HtmlEncode()%>?? </th> <td> <%= 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"])%> <a href="#selectLesson" class="decoration-none" onclick="return SelectLesson('#frmVideo [name=ParentLesson]','#frmVideo [name=ParentLesson_Name]',$('#frmVideo [name=ParentCategory]').val(),$('#frmVideo [name=ParentGrade]').val(),$('#frmVideo [name=ParentPress]').val())"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> </td> </tr> <tr> <th title="<%= Define.Get("Video_???????").ToScriptTag()%>"> <%= Define.Get("Video_???????").HtmlEncode()%>?? </th> <td> <%= 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)%> <%-- <ul class=""> <% for (var i = 0; i <= this.ListChannel.Count - 1; i++) { var channelMaster = this.ListChannel[i]; %> <li> <%= new HtmlLabel("Channel" + channelMaster.Guid, channelMaster.Name)%> <% if (i == 0) { %> <%= new HtmlYKTip("Channel")%> <% } %> </li> <% foreach (var channel in channelMaster._ListChannel) { %> <li style="padding-left: 40px;"> <%= 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")%> <% } %> </li> <% } } %> </ul>--%> <script type="text/javascript"> //????????? $(".ChannelMaster").bind("click", function () { if (this.checked == false) { $(".ChannelItem" + this.id).removeAttr("checked"); } }) //????????? $(".ChannelItem").bind("click", function () { if (this.checked == true) { $(".ChannelMaster" + this.lang).attr("checked", "checked"); } else { if ($(".ChannelItemChannel" + this.lang + ":checked").length > 0) { $(".ChannelMaster" + this.lang).attr("checked", "checked"); } else { $(".ChannelMaster" + this.lang).removeAttr("checked"); } } }) </script> <%--<%= new HtmlYKTip("ParentChannel") %>--%> </td> </tr> <%--<tr style='<%= IN(this.ViewData["_Video.ParentLesson"], "", "display:none;")%>'> <th title="<%= Define.Get("Video_LessonTextbookPressName_????????").ToScriptTag() %>"> <%= Define.Get("Video_LessonTextbookPressName_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_Video.ParentLesson.ParentTextbook.ParentPress.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_Video.ParentLesson"], "", "display:none;")%>'> <th title="<%= Define.Get("Video_LessonTextbookGradeName_??????").ToScriptTag() %>"> <%= Define.Get("Video_LessonTextbookGradeName_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_Video.ParentLesson.ParentTextbook.ParentGrade.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr style='<%= IN(this.ViewData["_Video.ParentLesson"], "", "display:none;")%>'> <th title="<%= Define.Get("Video_LessonTextbookCategoryName_?????????").ToScriptTag() %>"> <%= Define.Get("Video_LessonTextbookCategoryName_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText(null, this.ViewData["_Video.ParentLesson.ParentTextbook.ParentCategory.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr>--%> <tr style='<%= IN(this.ViewData["_Video.ParentLesson"], "", "display:none;")%>'> <th title="<%= Define.Get("Video_LessonTextbookName_??????").ToScriptTag()%>"> <%= Define.Get("Video_LessonTextbookName_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText(null, this.ViewData["_Video.ParentLesson.ParentTextbook.Name"]) { ReadOnly = true, Disabled = true, Class = "ipt-t ipt-t-dft" }%> </td> </tr> <tr> <th title="<%= Define.Get("Video_???").ToScriptTag()%>"> <%= Define.Get("Video_???").HtmlEncode()%>?? </th> <td> <%= new HtmlHidden("Cover", ViewData["_Video.Cover"])%> <%= new HtmlImg(SettingGroup.NonePic) { Class = "default-image" }%> <br /> <a href="#deleteCover" class="delete-image decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <a href="#uploadCover" class="decoration-none" onclick="return UploadFile('#frmVideo [name=Cover]','<%= Define.Get("Video_Cover_?????????")%>','0','<%= SettingGroup.VideoUploadPath%>','','960', '540')"><span class="txt-info">[<%= DefineEnum.??????.Define()%>]</span></a> </td> </tr> <tr> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <span class="required">*</span><%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("Name", this.ViewData["_Video.Name"]) { Class = "ipt-t ipt-t-dft ", Width = 400 }%> <%= new HtmlYKTip("Name")%> </td> </tr> <%if (SettingGroup.HasWeike) { %> <tr> <th title="<%= Define.Get("Video_???????????").ToScriptTag()%>"> <%= Define.Get("Video_???????????").HtmlEncode()%>?? </th> <td> <%= new HtmlCheckBox("IsWeiKe", this.ViewData["_Video.IsWeiKe"], true, false) { Class = "" }%> </td> </tr> <% } %> <% if (Has(this.ViewData["_Video"])) { %> <tr> <th title="<%= Define.Get("Video_????????").ToScriptTag()%>"> <%= Define.Get("Video_????????").HtmlEncode()%>?? </th> <td> <%= 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"])%> </td> </tr> <% } %> <tr> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= 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"])%> <a href="#selectApplication" class="decoration-none" onclick="return SelectApplication('#frmVideo [name=ParentApplication]','#frmVideo [name=ParentApplication_Title]')"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> </td> </tr> <tr> <th title="<%= Define.Get("Video_?????").ToScriptTag()%>"> <%= Define.Get("Video_?????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("Spreaker", this.ViewData["_Video.Spreaker"]) { Class = "ipt-t ipt-t-dft ", Width = 400 }%> <%= new HtmlYKTip("Spreaker")%> </td> </tr> <tr> <th title="<%= Define.Get("Video_?????").ToScriptTag()%>"> <%= Define.Get("Video_?????").HtmlEncode()%>?? </th> <td> <%= 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 }%> <a href="javascript:return false;" class="download-file decoration-none hidden" target="_blank"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <br /> <div> <%= 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()%> --%> <script type="text/javascript"> function UploadFinishedFileName(fileName, fileSize) { if (fileName != "") { var suffix = fileName.substring(fileName.lastIndexOf(".")); var name = fileName.substring(0, fileName.lastIndexOf(".") - 24); $("#frmVideo [Name=FileNameShow]").val(name+suffix); } $("#frmVideo [Name=FileName]").val(fileName); $("#frmVideo [Name=FileSize]").val(fileSize) if (fileName.toLowerCase().indexOf(".asf") != -1) { $("#frmVideo [Name=FileType]").val("1"); } else if (fileName.toLowerCase().indexOf(".wmv") != -1) { $("#frmVideo [Name=FileType]").val("2"); } else if (fileName.toLowerCase().indexOf(".flv") != -1) { $("#frmVideo [Name=FileType]").val("3"); } else if (fileName.toLowerCase().indexOf(".rm") != -1) { $("#frmVideo [Name=FileType]").val("4"); } else if (fileName.toLowerCase().indexOf(".rmvb") != -1) { $("#frmVideo [Name=FileType]").val("5"); } else if (fileName.toLowerCase().indexOf(".avi") != -1) { $("#frmVideo [Name=FileType]").val("6"); } else if (fileName.toLowerCase().indexOf(".mp4") != -1) { $("#frmVideo [Name=FileType]").val("7"); } else { $("#frmVideo [Name=FileType]").val("0"); } } </script> </div> </td> </tr> <tr> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("CaptionsFile", this.ViewData["_Video.CaptionsFile"], 256) { Class = "ipt-t ipt-t-dft", Width = 400, ReadOnly = true }%> <a href="javascript:return false;" class="download-file decoration-none hidden" target="_blank"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <br /> <div> <%= new SingleUploadInstance(this) { UploadTag = "CaptionsFile", Accept = ".srt", UploadControlName = "?????????" }.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "CaptionsFile", InitParams = "FileFilter=*.srt|*.srt,SelectFiles=??????????????,Upload=?????????" }.ToHtml()%> --%> <script type="text/javascript"> function UploadFinishedCaptionsFile(captionsFile, fileSize) { $("#frmVideo [Name=CaptionsFile]").val(captionsFile); } </script> </div> </td> </tr> <tr> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("TrainYear", this.ViewData["_Video.TrainYear"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("TrainYear")%> </td> </tr> <tr> <th title="<%= Define.Get("Video_????").ToScriptTag()%>"> <%= Define.Get("Video_????").HtmlEncode()%>?? </th> <td> <%= new HtmlTextArea("Summary", this.ViewData["_Video.Summary"], 2000) { Class = "ipt-t ipt-t-dft width400 height100" }%> </td> </tr> <tr> <th title="<%= Define.Get("Video_?????????").ToScriptTag()%>"> <%= Define.Get("Video_?????????").HtmlEncode()%>?? </th> <td> <%= new HtmlSelect("FileType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoFileTypeEnum), Disabled = true }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_Video.FileType"])%> </td> </tr> <tr> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <span class="required">*</span><%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("RecTime", this.ViewData["_Video.RecTime"].ToDateTime()) { Class = "ipt-t ipt-t-dft datetime " }%> <%= new HtmlYKTip("RecTime")%> </td> </tr> <tr> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <span class="required">*</span><%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("FileSize", this.ViewData["_Video.FileSize"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%> <%= new HtmlYKTip("FileSize")%> </td> </tr> <%-- <tr> <th title="<%= Define.Get("Video_????????").ToScriptTag() %>"> <span class="required">*</span><%= Define.Get("Video_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Period", this.ViewData["_Video.Period"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Period")%> </td> </tr>--%> <tr> <th title="<%= Define.Get("Video_???????").ToScriptTag()%>"> <span class="required">*</span><%= Define.Get("Video_???????").HtmlEncode()%>?? </th> <td> <label for="Video_Examine_0"> <%= new HtmlRadio("Examine", 0, null) { ID = "Video_Examine_0", Class = "", Checked = (this.ViewData["_Video.Examine"].ToIntN() == 0 ? true : false) }%><%= Define.Get("Video_Examine_??????")%></label> <label for="Video_Examine_1"> <%= new HtmlRadio("Examine", 1, null) { ID = "Video_Examine_1", Class = "", Checked = (this.ViewData["_Video.Examine"].ToIntN() == 1 ? true : false) }%><%= Define.Get("Video_Examine_??????")%></label> <label for="Video_Examine_2"> <%= new HtmlRadio("Examine", 2, null) { ID = "Video_Examine_2", Class = "", Checked = (this.ViewData["_Video.Examine"].ToIntN() == 2 ? true : false) }%><%= Define.Get("Video_Examine_????????")%></label> <%= new HtmlYKTip("Examine")%> </td> </tr> <tr> <th><a href="#" id="toggleHidden">???????????</a> <script> $("docuemnt").ready(function () { $(".hidy").hide(); $("#toggleHidden").click(function (e) { e.preventDefault(); $(".hidy").toggle(); }); }); </script> </th> <td></td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("CreateTime", this.ViewData["_Video.CreateTime"].ToDateTimeN().ToLongDate()) { Class = "ipt-t ipt-t-dft datetime ", DefaultValue = System.DateTime.Now }%> <%= new HtmlYKTip("CreateTime")%> </td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlCheckBox("LockVideo", this.ViewData["_Video.LockVideo"], 1, 0) { Class = "" }%> </td> </tr> <tr class="ParentLockUser" style="display: none;"> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("ParentLockUser_TrueName_UserName", IN(this.ViewData["_Video.ParentLockUser"], this.ViewData["_Video.ParentLockUser.TrueName"] + "[" + this.ViewData["_Video.ParentLockUser.UserName"] + "]")) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmVideo [name=ParentLockUser]","ParentLockUser");" }%> <%= new HtmlHidden("ParentLockUser", this.ViewData["_Video.ParentLockUser.Guid"])%> <a href="#selectLockUser" class="decoration-none" onclick="return SelectUser('#frmVideo [name=ParentLockUser]','#frmVideo [name=ParentLockUser_TrueName_UserName]')"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define()%>]</span></a> <%= new HtmlYKTip("ParentLockUser")%> </td> </tr> <tr class="ParentLockUser" style="display: none;"> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("LockDateTime", this.ViewData["_Video.LockDateTime"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%> </td> </tr> <tr class="ParentLockUser" style="display: none;"> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlTextArea("LockDescription", this.ViewData["_Video.LockDescription"], 2000) { Class = "ipt-t ipt-t-dft width400 height100" }%> </td> </tr> <tr> <th title="<%= Define.Get("Video_???").ToScriptTag()%>"> <%= Define.Get("Video_???").HtmlEncode()%>?? </th> <td> <%= new HtmlTextArea("Description", this.ViewData["_Video.Description"], 2000) { Class = "ipt-t ipt-t-dft width400 height100" }%> </td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_?????????").ToScriptTag()%>"> <%= Define.Get("Video_?????????").HtmlEncode()%>?? </th> <td> <%= new HtmlSelect("VideoConvertStatus", "Value", "Key") { Disabled = true, Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoVideoConvertStatusEnum) }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_Video.VideoConvertStatus"])%> </td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_????????????").ToScriptTag()%>"> <%= Define.Get("Video_????????????").HtmlEncode()%>?? </th> <td> <%= new HtmlCheckBox("HasDownload", this.ViewData["_Video.HasDownload"], true, false) { Class = "" }%> </td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_???").ToScriptTag()%>"> <%= Define.Get("Video_???").HtmlEncode()%>?? </th> <td> <label for="Video_Copyright_0"> <%= new HtmlRadio("Copyright", 0, null) { ID = "Video_Copyright_0", Class = "", Checked = (this.ViewData["_Video.Copyright"] == null || this.ViewData["_Video.Copyright"].ToIntN() == 0 ? true : false) }%><%= Define.Get("Video_Copyright_???")%></label> <label for="Video_Copyright_1"> <%= new HtmlRadio("Copyright", 1, null) { ID = "Video_Copyright_1", Class = "", Checked = (this.ViewData["_Video.Copyright"].ToIntN() == 1 ? true : false) }%><%= Define.Get("Video_Copyright_???")%></label> <label for="Video_Copyright_2"> <%= new HtmlRadio("Copyright", 2, null) { ID = "Video_Copyright_2", Class = "", Checked = (this.ViewData["_Video.Copyright"].ToIntN() == 2 ? true : false) }%><%= Define.Get("Video_Copyright_????????")%></label> <label for="Video_Copyright_3"> <%= new HtmlRadio("Copyright", 3, null) { ID = "Video_Copyright_3", Class = "", Checked = (this.ViewData["_Video.Copyright"].ToIntN() == 3 ? true : false) }%><%= Define.Get("Video_Copyright_????????")%></label> <label for="Video_Copyright_4"> <%= new HtmlRadio("Copyright", 4, null) { ID = "Video_Copyright_4", Class = "", Checked = (this.ViewData["_Video.Copyright"].ToIntN() == 4 ? true : false) }%><%= Define.Get("Video_Copyright_???")%></label> <%= new HtmlYKTip("Copyright")%> </td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <label for="Video_Share_0"> <%= new HtmlRadio("Share", 0, null) { ID = "Video_Share_0", Class = "", Checked = (this.ViewData["_Video.Share"].ToIntN() == 0 ? true : false) }%><%= Define.Get("Video_Share_???")%></label> <%--<label for="Video_Share_1"> <%= new HtmlRadio("Share", 1, null) { ID = "Video_Share_1", Class = "", Checked = (this.ViewData["_Video.Share"].ToIntN() == 1 ? true : false) }%><%= Define.Get("Video_Share_???") %></label>--%> <label for="Video_Share_2"> <%= new HtmlRadio("Share", 2, null) { ID = "Video_Share_2", Class = "", Checked = (this.ViewData["_Video.Share"] == null || this.ViewData["_Video.Share"].ToIntN() == 2 ? true : false) }%><%= Define.Get("Video_Share_???")%></label> <label for="Video_Share_3"> <%= new HtmlRadio("Share", 3, null) { ID = "Video_Share_3", Class = "", Checked = (this.ViewData["_Video.Share"] == null || this.ViewData["_Video.Share"].ToIntN() == 3 ? true : false) }%><%= Define.Get("Video_Share_??????")%></label> <%= new HtmlYKTip("Share")%> </td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("TeacherRatio", this.ViewData["_Video.TeacherRatio"]) { Class = "ipt-t ipt-t-dft " }%>% <%= new HtmlYKTip("TeacherRatio")%> </td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("StudentRatio", this.ViewData["_Video.StudentRatio"]) { Class = "ipt-t ipt-t-dft " }%>% <%= new HtmlYKTip("StudentRatio")%> </td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_?????").ToScriptTag()%>"> <%= Define.Get("Video_?????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("TransferRatio", this.ViewData["_Video.TransferRatio"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%>% <%= new HtmlYKTip("TransferRatio")%> </td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_??????").ToScriptTag()%>"> <%= Define.Get("Video_??????").HtmlEncode()%>?? </th> <td> <%= 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")%> </td> </tr> <%-- <tr> <th title="<%= Define.Get("Video_???????????").ToScriptTag() %>"> <%= Define.Get("Video_???????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("FioderName", this.ViewData["_Video.FioderName"], 32) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> --%> <tr> <th title="<%= Define.Get("Video_?????????").ToScriptTag()%>"> <%= Define.Get("Video_?????????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("HDURL", this.ViewData["_Video.HDURL"], 256) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("Video_?????????").ToScriptTag()%>"> <%= Define.Get("Video_?????????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("NRURL", this.ViewData["_Video.NRURL"], 256) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr class="hidy"> <th title="<%= Define.Get("Video_?????").ToScriptTag()%>"> <%= Define.Get("Video_?????")%>?? </th> <td class="tooltip" title="<%= Define.Get("Video_SortNumber_????????????????????????").ToScriptTag()%>"> <%= new HtmlText("SortNumber", this.ViewData["_Video.SortNumber"], 4) { Class = "ipt-t ipt-t-dft ", DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber")%> </td> </tr> </table> </div> <div style="margin-top: -1px;" class="ln-thin ln-c-mid"> </div> <table class="g-table-cntacomm"> <tr> <th title="<%= Define.Get("Video_????").ToScriptTag()%>"> <%= Define.Get("Video_????")%>?? </th> <td class="tooltip" title="<%= Define.Get("Video_Status_????????????").ToScriptTag()%>"> <%= new HtmlCheckBox("Status", this.ViewData["_Video.Status"], 1, 0) { DefaultChecked = 0 }%> </td> </tr> <tr> <th title="<%= Define.Get("Video_????????????").ToScriptTag()%>"> <%= Define.Get("Video_????????????").HtmlEncode()%>?? </th> <td> <%= new HtmlCheckBox("IsSpecial", this.ViewData["_Video.IsSpecial"], true, false) { Class = "" }%> <span>???????????????????????????</span> </td> </tr> <tr> <th>????? </th> <td> <% 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 }%> </td> </tr> <tr> <th></th> <td> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_Video"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_Video"])%></span> </div> <div onclick="ConvertVideo(this);" class="btn btn-dft"> <span> <%= Define.Get("Video_?????????").HtmlEncode()%></span> </div> <%--<% if (CreateInstance.DomainGroupResultDao.Count(l => l.ParentDomain.Guid == CookieGroup.DomainGuid && l.ParentMasterDomain.Guid != CookieGroup.DomainGuid) > 0) { %> <div onclick="DomainUpload(this);" class="btn btn-dft"> <span> <%= Define.Get("Video_??????????????").HtmlEncode()%></span> </div> <% } %>--%> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define()%></span> </div> </td> </tr> </table> </form> </div> </div> <% if (Has(this.ViewData["_Video"])) { %> <div style="display: none;" class="panel"> <div> <table class="g-table-cntacomm"> <tr> <th title="<%= Define.Get("Video_????????").ToScriptTag()%>"> <%= Define.Get("Video_????????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("VideoView", this.ViewData["_Video.VideoView"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%> </td> </tr> <tr> <th title="<%= Define.Get("Video_?????").ToScriptTag()%>"> <%= Define.Get("Video_?????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("CommentCount", this.ViewData["_Video.CommentCount"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%> </td> </tr> <tr> <th title="<%= Define.Get("Video_?????").ToScriptTag()%>"> <%= Define.Get("Video_?????").HtmlEncode()%>?? </th> <td> <%= new HtmlText("CollectCount", this.ViewData["_Video.CollectCount"]) { Class = "ipt-t ipt-t-dft ", ReadOnly = true }%> </td> </tr> </table> </div> </div> <%-- <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../VideoChannel/ListIFrame.aspx?VideoGuid=<%= this.PrimaryKey %>"></iframe> </div> </div>--%> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../VideoTimeInfo/ListIFrame.aspx?VideoGuid=<%= this.PrimaryKey%>"></iframe> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../VideoAttachment/ListIFrame.aspx?VideoGuid=<%= this.PrimaryKey%>"></iframe> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../VideoTag/ListIFrame.aspx?VideoGuid=<%= this.PrimaryKey%>"></iframe> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../VideoTimeInfoOther/ListIFrame.aspx?VideoGuid=<%= this.PrimaryKey%>"></iframe> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../VideoSW/ListIFrame.aspx?VideoGuid=<%= this.PrimaryKey%>"></iframe> </div> </div> <div style="display: none; padding: 0px 0px 0px 0px;" class="panel"> <div> <iframe class="ifrmtab" width="100% " height="100% " frameborder="0" scrolling="auto" title="../VideoSWPattern/ListIFrame.aspx?VideoGuid=<%= this.PrimaryKey%>"></iframe> </div> </div> <% } %> </div> </div> </div> </div> </div> </div> </div> </div> </div> </body> </html> <%= 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")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmVideo" }); //????? $("#frmVideo [name=SortNumber]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("Video_SortNumber_???????????").ToScriptChar()%>", regex: "<%= Define.Get("Video_SortNumber_???????????").ToScriptChar()%>" } }); //??????? $("#frmVideo [name=ParentUser]").formValidator({ targetFocus: "#frmVideo [name=ParentUser_TrueName_UserName]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Video_UserGuid_????????????").ToScriptChar()%>" } }); //??????? $("#frmVideo [name='ParentCategory']").formValidator({ targetFocus: "#frmVideo [name=ParentCategory_Name]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Video_CategoryGuid_????????????").ToScriptChar()%>" } }); //???????? //$("#frmVideo [name=ParentPress]").formValidator({ // targetFocus: "#frmVideo [name=ParentPress_Name]", // validatorGroup: "Edit", // rules: // { // required: null // }, // message: // { // required: "<%= Define.Get("Video_PressGuid_?????????????").ToScriptChar()%>" // } // }); //??????? //$("#frmVideo [name=ParentGrade]").formValidator({ // targetFocus: "#frmVideo [name=ParentGrade_Name]", // validatorGroup: "Edit", // rules: // { // required: null // }, // message: // { // required: "<%= Define.Get("Video_GradeGuid_????????????").ToScriptChar()%>" // } //}); //?????? $("#frmVideo [name=Name]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Video_Name_???????????").ToScriptChar()%>" } }); //????? $("#frmVideo [name=FileName]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("Video_FileName_?????????").ToScriptChar()%>" } }); //?????? $("#frmVideo [name=FileSize]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("Video_FileSize_???????????").ToScriptChar()%>" } }); //???????? //$("#frmVideo [name=Period]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null, // regex: "num1" // }, // message: // { // required: "<%= Define.Get("Video_Period_????????").ToScriptChar()%>", // regex: "<%= Define.Get("Video_Period_???????????").ToScriptChar()%>" // } //}); //??? $("#frmVideo [name=Copyright]").formValidator({ validatorGroup: "Edit", rules: { min: 1 }, message: { min: "<%= Define.Get("Video_Copyright_????????").ToScriptChar()%>" } }); //?????? $("#frmVideo [name=Share]").formValidator({ validatorGroup: "Edit", rules: { min: 1 }, message: { min: "<%= Define.Get("Video_Share_???????????").ToScriptChar()%>" } }); //??????? $("#frmVideo [name=Examine]").formValidator({ validatorGroup: "Edit", rules: { min: 1 }, message: { min: "<%= Define.Get("Video_Examine_????????????").ToScriptChar()%>" } }); //?????? $("#frmVideo [name=RecTime]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "datetime" }, message: { required: "<%= Define.Get("Video_RecTime_???????????").ToScriptChar()%>", regex: "<%= Define.Get("Video_RecTime_??????????????").ToScriptChar()%>" } }); //?????? $("#frmVideo [name=CreateTime]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "datetime" }, message: { required: "<%= Define.Get("Video_CreateTime_???????????").ToScriptChar()%>", regex: "<%= Define.Get("Video_CreateTime_??????????????").ToScriptChar()%>" } }); $.validator.initConfig({ validatorGroup: "ParentLockUser", form: "#frmVideo" }); //?????? $("#frmVideo [name=ParentLockUser]").formValidator({ targetFocus: "#frmVideo [name=ParentLockUser_TrueName_UserName]", validatorGroup: "ParentLockUser", rules: { required: null }, message: { required: "<%= Define.Get("Video_LockUserGuid_???????????").ToScriptChar()%>" } }); //?????? $("#frmVideo [name=TeacherRatio]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("Video_TeacherRatio_????????????").ToScriptChar()%>" } }); //?????? $("#frmVideo [name=StudentRatio]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("Video_StudentRatio_????????????").ToScriptChar()%>" } }); //????? $("#frmVideo [name=TransferRatio]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("Video_TransferRatio_???????????").ToScriptChar()%>" } }); //?????? $("#frmVideo [name=TeachingType]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("Video_TeachingType_????????????").ToScriptChar()%>" } }); //?????? $("#frmVideo [name=TrainYear]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("Video_TrainYear_????????????").ToScriptChar()%>" } }); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { VideoAjax.Insert($("#frmVideo"), send, function (json) { document.getElementById("frmVideo").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar()%>"); window.location.href = "Edit.aspx?Guid=" + json.Data; }); }; //??? function Update(send) { VideoAjax.Update($("#frmVideo"), send, function (json) { document.getElementById("frmVideo").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar()%>"); window.location.href = "Edit.aspx?Guid=" + json.Data; }); }; //??? function Delete(send) { var key = document.getElementById("frmVideo").KEY.value; VideoAjax.Delete(key, send, function (json) { GoList(); }); }; //?????? function ConvertVideo(send) { var key = document.getElementById("frmVideo").KEY.value; VideoAjax.ConvertVideo(key, send, function (json) { alert("<%= Define.Get("Video_??????????????").ToScriptChar()%>"); //window.location.href = "Edit.aspx?Guid=" + json.Data; }); }; //?????? function DomainUpload(send) { var key = document.getElementById("frmVideo").KEY.value; VideoAjax.DomainUpload(key, send, function (json) { alert("<%= Define.Get("Video_??????????????").ToScriptChar()%>"); //window.location.href = "Edit.aspx?Guid=" + json.Data; }); }; </script> <script type="text/javascript"> //?????? //??????????? //??? $("#frmVideo [name=Cover]").siblings("img").attr("src", Global.Site + "<%= SettingGroup.VideoUploadPath%>" + $("#frmVideo [name=Cover]").val()); //??????????? </script> <script type="text/javascript"> //?????? //???????? $("#frmVideo [name=FileName]").siblings(".download-file").attr("href", "/Tools/Video/DownloadVideo.aspx?Guid=<%=this.ViewData["_Video.Guid"]%>&DownloadType=HD"); //???????? <% var captionsFilePath = SettingGroup.VideoUploadPath + this.ViewData["_Video.Guid"] + "/" + this.ViewData["_Video.CaptionsFile"]; if (System.IO.File.Exists(Server.MapPath(captionsFilePath))) { %> $("#frmVideo [name=CaptionsFile]").siblings(".download-file").attr("href", Global.Site + "<%= captionsFilePath%>"); <% } else { %> $("#frmVideo [name=CaptionsFile]").siblings(".download-file").attr("href", Global.Site + "<%= SettingGroup.VideoUploadPath + this.ViewData["_Video.Guid"] + "/" + this.ViewData["_Video.CaptionsFileGuid"]%>"); <% } %> //????????? $(function () { $("#frmVideo [name=Lock]").bind("click", function () { AutoValidateParentLockUser(); }); AutoValidateParentLockUser(); }) function AutoValidateParentLockUser() { var send = document.getElementById("frmVideo").elements["LockVideo"]; if (send.checked == true) { $("#frmVideo .ParentLockUser").show(); $.validator.addValid("#frmVideo [name=ParentLockUser]", "ParentLockUser", "Edit"); } else { $("#frmVideo .ParentLockUser").hide(); $.validator.removeValid("#frmVideo [name=ParentLockUser]", "Edit"); } } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de