<%@ 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()%> <% } %>
我的专辑:

*标题: <%= new HtmlText("Name", this.ViewData["_Album.Name"], 256) { }%> <%= new HtmlYKTip("Name")%>
*级别: <%= new HtmlSelect("ParentAlbumLevel", "Name", "Guid", "Guid") {Option=this._ListAlbumLevel, DefaultSelectValue=this.ViewData["_Album.ParentAlbumLevel.Guid"] }.InsertOption("::选择::","",0)%> <%= new HtmlYKTip("ParentAlbumLevel")%>
专辑封面:
<%= 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 }%> <% } %>
<%= new HtmlYKTip("Cover")%>
支持.jpg、gif、png格式的图片
观看权限: <%= new HtmlRadio("Share", (this.ViewData["_Album.Share"].ToInt(0) == 0 ? true : false), 0, null) { ID = "Album_Share_0" }.Style(new { Width = "auto" })%> <%--<%= new HtmlRadio("Share", (this.ViewData["_Album.Share"].ToInt(0) == 1 ? true : false), 1, null) { ID = "Album_Share_1" }.Style(new { Width = "auto" })%> --%> <%= 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" })%> <%= new HtmlYKTip("Share") %>
详细描述: <%= new HtmlTextArea("Description", this.ViewData["_Album.Description"], 2000)%>
排序号: <%= new HtmlText("SortNumber", this.ViewData["_Album.SortNumber"], 4) { DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %>
标签用空格(" ")分开: <%= new HtmlText("AlbumTag", this.AlbumTag, 256) { }%>
<%= 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" })%>