<%@ Page Language="C#" MasterPageFile="../BloggerAdmin.master" AutoEventWireup="true" CodeBehind="AlbumEdit.aspx.cs" Inherits="Y10.WebSite.Blog.Blogger.Admin.Album.AlbumEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phHead" runat="server" EnableViewState="false">
<link href="<%=AppUrl %>/Blogger/Admin/Album/Images/Style/Album.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMainAdmin" runat="server" EnableViewState="true">
<form id="MainForm" runat="server">
<div id="ContentTitle"><%=MyTitle %></div>
<div id="ContentBody">

    <div id="AlbumAllPage_Nav" class="BrokenLineBox">
    <div class="LeftFloatBox"><a href="AlbumManage.aspx">我的相册</a> \ <a href="PhotoManage.aspx?AlbumID=<%=AlbumData.ID %>"><%=AlbumData.Title %></a> \ 编辑相册属性</div>
    </div>
    
    <table id="CateroryAdd" class="MainContentTable" cellpadding="3" cellspacing="1">
	    <tr class="MainContentList_ItemTR">
		    <td style="width:26%;text-align:right;">相册名称：</td>
		    <td style="width:74%"><asp:TextBox ID="tbTitle" runat="server" MaxLength="20" EnableViewState="true"></asp:TextBox><span class="NotesText"></span></td>
	    </tr>
	    <tr class="MainContentList_ItemTR">
		    <td style="text-align:right">频道分类：</td>
		    <td><asp:DropDownList ID="ddlChannel" runat="server" EnableViewState="true"></asp:DropDownList><span class="NotesText"></span></td>
	    </tr>
	    <tr class="MainContentList_ItemTR">
		    <td style="text-align:right">背景音乐：</td>
		    <td><asp:TextBox ID="tbBgMusic" runat="server" Width="294px" MaxLength="2000" EnableViewState="true"></asp:TextBox><span class="NotesText"></span></td>
	    </tr>
	    <tr class="MainContentList_ItemTR">
		    <td style="text-align:right">相册说明：</td>
		    <td><asp:TextBox ID="tbDescription" runat="server" Height="80px" TextMode="MultiLine" Width="294px"  MaxLength="2000" EnableViewState="true"></asp:TextBox><span class="NotesText"></span></td>
	    </tr>
	    <tr class="MainContentList_ItemTR">
		    <td style="text-align:right">访问权限：</td>
		    <td>
		    <asp:RadioButtonList ID="rblViewStatus" runat="server" RepeatColumns="5"></asp:RadioButtonList>
		    <span id="spanPassword" style="display:none;">访问密码:<asp:TextBox ID="tbPassword" runat="server" TextMode="Password" EnableViewState="true"></asp:TextBox></span>
		    </td>
	    </tr>
	    <tr class="MainContentList_ItemTR">
		    <td style="text-align:right">置顶：</td>
		    <td><asp:CheckBox ID="cbxLockTop" runat="server" /><span class="NotesText"></span></td>
	    </tr>
	    <tr class="MainContentList_ItemTR">
		    <td colspan="2"  style="text-align:center"><asp:Button ID="btSave" runat="server" OnClick="btSave_Click" Text="保存相册属性" CssClass="SubmitButton"  EnableViewState="false"/></td>
	    </tr>
    </table>
</div>
<div id="ContentBottom"></div>
        <script type="text/javascript">
        function ShowViewStatus()
        {
            var ViewStatusSelect = document.getElementById("<%=rblViewStatus.ClientID%>");
            var spanPassword = document.getElementById("spanPassword");
            
            for(i=0;i<ViewStatusSelect.getElementsByTagName("INPUT").length;i++)   
            {
                if(ViewStatusSelect.getElementsByTagName("INPUT")[i].type=="radio")   
                {   
                    if(ViewStatusSelect.getElementsByTagName("INPUT")[i].checked)
                    {
                        if(ViewStatusSelect.getElementsByTagName("INPUT")[i].value == "1")
                        {
                            spanPassword.style.display = "";
                        }
                        else
                        {
                            spanPassword.style.display = "none";
                        }
                    }
                }   
            }
        }
        ShowViewStatus();
        </script>
</form>
</asp:Content>