Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\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="box well"> <div class="p_title"> <span class="title">????????</span> </div> <hr /> <div class="userInput pwd"> <form id="frmAlbumEdit" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <tr> <td style="text-align: right; width: 150px;"><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 style="text-align: right;"><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> </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="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="myTab"> <tr> <td style="text-align: right;"><span class="label"><span class="required"></span>????????</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", Width=140, Height=88, OnErrorImg=SettingGroup.DefaultImg }%> <% } else { //????? %> <%= new HtmlImg(SettingGroup.DefaultMaxImg, "") { ID = "imgCover", Width=140, Height=88, 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]', '?????????', '0', '<%= SettingGroup.AlbumUploadPath %>', '', '960', '540'); } </script> </td> </tr> <tr> <td>???.jpg??if??ng???????? </td> </tr> </table> </td> </tr> <tr> <td style="text-align: right;"><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 style="text-align: right;"><span class="label">????????</span></td> <td> <%= new HtmlTextArea("Description", this.ViewData["_Album.Description"], 2000)%> </td> </tr> <tr> <td style="text-align: right;"><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 style="text-align: right;"><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="myTab"> <tr> <td style="text-align: right;"><span class="label"></span></td> <td> <%= new HtmlHidden("Key", SetKey(this.ViewData["_Album.Guid"], this.ViewData["_Album.Version"]))%> <%= new HtmlSubmit(string.IsNullOrEmpty(this.PrimaryKey) ? "??????" : "?????????", "AlbumEdit", "AlbumEditClient(this);").Style(new { Width = "100px" })%> </td> </tr> </table> </form> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "AlbumEdit", form: "#frmAlbumEdit", alertMessage: true, showMessage: false }); //?????? $("#frmAlbumEdit [name=Name]").formValidator({ validatorGroup: "AlbumEdit", rules: { required: null }, message: { required: "???????????" } }); //?????? $("#frmAlbumEdit [name=ParentAlbumLevel]").formValidator({ validatorGroup: "AlbumEdit", rules: { required: null }, message: { required: "???????????" } }); ////?????? //$("#frmAlbumEdit [name=Cover]").formValidator({ // validatorGroup: "AlbumEdit", // rules: //{ // required: null //}, // message: //{ // required: "???????????" //} //}); //?????? $("#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) ? "??????" : "?????????"%>'); alert('<%= string.IsNullOrEmpty(this.PrimaryKey) ? "?????????" : "????????????"%>') 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) ? "??????" : "?????????"%>'); 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