<%@ Page Language="C#" MasterPageFile="Blogger.master" AutoEventWireup="true" EnableViewState="false" Inherits="Ruiao.WebSite.Blogger.Default" Codebehind="Default.aspx.cs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phHead" runat="server"></asp:Content>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMain" Runat="Server">

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

    <!--主要内容部分-->
    <div id="ContentContainer">
    <div id="innerContentContainer">
    
        <!--主表单-->
        <form id='MainForm' runat="server">
            
            <!--日志列表-->
            <div id="ArticleList" class="ListBox_Normal">
                <div class="BoxTitle">
                    <div class="BoxTitle_Left"><a><span>最新日志</span></a></div>
                    <div class="BoxTitle_Right">
                    <%if(IsBlogOwnerMember) {%>
                        <a id="ArticleAdd" href="<%=MyBloggerUrl %>/Admin/Article/Post_ArticleAdd<%=ExtensionName %>"><span><img alt="发表日志" src="<%=AppUrl %>/Skins/<%=SkinInfo.SkinPath%>/TitleIcon_Post.gif"></span></a>
                        <a id="ArticleManage" href="<%=MyBloggerUrl %>/Admin/Article/PostManage<%=ExtensionName %>"><span><img alt="日志管理" src="<%=AppUrl %>/Skins/<%=SkinInfo.SkinPath%>/TitleIcon_Manage.gif"></span></a>
                    <%} %>
                    </div>
                </div>
                <div class="BoxBody">
                    <ol id="ArticleItemList">
                    <asp:Repeater ID="rpArticleList" runat="server" OnItemCreated="rpArticleList_ItemCreated">
                    <ItemTemplate>
                        <li id="ArticleItem_<%# DataBinder.Eval(Container, "ItemIndex") %>" class="ArticleItem_<%# ((int)DataBinder.Eval(Container, "ItemIndex")%2==0)?"A":"B" %>">
                            <div class="ArticleTop">
                                <div class="ArticleTop_Left"></div>
                                <h3 class="ArticleTop_Title"><a href="<%= MyBloggerUrl %>/<%# PostFile %>"><span><%# DataBinder.Eval(Container, "DataItem.Title") %></span></a></h3>
                                <div class="Body_Limit" onclick="ContentBodyShow(this,'ArticleContent_<%# DataBinder.Eval(Container, "DataItem.ID") %>')"></div>
                                <div class="ArticleTop_Right"></div>
                            </div>
                            <div id="ArticleContent_<%# DataBinder.Eval(Container, "DataItem.ID") %>" class="ArticleContent">
                                <div class="ArticleContent_Body"><%# PostBody %><%if(ShowExcerpt){%><a class="ReadFullArticle" href="<%= MyBloggerUrl %>/<%# PostFile %>"><span>阅读全文</span></a><%}%></div>
                                <h4 class="ArticleContent_Tags"><%# TagHtml%></h4>
                                <div class="ArticleContent_Bottom">
                                    <div class="ArticleContent_Bottom_Left"></div>
                                    <div class="ArticleContent_Bottom_Body">
                                        <span class="ArticleContent_Bottom_Posted">Posted @<%#PostTime.ToString(DateFormat) %></span>
                                        <span class="ArticleContent_Bottom_AuthorName"><%# DataBinder.Eval(Container, "DataItem.AuthorName") %>
                                        <span class="ArticleContent_Bottom_ViewCount">阅读(<%# DataBinder.Eval(Container, "DataItem.ViewCount") %>)
                                        <span class="ArticleContent_Bottom_Comment"><a href="<%= MyBloggerUrl %>/<%# PostFile %>#CommentTop">评论(<%# DataBinder.Eval(Container, "DataItem.CommentCount")%>)</a>
                                        <span class="ArticleContent_Bottom_Category">分类:<%#CategoryHtml %></span>
                                    </div>
                                    <div class="ArticleContent_Bottom_Right"></div>
                                </div>
                            </div>
                        </li>
                    </ItemTemplate>
                    <SeparatorTemplate><li class="ArticleItem_Separator"><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>