Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\Pub\CreditsVideo\Edit.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.CreditsVideo.Edit" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <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> </div> <div class="ln-thick ln-c-mid"> </div> <div class="subcontent"> <form id="frmCreditsVideo" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <tr> <th title="<%= Define.Get("CreditsVideo_?????????").ToScriptTag() %>"> <%= Define.Get("CreditsVideo_?????????").HtmlEncode() %>?? </th> <td class="tooltip" title="<%= Define.Get("CreditsVideo_CreditsType_????????????").ToScriptTag()%>"> <label for="CreditsVideo_CreditsType_0"><%= new HtmlRadio("CreditsType", 0, null) { ID = "CreditsVideo_CreditsType_0", Class = "", OnClick="TypeChange();", Checked = (this.ViewData["_CreditsVideo.CreditsType"].ToIntN() == 0 ? true : false) }%><%= Define.Get("CreditsVideo_CreditsType_???") %></label> <label for="CreditsVideo_CreditsType_1"><%= new HtmlRadio("CreditsType", 1, null) { ID = "CreditsVideo_CreditsType_1", Class = "", OnClick="TypeChange();", Checked = (this.ViewData["_CreditsVideo.CreditsType"].ToIntN() == 1 ? true : false) }%><%= Define.Get("CreditsVideo_CreditsType_???") %></label> <label for="CreditsVideo_CreditsType_2"><%= new HtmlRadio("CreditsType", 2, null) { ID = "CreditsVideo_CreditsType_2", Class = "", OnClick="TypeChange();", Checked = (this.ViewData["_CreditsVideo.CreditsType"].ToIntN() == 2 ? true : false) }%><%= Define.Get("CreditsVideo_CreditsType_???") %></label> <script type="text/javascript"> function TypeChange() { //alert($("#Credits_Type_0").attr("checked")); //alert($("#Credits_Type_1").attr("checked")); if ($("#CreditsVideo_CreditsType_0").attr("checked") == "checked") { $(".cvTarget").hide(); $(".targetVideo").hide(); $(".targetAlbum").hide(); } if ($("#CreditsVideo_CreditsType_1").attr("checked") == "checked") { $(".cvTarget").show(); $(".targetVideo").hide(); $(".targetAlbum").show(); $(".cvTargetText").html("<%= Define.Get("Client_???")%>??") } if ($("#CreditsVideo_CreditsType_2").attr("checked") == "checked") { $(".cvTarget").show(); $(".targetAlbum").hide(); $(".targetVideo").show(); $(".cvTargetText").html("?????") } } $(function () { TypeChange(); }); </script> </td> </tr> <tr class="cvTarget" style="display:none"> <th class="cvTargetText"> </th> <%-- <td class="targetAll"> <%= new HtmlText("TargetGuid", this.ViewData["_CreditsVideo.TargetGuid"], 32) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("TargetGuid") %> </td>--%> <td class="targetVideo" style="display:none"> <%= new HtmlText("ParentVideo_Name", this.Video == null ? null : this.Video.Name) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmPublicClassVideo [name=ParentVideo]","Edit");" }%> <a href="#selectVideo" class="decoration-none" onclick="return SelectVideo('#frmCreditsVideo [name=TargetGuid]','#frmCreditsVideo [name=ParentVideo_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("TargetGuid") %> </td> <td class="targetAlbum" style="display:none"> <%= new HtmlText("ParentAlbum_Name", this.Album == null ? null : this.Album.Name) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmAlbumVideo [name=ParentAlbum]","Edit");" }%> <a href="#selectAlbum" class="decoration-none" onclick="return SelectAlbum('#frmCreditsVideo [name=TargetGuid]','#frmCreditsVideo [name=ParentAlbum_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("TargetGuid") %> <%= new HtmlHidden("TargetGuid", this.ViewData["_CreditsVideo.TargetGuid"])%> </td> </tr> <tr> <th title="<%= Define.Get("CreditsVideo_?????????").ToScriptTag() %>"> <%= Define.Get("CreditsVideo_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Name", this.ViewData["_CreditsVideo.Name"], 256) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Name") %> </td> </tr> <tr> <th title="<%= Define.Get("CreditsVideo_???????????").ToScriptTag() %>"> <%= Define.Get("CreditsVideo_???????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("FileName", this.ViewData["_CreditsVideo.FileName"]) { ReadOnly = true, Class = "ipt-t ipt-t-dft " }%> <a href="#deleteFileName" class="delete-file decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="javascript:return false;" class="download-file decoration-none hidden" target="_blank"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <%= new HtmlYKTip("FileName") %> <%-- <a href="#uploadFileName" class="decoration-none" onclick="return UploadFile('#frmCreditsVideo [name=FileName]','<%= Define.Get("CreditsVideo_FileName_?????????????????????")%>','1',' <%= SettingGroup.CreditsVideoUploadPath %>','','0','0')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a>--%> <div> <%= new SingleUploadInstance(this) { UploadTag = "FileName", Accept = CreateInstance.DomainInfoDao.THIS().UploadVideoType.ToUpper().Replace("*","").Replace(";",","), UploadControlName="?????????"}.ToHtml()%> <%-- <%= new SingleUploadInstance(this) { UploadTag = "FileName", InitParams = "FileFilter=mp4??????|*.mp4,SelectFiles=???????????,Upload=????????????" }.ToHtml()%> --%> </div> <script type="text/javascript"> function UploadFinishedFileName(fileName, fileSize) { $("#frmCreditsVideo [Name=FileName]").val(fileName); } </script> </td> </tr> <tr> <th title="<%= Define.Get("CreditsVideo_?????????").ToScriptTag() %>"> <%= Define.Get("CreditsVideo_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("Description", this.ViewData["_CreditsVideo.Description"], 2000) { Class = "ipt-t ipt-t-dft width400 height100"}%> </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("CreditsVideo_????").ToScriptTag() %>"> <%= Define.Get("CreditsVideo_????")%>?? </th> <td class="tooltip" title="<%= Define.Get("CreditsVideo_Status_????????????").ToScriptTag()%>"> <%= new HtmlCheckBox("Status", this.ViewData["_CreditsVideo.Status"], 1, 0) { DefaultChecked = 1 }%> </td> </tr> <tr> <th> </th> <td> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_CreditsVideo"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_CreditsVideo"])%></span></div> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span></div> </td> </tr> </table> </form> </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/CreditsVideoAjax.js")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmCreditsVideo" }); //????????????Guid //$("#frmCreditsVideo [name=TargetGuid]").formValidator({ // validatorGroup: "Edit", // rules: // { // required: null // }, // message: // { // required: "<%= Define.Get("CreditsVideo_TargetGuid_???Guid??????").ToScriptChar() %>" // } //}); //????????? $("#frmCreditsVideo [name=Name]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("CreditsVideo_Name_??????????????").ToScriptChar() %>" } }); //??????????? $("#frmCreditsVideo [name=FileName]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("CreditsVideo_FileName_??????????????").ToScriptChar() %>" } }); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { CreditsVideoAjax.Insert($("#frmCreditsVideo"), send, function (json) { document.getElementById("frmCreditsVideo").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Update(send) { CreditsVideoAjax.Update($("#frmCreditsVideo"), send, function (json) { document.getElementById("frmCreditsVideo").KEY.value = json.Key; alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmCreditsVideo").KEY.value; CreditsVideoAjax.Delete(key, send, function (json) { GoList(); }); }; </script> <script type="text/javascript"> //?????? //??????????? //??????????? //??????????? <% var creditVideoPath = SettingGroup.CreditsVideoUploadPath + this.ViewData["_CreditsVideo.Guid"] + "/" + this.ViewData["_CreditsVideo.FileName"]; if (System.IO.File.Exists(Server.MapPath(creditVideoPath))) { %> $("#frmCreditsVideo [name=FileName]").siblings(".download-file").attr("href", Global.Site + "<%= creditVideoPath%>"); <% } else { %> $("#frmCreditsVideo [name=FileName]").siblings(".download-file").attr("href", Global.Site + "<%= SettingGroup.CreditsVideoUploadPath + this.ViewData["_CreditsVideo.Guid"] + "/" + this.ViewData["_CreditsVideo.FileNameGuid"]%>"); <% } %> //$("#frmCreditsVideo [name=FileName]").siblings(".download-file").attr("href", Global.Site + "<%= SettingGroup.CreditsVideoUploadPath %>" + $("#frmCreditsVideo [name=FileName]").val()); </script> <script type="text/javascript"> //?????? </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de