Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Themes\NewtonTheme\Control\My\MyAlbumEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyAlbumEdit.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyAlbumEdit" %> <% if (Has(this.ViewData["_Album"])) { %> <%= new MyAlbumNavInstance(this) { Local= MyAlbumNavItem.??????, Album = this.ViewData["_Album"] as AVA.ResourcesPlatform.Model.Pub.Album }.ToHtml()%> <% } else { %> <%= new MyAlbumNavTopInstance(this) { Local= MyAlbumNavTopItem.?????? }.ToHtml()%> <% } %> <div class="flat data-box"> <div class="head"> <span class="title">???<%= Define.Get("Client_???")%>??</span> </div> <div class="userInput body"> <form id="frmAlbumEdit" 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", this.ViewData["_Album.Name"], 256) { }%> <%= new HtmlYKTip("Name")%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required">*</span>?????</span></td> <td> <%= new HtmlSelect("ParentAlbumLevel", "Name", "Guid", "Guid") {Option=this._ListAlbumLevel, DefaultSelectValue=this.ViewData["_Album.ParentAlbumLevel.Guid"] }.InsertOption("::???::","",0)%> <%= new HtmlYKTip("ParentAlbumLevel")%> </td> </tr> <tr> <td class="label-td"><span class="label">???<%= Define.Get("Client_???")%>?????</span></td> <td> <% var isAutoPlay = this.ViewData["_Album.IsAutoPlay"] == null ? false : this.ViewData["_Album.IsAutoPlay"]; %> <%= new HtmlCheckBox("IsAutoPlay", isAutoPlay, 1, 0) { Class = "", }.Style(new { Width = "auto" })%> <span class="label">?????????????????<%= Define.Get("Client_???")%>???</span> </td> </tr> <%if (SettingGroup.HasWeike) { %> <tr> <td class="label-td"><span class="label">????????<%= Define.Get("Client_???")%>??</span></td> <td> <% var isWeiKeAlbum = this.ViewData["_Album.isWeiKeAlbum"] == null ? false : this.ViewData["_Album.isWeiKeAlbum"]; %> <%= new HtmlCheckBox("IsWeiKeAlbum", isWeiKeAlbum, 1, 0) { Class = "", }.Style(new { Width = "auto" })%> </td> </tr> <% } %> <% //????????????????? if(this.User.ParentUserType.AlbumShare) { %> <tr> <td class="label-td"><span class="label">????????</span></td> <td> <% var openUpload = this.ViewData["_Album.OpenUpload"] == null ? false : this.ViewData["_Album.OpenUpload"]; %> <%= new HtmlCheckBox("OpenUpload", openUpload, 1, 0) { Class = "", ID="toggleHidden"}.Style(new { Width = "auto" })%> <span class="label">?????????????????????????????<%= Define.Get("Client_???")%></span> </td> </tr> <tr class="hidy" style="display:none"> <td class="label-td"><span class="label">???????????<%= Define.Get("Client_???")%>??????</span></td> <td> <% var openUploadNeedExamine = this.ViewData["_Album.OpenUploadNeedExamine"]; %> <%= new HtmlCheckBox("OpenUploadNeedExamine", openUploadNeedExamine, true, false) { Class = ""}.Style(new { Width = "auto" })%> <span class="label">?????????????????<%= Define.Get("Client_???")%>???????????</span> </td> </tr> <script> $(function () { if ('<%= openUpload%>' == true) { $(".hidy").show(); } $("#toggleHidden").click(function (e) { //e.preventDefault(); $(".hidy").toggle(); }); }); </script> <% } %> </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"></span><%= Define.Get("Client_???")%>?????</span></td> <td> <table border="0"> <tr> <td> <%= new HtmlHidden("Cover", this.ViewData["_Album.Cover"]) { Class = "ipt-t ipt-t-dft " }%> <% if (this.ViewData["_Album"]!=null && SettingGroup._GetRemoteImage(SettingGroup.AlbumCover(this.ViewData["_Album"]))) { //??? %> <%= new HtmlImg(SettingGroup.AlbumCover(this.ViewData["_Album"]), "") { ID = "imgCover", OnErrorImg=SettingGroup.DefaultImg }%> <% } else { //????? %> <%= new HtmlImg(SettingGroup.DefaultImg, "") { ID = "imgCover", OnErrorImg=SettingGroup.DefaultImg }%> <% } %> </td> </tr> <tr> <td> <input type="button" value="??????" onclick="UploadAlbumCover();" style="width: auto;" /> <%= new HtmlYKTip("Cover")%> <script type="text/javascript"> function UploadAlbumCover() { UploadFile('#frmAlbumEdit [name=Cover]', '<%= Define.Get("Client_???")%>??????', '0', '<%= SettingGroup.AlbumUploadPath %>', '', '480', '300'); } </script> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required"></span>????????</span></td> <td> <%= new HtmlRadio("Share", (this.ViewData["_Album.Share"].ToInt(0) == 0 ? true : false), 0, null) { ID = "Album_Share_0" }.Style(new { Width = "auto" })%> <label for="Album_Share_0"> ??? </label> <%--<%= new HtmlRadio("Share", (this.ViewData["_Album.Share"].ToInt(0) == 1 ? true : false), 1, null) { ID = "Album_Share_1" }.Style(new { Width = "auto" })%> <label for="Album_Share_1"> ??? </label>--%> <%= new HtmlRadio("Share", (this.ViewData["_Album.Share"].ToInt(0) == 2 || this.ViewData["_Album.Share"] == null ? true : false), 2, null) { ID = "Album_Share_2" }.Style(new { Width = "auto" })%> <label for="Album_Share_2"> ??? </label> <%= new HtmlYKTip("Share") %> </td> </tr> <tr> <td class="label-td"><span class="label">????????</span></td> <td> <%= new HtmlTextArea("Description", this.ViewData["_Album.Description"], 2000)%> </td> </tr> <tr> <td class="label-td"><span class="label"><span class="required"></span>??????</span></td> <td> <%= new HtmlText("SortNumber", this.ViewData["_Album.SortNumber"], 4) { DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %> </td> </tr> <tr> <td class="label-td"><span class="label">????????(" ")?????</span></td> <td> <%= new HtmlText("AlbumTag", this.AlbumTag, 256) { }%> </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"></span></td> <td> <%= new HtmlHidden("Key", SetKey(this.ViewData["_Album.Guid"], this.ViewData["_Album.Version"]))%> <%= new HtmlSubmit(string.IsNullOrEmpty(this.PrimaryKey) ? "???"+Define.Get("Client_???") : "???"+Define.Get("Client_???"), "AlbumEdit", "AlbumEditClient(this);").Style(new { Width = "100px" })%> </td> </tr> </table> </form> </div> <% if(this.Album!=null) { %> <div class="flat"> <div class="head"> <span class="title"><%= Define.Get("Client_???")%>?????</span> </div> <div class="body"> <div class="videolist"> <ul id="my-albumvideos"> <li class="list-header"> <a data-toggle="modal" data-target="#sharedModal" data-guid="" class="add-item-by-modal" href="#" >?????? <span class="ico add-item-ico"></span> </a> </li> </ul> </div> </div> </div> <% } %> <script> <% if(this.Album!=null) { %> $(document).on("hidden", "#sharedModal", function () { var pageRecordSize = 20 var param = "PageIndex=" + 1; param += "&PageRecordSize=" + pageRecordSize + "&AlbumGuid=<%= this.Album.Guid %>"; Global.HtmlControl('<%= ControlPath("/My/MyAlbumVideo")%>', param, null, function (json) { var li = "<li class='list-header'><a data-toggle='modal' data-target='#sharedModal' data-guid='' class='add-item-by-modal' href='#' >??????<span class='ico add-item-ico'></span></a></li>" $("#my-albumvideos ").html(li); $("#my-albumvideos ").append(json.Html); $(document).trigger("domChange"); }); }); $(".add-item-by-modal").on("click", function () { var url = "/My/AlbumVideoAdd.aspx?Guid=<%= this.Album.Guid%>"; $("#sharedModal #sharedModalLabel").html("????????<%= Define.Get("Client_???")%>"); $(".modal-body").css("height", $(window).height() * .8); $("#sharedModal").width($(window).width() * .9) .css("margin-left", -$("#sharedModal").width() / 2) .css("margin-top", -$("#sharedModal").height() / 2); $("#iframeControl").attr("src", url).css("width", "100%").css("min-height", $(".modal-body").height()); $(document).on("ChildPageLoad", function (e, param) { $("#iframeControl").css("min-height", "98%"); }); }); //$(function () { // var pageRecordSize = 12 // var param = "PageIndex=" + 1; // param += "&PageRecordSize=" + pageRecordSize + "&AlbumGuid=<%= this.Album.Guid %>"; // Global.HtmlControl('<%= ControlPath("/My/MyAlbumVideoAdd")%>', param, null, function (json) { // $("#sharedModal #sharedModalLabel").html("????????<%= Define.Get("Client_???")%>"); // // $("#sharedModal .modal-body").html(json.Html); // // $("#sharedModal").width("50%"); // $("#sharedModal").css("margin-left","-23%"); // }); //}); $(function () { var pageRecordSize = 20 var param = "PageIndex=" + 1; param += "&PageRecordSize=" + pageRecordSize + "&AlbumGuid=<%= this.Album.Guid %>"; Global.HtmlControl('<%= ControlPath("/My/MyAlbumVideo")%>', param, null, function (json) { $("#my-albumvideos ").append(json.Html); $(document).trigger("domChange"); }); }); <% } %> </script> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "AlbumEdit", form: "#frmAlbumEdit", alertMessage: true, showMessage: false }); //<%= Define.Get("Client_???")%>??? $("#frmAlbumEdit [name=Name]").formValidator({ validatorGroup: "AlbumEdit", rules: { required: null }, message: { required: "?????<%= Define.Get("Client_???")%>???" } }); //<%= Define.Get("Client_???")%>??? $("#frmAlbumEdit [name=ParentAlbumLevel]").formValidator({ validatorGroup: "AlbumEdit", rules: { required: null }, message: { required: "?????<%= Define.Get("Client_???")%>???" } }); ////<%= Define.Get("Client_???")%>??? //$("#frmAlbumEdit [name=Cover]").formValidator({ // validatorGroup: "AlbumEdit", // rules: //{ // required: null //}, // message: //{ // required: "?????<%= Define.Get("Client_???")%>???" //} //}); //?????? $("#frmAlbumEdit [name=Share]").formValidator({ validatorGroup: "AlbumEdit", rules: { min: 1 }, message: { min: "???????????" } }); //????? $("#frmAlbumEdit [name=SortNumber]").formValidator({ validatorGroup: "AlbumEdit", rules: { required: null, regex: "num1" }, message: { required: "???????????", regex: "???????????" } }); </script> <script type="text/javascript"> function AlbumEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.AlbumEdit", data: Global.GetFormValue($("#frmAlbumEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "???"+Define.Get("Client_???") : "???"+Define.Get("Client_???")+"???"%>'); flash('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "???"+Define.Get("Client_???")+"???" : Define.Get("Client_???")+"?????????"%>') Global.Disabled(send, false); window.location.href = result; }, beforeSend: function () { $(send).val('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "??????..." : "??????..."%>'); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "???"+Define.Get("Client_???") : "???"+Define.Get("Client_???")+"???"%>'); 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