Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyWeikeEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyWeikeEdit" %> <%= new MyVideoNavInstance(this) { Local= MyVideoNavItem.??????, Video = this.Video }.ToHtml()%> <div class="flat data-box"> <div class="head"> <span class="title">????????</span>?????? </div> <div class="userInput body"> <form id="frmVideoWeike" 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("Title", this.ViewData["_VideoWeike.Title"], 200) { }%> <%= new HtmlYKTip("Title")%> </td> </tr> <tr style="display: none;"> <td style="text-align: right; vertical-align: top;">?????</td> <td> <%= new HtmlHidden("VideoBefor", this.ViewData["_VideoWeike.VideoBefor"]) { Class = "ipt-t ipt-t-dft " }%> <div> <%= new SingleUploadInstance(this) { UploadTag = "VideoBefor", Accept = ".jpg,.png,.mp4", UploadControlName="??????"}.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "VideoBefor", InitParams = "FileFilter=FileFilter=*.jpg;*.png;*.mp4 ????????????(*.jpg;*.png;*.mp4)|*.jpg;*.png;*.mp4,DefaultColor=#F5F5F5F5,SelectFiles=????????????,Upload=?????????" }.ToHtml()%> --%> <%= new HtmlHidden("VideoWeikeUploadPath",SettingGroup.VideoWeikeUploadPath) %> <script type="text/javascript"> function UploadFinishedVideoBefor(VideoBefor, fileSize) { $("#frmVideoWeike [Name=VideoBefor]").val(VideoBefor); } </script> </div> ????? mp4; jpg; png ??????????? </td> </tr> <tr style="display: none;"> <td style="text-align: right; vertical-align: top;">?????</td> <td> <%= new HtmlHidden("VideoAfter", this.ViewData["_VideoWeike.VideoAfter"]) { Class = "ipt-t ipt-t-dft " }%> <div> <%= new SingleUploadInstance(this) { UploadTag = "VideoAfter", Accept = ".jpg,.png,.mp4", UploadControlName="??????"}.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "VideoAfter", InitParams = "FileFilter=*.jpg;*.png;*.mp4 ????????????(*.jpg;*.png;*.mp4)|*.jpg;*.png;*.mp4,DefaultColor=#F5F5F5F5,SelectFiles=????????????,Upload=?????????" }.ToHtml()%> --%> <%= new HtmlHidden("VideoWeikeUploadPath",SettingGroup.VideoWeikeUploadPath) %> <script type="text/javascript"> function UploadFinishedVideoAfter(VideoAfter, fileSize) { $("#frmVideoWeike [Name=VideoAfter]").val(VideoAfter); } </script> </div> ????? mp4; jpg; png ??????????? </td> </tr> <tr> <td colspan="2"> <hr /> <% var resourcePath = CreateInstance.VideoDao.GetResourcePath(this.ViewData["_VideoWeike.ParentVideo"] as AVA.ResourcesPlatform.Model.Pub.Video); var parentVideo = this.ViewData["_VideoWeike.ParentVideo"] as AVA.ResourcesPlatform.Model.Pub.Video;%> <% var videoPath = resourcePath.VideoShow;%> <script type="text/javascript"> if ("<%= videoPath %>" == "") { flash("??????????????????????????"); } </script> <div class="wrapper"> <div class="flowplayer is-splash" id="fplayer" data-swf="<%= Request.WebPath() + "/Tools/JWPlayer/flowplayer.swf" %>"> <video preload="none"> <%= "<!--[if IE]><!-->"%> <source type="video/mp4" src="" /> <%= "<!--<![endif]-->" %> </video> </div> <div class="scissorhands"></div> </div> <%--<i>ps?? ???????????????????,??????????????????????????</i>--%> <script> var MobileClient = function () { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; var bIsAndroid = sUserAgent.match(/android/i) == "android"; if (bIsIpad || bIsIphoneOs || bIsAndroid) { return true; } return false; } //var isFlash = (navigator.userAgent.indexOf("iPad") == -1 && navigator.userAgent.indexOf("iPhone") == -1); var isFlash = !MobileClient(); var url = "<%= videoPath %>"; // var url = "rtmp://localhost/oflaDemo//hobbit_vp6.flv"; $(function () { //flowplayer.conf.clip.url if (isFlash) { <%if (resourcePath.IsRTMP) //resourcePath.IsRTMP {%> var fileurl = url.slice(url.lastIndexOf("//") + 1), streamerurl = url.slice(0, url.lastIndexOf("//")); $("#fplayer").flowplayer({ engine: "flash", rtmp: streamerurl, playlist: [ [{ mp4: fileurl }] ] }); <% } else {%> <%if (resourcePath.IsRTMP) {%> url = url.replace(/\/\//g, "/"); url = "http://" + url.slice(6, url.lastIndexOf(":") + 1) + "<%= SettingGroup.HlsVodPort %>" + url.slice(url.lastIndexOf(":") + 5, url.length); <%}%> $("#fplayer").flowplayer({ engine: "flash", playlist: [ [{ mp4: url }] ] }) <%} %> } else { <%if (resourcePath.IsRTMP) {%> url = url.replace(/\/\//g, "/") url = "http://" + url.slice(6, url.lastIndexOf(":") + 1) + "<%= SettingGroup.HlsVodPort %>" + url.slice(url.lastIndexOf(":") + 5, url.length); <% } %> $("#fplayer").flowplayer({ engine: "html5", playlist: [ [{ mp4: url }] ] }) } $("#fplayer").flowplayer().bind("ready", function () { $('.scissorhands').ScissorHands( { url: ["<%= Request.WebPath() %>/Tools/JWPlayer/Service/VideoTimeInfoXML.aspx?Guid=<%= parentVideo.Guid %>&TemplateGuid=<%= new Random().Next() %>"], cuepoints: [],//"/cuepoints", playerAPI: $("#fplayer").flowplayer() }); }); }); </script> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>????????</span></td> <td> <%= new HtmlText("Cutout", this.ViewData["_VideoWeike.Cutout"], 2000) { }%> <%= new HtmlYKTip("Cutout")%> <br /> ?????","?????????"B"???????"A"???????????????????????????????????????????????????????? <br /> ????????????????????"-"????????????"30-150",??????30??150????????? <br /> ???:"5B,30-150,200-600,10A"??????5???????????????30???150???????????200???600?????10????? </td> </tr> <tr> <td class="label-td"></td> <td> <%= new HtmlHidden("ParentVideo", this.ViewData["_VideoWeike.ParentVideo.Guid"])%> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("??????", "VideoWeikeEdit", "VideoWeikeEditClient(this);").Style(new { Width = "100px" })%> </td> </tr> </table> </form> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "VideoWeikeEdit", form: "#frmVideoWeike", alertMessage: true, showMessage: false }); //?????? $("#frmVideoWeike [name=Title]").formValidator({ validatorGroup: "VideoWeikeEdit", rules: { required: null }, message: { required: "???????????" } }); //?????? $("#frmVideoWeike [name=Cutout]").formValidator({ validatorGroup: "VideoWeikeEdit", rules: { required: null }, message: { required: "???????????" } }); </script> <script type="text/javascript"> function VideoWeikeEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoWeikeEdit", data: Global.GetFormValue($("#frmVideoWeike")), 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