Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyVideoUpload.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideoUpload" %> <%= new MyVideoNavTopInstance(this) { Local= MyVideoNavTopItem.?????? }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title">??????</span> </div> <div class="userInput body"> <form id="frmVideoUpload" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="table-cleaned"> <tr> <td class="label-td"><span class="label"><span class="required">*</span>?????</span></td> <td> <%= new HtmlText("Name", ViewData.Val("ParentApplication.Title", this.RecordVideo), 256) { }%> <%= new HtmlYKTip("Name")%> </td> </tr> <tr> <td class="label-td"><span class="label">??????</span></td> <td> <% var speaker = ViewData.Val("ParentApplication.Speaker", this.RecordVideo); if (speaker == null) { speaker = this.UserName; } %> <%= new HtmlText("Spreaker", speaker, 256) { }%> </td> </tr> <% if (this.RecordVideo == null) { %> <tr> <td class="label-td"><span class="label "><span class="required">*</span>??????<a href="#" title="????? mp4; wmv; asf; avi; flv ???H264?????? ">?</a>??</span></td> <td> <%= new HtmlHidden("FileName", null) { Class = "ipt-t ipt-t-dft " }%> <div> <%= new SingleUploadInstance(this) { UploadTag = "FileName", Accept = CreateInstance.DomainInfoDao.THIS().UploadVideoType.ToUpper().Replace("*","").Replace(";",","), UploadControlName="?????????"}.ToHtml()%> <%-- <%= 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) %> <script type="text/javascript"> function UploadFinishedFileName(fileName, fileSize) { $("#frmVideoUpload [Name=FileName]").val(fileName); if ($("#frmVideoUpload [Name=Name]").val() == "") { var name = fileName.substring(0, fileName.lastIndexOf(".") - 24); $("#frmVideoUpload [Name=Name]").val(name); } $("#frmVideoUpload [Name=FileSize]").val(fileSize) if (fileName.toLowerCase().indexOf(".asf") != -1) { $("#frmVideoUpload [Name=FileType]").val("1"); } else if (fileName.toLowerCase().indexOf(".wmv") != -1) { $("#frmVideoUpload [Name=FileType]").val("2"); } else if (fileName.toLowerCase().indexOf(".flv") != -1) { $("#frmVideoUpload [Name=FileType]").val("3"); } else if (fileName.toLowerCase().indexOf(".rm") != -1) { $("#frmVideoUpload [Name=FileType]").val("4"); } else if (fileName.toLowerCase().indexOf(".rmvb") != -1) { $("#frmVideoUpload [Name=FileType]").val("5"); } else if (fileName.toLowerCase().indexOf(".avi") != -1) { $("#frmVideoUpload [Name=FileType]").val("6"); } else if (fileName.toLowerCase().indexOf(".mp4") != -1) { $("#frmVideoUpload [Name=FileType]").val("7"); } else { $("#frmVideoUpload [Name=FileType]").val("0"); } //????????? if ($("#frmVideoUpload [name=FileName]").val() != "") { $("#btnUploadVideoToVideo").show(); $("#frmVideoUpload [name=VideoUploadPath]").val("<%= SettingGroup.UploadPath %>"); } else { $("#btnUploadVideoToVideo").hide(); $("#frmVideoUpload [name=VideoUploadPath]").val("<%= SettingGroup.UploadPath %>"); } if (document.getElementById("AutoUpload") != null && document.getElementById("AutoUpload").checked == true) { //??? $("#frmVideoUpload :submit").click(); } } </script> <%= new HtmlYKTip("FileName")%> </div> <%--<%= new HtmlAnchor("????????????????????????????????????????") { Href=Request.WebPath()+"/Resource/Silverlight.zip" }%>--%> </td> </tr> <% } else { //???????????? %> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlHidden("RecordVideoGuid", this.RecordVideo.Guid) { }%> <%= new HtmlText("FileName", this.RecordVideo.FileName, 256) { }%> <%= new HtmlHidden("VideoUploadPath",SettingGroup.VideoUploadPath) %> <%= new HtmlHidden("RecordVideoUploadPath",SettingGroup.RecordVideoUploadPath + this.RecordVideo.ParentUser.Guid) %> <%= new HtmlYKTip("FileName")%> </td> </tr> <% } %> <tr style="display: none;"> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlSelect("FileType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoFileTypeEnum), Disabled = true }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(ViewData.Val("FileType", this.RecordVideo).ToString(null))%> </td> </tr> <tr style="display: none;"> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("FileSize", ViewData.Val("FileSize", this.RecordVideo).ToString(null)) { ReadOnly = true }%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlSelect("ParentCategory", "Name", "Guid", "Guid") { Option = this.ListAllCategory, OptGroup= CreateInstance.CategoryDao.GetOptGroup(this.ListAllCategory), OnChange = "GetTextbook();",SelectedValue = this.RecordCategory != null ? this.RecordCategory.Guid : CookieGroup.ListUserCategory.FirstResult() }.InsertOption("::???::", "", 0) %> <%= new HtmlYKTip("ParentCategory") { }%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required"><%= CreateInstance.ConfigDao.VideoGradeTag("") != null ? "*" : "" %></span>????????</span></td> <td> <%= new HtmlSelect("ParentGrade", "Name", "Guid", "Guid") { Option = this.ListAllGrade, OptGroup= CreateInstance.GradeDao.GetOptGroup(this.ListAllGrade), DefaultSelectValue = "", OnChange = "GetTextbook();" }.InsertOption("::???::", "", 0)%> <%= new HtmlYKTip("ParentGrade") { }%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required"><%= CreateInstance.ConfigDao.VideoPressTag("") != null ? "*" : "" %></span>??????</span></td> <td> <%= new HtmlSelect("ParentPress", "Name", "Guid", "Guid") { Option = this.ListAllPress, DefaultSelectValue = "", OnChange = "GetTextbook();" }.InsertOption("::???::", "", 0)%> <%= new HtmlYKTip("ParentPress") { }%> </td> </tr> <tr> <td class="label-td"><span class="label">????<%= Define.Get("Client_???")%>??</span></td> <td> <%= new HtmlSelect("ParentAlbum", "Name", "Guid", "Guid") { Option = CreateInstance.AlbumDao.Where(l=>l.Status == (int)AVA.ResourcesPlatform.Model.Pub.AlbumStatusEnum.??? && l.Examine == (int)AVA.ResourcesPlatform.Model.Pub.AlbumExamineEnum.?????? &&(l.ParentUser.Guid == CookieGroup.UserCode || l.OpenUpload == (int)AVA.ResourcesPlatform.Model.Pub.AlbumOpenUploadEnum.??)).ToList()}.InsertOption("::???::", "", 0) %> </td> </tr> <%if (SettingGroup.Setting().VideoRangeControl == true) { %> <tr> <td class="label-td"><span class="label">???????????</span></td> <td> <%= new HtmlCheckBox("PersonPageView", false ,true, false) { ID = "PersonPageView", Class="VideoViewRange", Lang="?????????"}%> <%= new HtmlLabel("PersonPageViewLabel", "?????????")%> <%= new HtmlCheckBox("SchoolPageView",false, true, false) { ID = "SchoolPageView", Class="VideoViewRange", Lang="?????????"}%> <%= new HtmlLabel("SchoolPageViewLabel", "?????????")%> <%= new HtmlCheckBox("AreaPageView", false,true, false) { ID = "AreaPageView", Class="VideoViewRange", Lang="????????"}%> <%= new HtmlLabel("AreaPageViewLabel", "????????")%> <span class="label">????????????????????????????????????</span> </td> </tr> <% } %> <%if (SettingGroup.HasWeike) { %> <tr> <td class="label-td"><span class="label">?????????</span></td> <td> <%= new HtmlCheckBox("IsWeiKe", false, 1, 0) { Class="IsWeiKe"}%> </td> </tr> <% } %> <%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();//?????? %> <tr> <td class="label-td"><span class="label">????????</span></td> <td> <ul class="columns column4" style="margin:0px;" id="ckTag"> <%foreach (var item in listTagCK) { %> <li> <%= new HtmlCheckBox("Tag", false, item.Guid, "") { ID = "Tag" + item.Guid, Class="Tag", Lang=item.Name}%> <%= new HtmlLabel("Tag" + item.Guid, item.Name)%> </li> <% } %> </ul> <ul class="columns column4" style="margin:0px;display:none;" id="wkTag"> <%foreach (var item in listTagWK) { %> <li> <%= new HtmlCheckBox("Tag", false, item.Guid, "") { ID = "Tag" + item.Guid, Class="Tag", Lang=item.Name}%> <%= new HtmlLabel("Tag" + item.Guid, item.Name)%> </li> <% } %> </ul> </td> </tr> <% } %> <tr> <td class="label-td"><span class="label">????????(" ")?????</span></td> <td> <%= new HtmlText("VideoTag", null, 256) { Class="VideoTag", Width=800 }%> </td> </tr> <tr> <td class="label-td"><span class="label">?????</span></td> <td> <%= new HtmlTextArea("Summary", null, 2000)%> </td> </tr> </table> <div class="accordion_bl" style="background: #FCFCFC; margin-bottom: 20px;"> <div class="accordion"> <div class="accordion-heading "> <a href="#slide-con_AlbumInfo" data-parent="" data-toggle="collapse" class="accordion-toggle ">?????? <i class="ico oct"></i> </a> </div> <div class="accordion-body collapse " id="slide-con_AlbumInfo"> <div class=" accordion-inner"> <table border="0" cellpadding="2px" cellspacing="2px" class="table-cleaned"> <tr> <td class="label-td"><span class="label"><span class="required"><%= CreateInstance.ConfigDao.VideoCoverTag("") != null ? "*" : "" %></span>????????</span></td> <td> <table border="0"> <tr> <td> <%= new HtmlHidden("Cover", ViewData.Val("ParentApplication.Cover",this.RecordVideo)) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlImg(SettingGroup.VideoCoverL(this.RecordVideo), "") { ID = "imgCover", OnErrorImg=SettingGroup.DefaultImg,Width = 320 }%> </td> </tr> <tr> <td> <input type="button" value="??????" onclick="UploadVideoCover();" style="width: auto;" /> <input type="button" id="btnUploadVideoToVideo" value="???????????" onclick="UploadVideoToVideo();" style="width: auto; display: none;" /> <%= new HtmlYKTip("Cover")%> <script type="text/javascript"> function UploadVideoCover() { UploadFile('#frmVideoUpload [name=Cover]', '?????????', '0', '<%= SettingGroup.VideoUploadPath %>', '', '480', '300'); } $(function () { if ($("#frmVideoEdit [name=FileName]").val() != "") { $("#btnUploadVideoToVideo").show(); } else { $("#btnUploadVideoToVideo").hide(); } }); function UploadVideoToVideo() { <% if (this.RecordVideo == null) { %> UploadImage('#frmVideoUpload [name=Cover]', '?????????', '0', $("#frmVideoUpload [name=VideoUploadPath]").val(), $("#frmVideoUpload [name=FileName]").val(), '480', '300'); <% } else { //???????????????????????????????????????????????????????? %> UploadImage('#frmVideoUpload [name=Cover]', '?????????', '0', $("#frmVideoUpload [name=RecordVideoUploadPath]").val(), $("#frmVideoUpload [name=FileName]").val(), '480', '300'); <% } %> } </script> <% if (this.RecordVideo != null) { //????????????????????????????????????????????????? %> <script type="text/javascript"> $(function () { if ($("#frmVideoUpload [name=FileName]").val() != "") { $("#frmVideoUpload [name=VideoUploadPath]").val("<%= SettingGroup.RecordVideoUploadPath %><%= this.RecordVideo.ParentUser.Guid %>/"); $("#btnUploadVideoToVideo").show(); } else { $("#frmVideoUpload [name=VideoUploadPath]").val("<%= SettingGroup.UploadPath %>"); $("#btnUploadVideoToVideo").hide(); } }); </script> <% } else { %> <script type="text/javascript"> $(function () { if ($("#frmVideoUpload [name=FileName]").val() != "") { $("#btnUploadVideoToVideo").show(); } else { $("#btnUploadVideoToVideo").hide(); } }); </script> <% } %> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required"><%= CreateInstance.ConfigDao.VideoCaptionsFileTag("") != null ? "*" : "" %></span>????????</span></td> <td> <%= new HtmlHidden("CaptionsFile", null) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("CaptionsFile")%> <div> <%= new SingleUploadInstance(this) { UploadTag = "CaptionsFile", Accept = ".srt", UploadControlName="??????"}.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "CaptionsFile", InitParams = "FileFilter=*.srt|*.srt,DefaultColor=#F5F5F5F5,SelectFiles=??????????????,Upload=?????????" }.ToHtml()%> --%> <%= new HtmlHidden("VideoUploadPath",SettingGroup.VideoUploadPath) %> <script type="text/javascript"> function UploadFinishedCaptionsFile(captionsFile, fileSize) { $("#frmVideoUpload [Name=CaptionsFile]").val(captionsFile); } </script> </div> </td> </tr> <%-- <tr> <td class="label-td"></td> <td>??????????????????????????????????????????????????? </td> </tr>--%> <tr id="liTextbook" style="display: none;"> <td class="label-td"><span class="label"><span class="required"><%= CreateInstance.ConfigDao.VideoTextBookTag("") != null ? "*" : "" %></span>?????</span></td> <td><span id="spanTextbook"></span> </td> </tr> <tr id="liLesson" style="display: none;"> <td class="label-td"><span class="label"><span class="required"><%= CreateInstance.ConfigDao.VideoTextBookTag("") != null ? "*" : "" %></span>??????</span></td> <td><span id="spanLesson"></span> </td> </tr> <tr style="display: none;"> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%--?????????--%> <%= new HtmlText("RecTime", ViewData.Val("StartTime", this.RecordVideo).ToDateTimeN(DateTime.Now).ToLongDate(), 200) { }.Style(new { Width = "120px" })%> <%= new HtmlYKTip("RecTime")%> </td> </tr> <tr style="display: none;"> <td class="label-td"><span class="label"><span class="required">*</span>???(??)??</span></td> <td> <%--????????????--%> <%= new HtmlText("Period", ViewData.Val("RecLen", this.RecordVideo).ToString(null), 200) { DefaultValue="0" }.Style(new { Width = "120px" })%> <%= new HtmlYKTip("Period")%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>?????</span></td> <td> <%= new HtmlRadio("Copyright", true, 0, null) { ID = "Video_Copyright_0" }.Style(new { Width = "auto" })%> <label for="Video_Copyright_0"> ??? </label> <%= new HtmlRadio("Copyright", 1, null) { ID = "Video_Copyright_1" }.Style(new { Width = "auto" })%> <label for="Video_Copyright_1"> ??? </label> <%= new HtmlYKTip("Copyright") %> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlRadio("Share", 0, null) { ID = "Video_Share_0" }.Style(new { Width = "auto" })%> <label for="Video_Share_0"> ??? </label> <%-- <%= new HtmlRadio("Share", 1, null) { ID = "Video_Share_1" }.Style(new { Width = "auto" })%> <label for="Video_Share_1"> ??? </label>--%> <%= new HtmlRadio("Share", true, 2, null) { ID = "Video_Share_2" }.Style(new { Width = "auto" })%> <label for="Video_Share_2"> ??? </label> <%= new HtmlRadio("Share", 3, null) { ID = "Video_Share_3" }.Style(new { Width = "auto" })%> <label for="Video_Share_3"> ?????? </label> <%= new HtmlYKTip("Share") %> </td> </tr> <tr> <td class="label-td"><span class="label">????????</span></td> <td> <%= new HtmlCheckBox("HasDownload",false,1, 0)%> </td> </tr> <tr> <td class="label-td"><span class="label">????????</span></td> <td> <%= new HtmlTextArea("Description", null, 2000)%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>??????</span></td> <td> <%= new HtmlText("SortNumber", 1, 4) { }%> <%= new HtmlYKTip("SortNumber") %> </td> </tr> <tr> <td class="label-td"><span class="label">????????</span></td> <td> <ul class="columns "> <% 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; %> <li style="padding-left: 40px;"> <%= new HtmlCheckBox("Channel", false, 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")%> <% } %> </li> <% } else { %> <li> <%= new HtmlCheckBox("Channel", false , channel.Guid, "") { ID = "Channel" + channel.Guid, Class = "ChannelMaster ChannelMaster" + channel.Guid }.Style(new { Width = "auto", Display="none" })%> <%= 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> </td> </tr> </table> </div> </div> </div> </div> <table border="0" cellpadding="2px" cellspacing="2px" class="table-cleaned"> <tr> <td class="label-td"><span class="label"> ??????????????? <%= new HtmlCheckBox("AutoUpload", false, 1, 0) { ID="AutoUpload"}%></span></td> <td> <%= new HtmlHidden("IsGoAttachment","1") %> <%= new HtmlSubmit("??????", "VideoUpload", "VideoUploadClient(this);").Style(new { Width = "100px" })%> </td> </tr> </table> <%--<span style="color:red;font-weight:bold;">????????????????????????????????????????????????</span>--%> </form> </div> <script type="text/javascript"> $(function () { $(".IsWeiKe").click(function () { if (this.checked == true) { $(".VideoTag").val(""); $(".Tag").removeAttr("checked"); $("#ckTag").toggle(); $("#wkTag").toggle(); } else { $(".VideoTag").val(""); $(".Tag").removeAttr("checked"); $("#ckTag").toggle(); $("#wkTag").toggle(); } }) $(".Tag").click(function () { var tag = this.lang; var videoTag = $(".VideoTag").val().trim(); if (this.checked == true) { if (videoTag == "") { $(".VideoTag").val(tag); } else { $(".VideoTag").val(videoTag + " " + tag) } } else { if (videoTag.indexOf(tag) >= 0) { videoTag = videoTag.replace(tag, ""); $(".VideoTag").val(videoTag); } } }) }); //function GetTag(send) { // if (send.checked == true) { // var tag = $(send).lang; // alert(tag); // return; // var videoTag = $(".VideoTag").val(); // if (videoTag == "") { // $(".VideoTag").attr("value", tag); // } else { // $(".VideoTag").attr("value", " " + tag) // } // } //} function GetTextbook() { var categoryGuid = $("#frmVideoUpload [Name=ParentCategory]").val(); var pressGuid = $("#frmVideoUpload [Name=ParentPress]").val(); var gradeGuid = $("#frmVideoUpload [Name=ParentGrade]").val(); if (categoryGuid != "" && pressGuid != "" && gradeGuid != "") { //?????? $("#spanTextbook").html("????????????..."); $("#liTextbook").show(); $("#spanLesson").html(""); $("#liLesson").hide(); Global.HtmlControl("<%= ControlPath("/My/SelectTextbook")%>", "ParentCategory=" + encodeURIComponent(categoryGuid) + "&ParentPress=" + encodeURIComponent(pressGuid) + "&ParentGrade=" + encodeURIComponent(gradeGuid), null, function (result) { $("#spanTextbook").html(result.Html); //??????????????????????? //flash($("#frmVideoUpload [name=ParentTextbook]")); if ($("#frmVideoUpload [name=ParentTextbook]").length > 0) { <% if (CreateInstance.ConfigDao.VideoTextBookTag("") != null) { %> $.validator.removeValid("#frmVideoUpload [name=ParentTextbook]", "VideoUpload"); $.validator.removeValid("#frmVideoUpload [name=ParentLesson]", "VideoUpload"); $("#frmVideoUpload [name=ParentTextbook]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null }, message: { required: "????????" } }); <% } %> } }); } else { //?????? $("#spanTextbook").html(""); $.validator.removeValid("#frmVideoUpload [name=ParentTextbook]", "VideoUpload"); $("#liTextbook").hide(); $("#spanLesson").html(""); $.validator.removeValid("#frmVideoUpload [name=ParentLesson]", "VideoUpload"); $("#liLesson").hide(); } } function GetLesson() { var textbookGuid = $("#frmVideoUpload [Name=ParentTextbook]").val(); if (textbookGuid != "" && textbookGuid != null) { //???????? $("#spanLesson").html("??????????????..."); $("#liLesson").show(); Global.HtmlControl("<%= ControlPath("/My/SelectLesson")%>", "ParentTextbook=" + encodeURIComponent(textbookGuid), null, function (result) { $("#spanLesson").html(result.Html); //flash($("#frmVideoUpload [name=ParentLesson]")); if ($("#frmVideoUpload [name=ParentLesson]").length > 0) { <% if (CreateInstance.ConfigDao.VideoLessonTag("") != null) { %> $.validator.removeValid("#frmVideoUpload [name=ParentLesson]", "VideoUpload"); $("#frmVideoUpload [name=ParentLesson]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null }, message: { required: "??????????" } }); <% } %> } }); } else { //???????? $("#spanLesson").html(""); $("#liLesson").hide(); $.validator.removeValid("#frmVideoUpload [name=ParentLesson]", "VideoUpload"); } } $(function () { $("#frmVideoUpload [name=RecTime]").datepicker({ dateFormat: "yy-mm-dd", onClose: function () { $.validator.itemValid("#frmVideoUpload [name=RecTime]", "VideoUpload"); } }); }); $(function () { GetTextbook(); GetLesson(); }); </script> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "VideoUpload", form: "#frmVideoUpload", alertMessage: true, showMessage: false }); //?????? $("#frmVideoUpload [name=Name]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null }, message: { required: "???????????" } }); //?????? $("#frmVideoUpload [name=FileName]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null }, message: { required: "???????????" } }); ////?????? //$("#frmVideoUpload [name=Cover]").formValidator({ // validatorGroup: "VideoUpload", // rules: //{ // required: null //}, // message: //{ // required: "???????????" //} //}); //?????? $("#frmVideoUpload [name=FileSize]").formValidator({ validatorGroup: "VideoUpload", rules: { regex: "num1" }, message: { regex: "??????????????" } }); ////??????? //$("#frmVideoUpload [name=ParentGrade]").formValidator({ // targetFocus: "#frmVideoUpload [name=ParentCategory_Name]", // validatorGroup: "VideoUpload", // rules: //{ // required: null //}, // message: //{ // required: "????????????" //} //}); ////???????? //$("#frmVideoUpload [name=ParentPress]").formValidator({ // targetFocus: "#frmVideoUpload [name=ParentCategory_Name]", // validatorGroup: "VideoUpload", // rules: //{ // required: null //}, // message: //{ // required: "?????????????" //} //}); //??????? $("#frmVideoUpload [name=ParentCategory]").formValidator({ targetFocus: "#frmVideoUpload [name=ParentCategory_Name]", validatorGroup: "VideoUpload", rules: { required: null }, message: { required: "????????????" } }); //???????? $("#frmVideoUpload [name=Period]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null, regex: "num1" }, message: { required: "?????????????????", regex: "??????????????" } }); //??? $("#frmVideoUpload [name=Copyright]").formValidator({ validatorGroup: "VideoUpload", rules: { min: 1 }, message: { min: "????????" } }); //?????? $("#frmVideoUpload [name=Share]").formValidator({ validatorGroup: "VideoUpload", rules: { min: 1 }, message: { min: "???????????" } }); //?????? $("#frmVideoUpload [name=RecTime]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null, regex: "datetime" }, message: { required: "??????????????", regex: "??????????????" } }); //????? $("#frmVideoUpload [name=SortNumber]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null, regex: "num1" }, message: { required: "???????????", regex: "???????????" } }); <% if (CreateInstance.ConfigDao.VideoCaptionsFileTag("") != null) { %> $("#frmVideoUpload [name=CaptionsFile]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null }, message: { required: "???????????" } }); <% } %> <% if (CreateInstance.ConfigDao.VideoCoverTag("") != null) { %> $("#frmVideoUpload [name=Cover]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null }, message: { required: "???????????" } }); <% } %> <% if (CreateInstance.ConfigDao.VideoPressTag("") != null) { %> $("#frmVideoUpload [name=ParentPress]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null }, message: { required: "??????????" } }); <% } %> <% if (CreateInstance.ConfigDao.VideoGradeTag("") != null) { %> $("#frmVideoUpload [name=ParentGrade]").formValidator({ validatorGroup: "VideoUpload", rules: { required: null }, message: { required: "????????" } }); <% } %> <% if (CreateInstance.ConfigDao.VideoChannelTag("") != null) { %> $("#frmVideoUpload [name=Channel]").formValidator({ validatorGroup: "VideoUpload", rules: { min: 1 }, message: { min: "???????????" } }); <% } %> </script> <script type="text/javascript"> function VideoUploadClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoUpload", data: Global.GetFormValue($("#frmVideoUpload")), async: true, dataType: 'json', success: function (result) { $(send).val("??????"); flash("????????????") Global.Disabled(send, false); window.location.href = result; }, beforeSend: function () { $(send).val("?????????..."); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val("??????"); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de