<%@ Page Language="C#" MasterPageFile="../Blogger.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Y10.WebSite.Blog.Blogger.Album.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phHead" runat="server">
<link href="<%=AppUrl %>/Skins/<%=SkinInfo.SkinPath%>/Album/Album.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="<%=AppUrl %>/Common/Plugins/lightbox2/js/prototype.js"></script>
<script type="text/javascript" src="<%=AppUrl %>/Common/Plugins/lightbox2/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="<%=AppUrl %>/Common/Plugins/lightbox2/js/lightbox.js"></script>
<link rel="stylesheet" href="<%=AppUrl %>/Common/Plugins/lightbox2/css/lightbox.css" type="text/css" media="screen" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">

<!--主体容器-->
<div id="BodyContainer">

    <!--主要内容部分-->
    <div id="ContentContainer">
    <div id="innerContentContainer">
    
    <!--主表单-->
    <form id='MainForm' runat="server">
    
        <!--顶部相册-->
        <asp:Panel ID="plTopAlbum" runat="server">
                
        <div id="TopAlbum" class="ContentBox_Normal">
            <div class="BoxTitle">
                <div class="BoxTitle_Left"><a><span>最新相册</span></a></div>
                <div class="BoxTitle_Right"></div>
            </div>
            <div class="BoxBody">
                <div id="TopAlbum_Cover"><table><tr><td><a href="<%=MyBloggerUrl %>/Album/<%=htTopAlbumInfo["ID"] %>/Default<%=ExtensionName %>"><img alt="<%=htTopAlbumInfo["Title"] %>" src="<%=htTopAlbumInfo["CoverPhoto"] %>" /></a></td></tr></table></div>
                <div id="TopAlbum_Info">
                    <div id="TopAlbum_Top">
                        <h1 id="TopAlbum_Title"><%=htTopAlbumInfo["Title"]%></h1>
                        <span id="TopAlbum_ViewMode"><%=htTopAlbumInfo["ViewStatusIcon"]%></span>
                    </div>
                    <h3 id="TopAlbum_Description"><%=htTopAlbumInfo["Description"]%></h3>
                    <span id="TopAlbum_AddTime">创建日期:<%=htTopAlbumInfo["AddTime"] %></span>
                    <span id="TopAlbum_ChannelName">频道:<%=htTopAlbumInfo["ChannelName"] %></span>
                    <span id="TopAlbum_PhotoNumber">共<%=htTopAlbumInfo["PhotoNum"]%>张</span>
                    <span id="TopAlbum_EnterAlbum">[<a href="<%=MyBloggerUrl %>/Album/<%=htTopAlbumInfo["ID"] %>/Default<%=ExtensionName %>">查看此相册</a>]</span>
                </div>
                <asp:Repeater ID="rpTopAlbumPhotoList" runat="server" OnItemCreated="rpTopAlbumPhotoList_ItemCreated">
                <HeaderTemplate>
                <div id="TopAlbum_PhotoList">
                <table><tr> 
                </HeaderTemplate>
                <ItemTemplate>
                <td class="TopAlbum_PhotoItem"><a href="<%# PhotoUrl%>" rel="lightbox[photo]"><img alt="<%# DataBinder.Eval(Container, "DataItem.Title")%>" src="<%# SmallPhotoUrl%>" onload="ImgAutoResize(this, 60, 60)" /></a></td>
                </ItemTemplate>
                <FooterTemplate>
                </tr></table>
                </div>
                </FooterTemplate>
                </asp:Repeater>
            </div>
        </div>
        <script language="JavaScript" type="text/javascript">
        announcement("TopAlbum_PhotoList");
        </script>
        
        </asp:Panel>
    
        <!--最新相册列表-->
        <div id="AlbumList" class="ListBox_Normal">
            <div class="BoxTitle">
            <div class="BoxTitle_Left"><a><span>相册列表</span></a></div>
            <div class="BoxTitle_Right"></div>
            </div>
            <div class="BoxBody">
            <ul id="AlbumItemList">
            <asp:Repeater ID="rpAlbumList" runat="server" OnItemCreated="rpAlbumList_ItemCreated">
            <ItemTemplate>
            <li class="AlbumItem">
                <div class="AlbumItem_Cover"><table><tr><td><a href="<%=MyBloggerUrl %>/Album/<%# DataBinder.Eval(Container, "DataItem.ID")%>/Default<%=ExtensionName %>"><img alt="<%# DataBinder.Eval(Container, "DataItem.Title")%>" src="<%# CoverPhoto %>" /></a></td></tr></table></div>
                <div class="AlbumItem_Info">
                    <div class="AlbumItem_Top">
                        <h1 class="AlbumItem_Title"><a href="<%=MyBloggerUrl %>/Album/<%# DataBinder.Eval(Container, "DataItem.ID")%>/Default<%=ExtensionName %>"><%# DataBinder.Eval(Container, "DataItem.Title")%></a></h1>
                        <span class="AlbumItem_ViewMode"><%#ViewStatusIcon %></span>
                    </div>
                    <h3 class="AlbumItem_Description"><%#AlbumDescription %></h3>
                    <span class="AlbumItem_PhotoNumber"><%#PhotoNum %>张</span>
                </div>
            </li>
            </ItemTemplate>
            <SeparatorTemplate><li class="AlbumItem_Separator"><div></div></li></SeparatorTemplate>
            </asp:Repeater>
            </ul>
			</div>
	        <div id="ToMoreAlbum"><a title="查看更多相册..." href="<%=MyBloggerUrl %>/Album/List<%=ExtensionName %>"><span>查看更多相册...</span></a></div>
			<div class="BoxBottom"></div>
        </div>

        <!--最新评论列表-->
        <div id="AlbumNewCommentList" class="ListBox_Normal">
            <div class="BoxTitle">
            <div class="BoxTitle_Left"><a><span>最新评论</span></a></div>
            <div class="BoxTitle_Right"></div>
            </div>
            <div class="BoxBody">
            <ol id="CommentItemList">
            <asp:Repeater ID="rpCommentList" runat="server" OnItemCreated="rpCommentList_ItemCreated">
            <ItemTemplate>
            <li class="CommentItem"><a href="<%=MyBloggerUrl %>/CommentRedirect<%=ExtensionName %>?CommentID=<%# DataBinder.Eval(Container, "DataItem.ID")%>" title="<%#CommentFullTitle %>"><%#CommentTitle%></a></li>
            </ItemTemplate>
            <SeparatorTemplate><li class="CommentItem_Separator"><div></div></li></SeparatorTemplate>
            </asp:Repeater>
            </ol>
			</div>				
			<div class="BoxBottom"></div>
        </div>
        
    </form>
    
    </div>
    </div>
    
    <!--侧边栏-->
    <div id="Sidebar">
        <div id="Sidebar_Top"></div>
        <div id="Sidebar_Body"><asp:PlaceHolder ID="phSidebar" runat="server"></asp:PlaceHolder></div>
        <div id="Sidebar_Bottom"></div>
    </div>
    
</div>
</asp:Content>
