<%@ Page Language="C#" MasterPageFile="Blog.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Blog.Blog_Default" Codebehind="Default.aspx.cs" %>
<asp:Content ID="MyHead" ContentPlaceHolderID="cphHead" Runat="Server"  EnableViewState="false">
<link href="<%=AppUrl %>/SySkins/<%=Config["SySkin"] %>/Page_Default.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" href="<%=AppUrl %>/RSS2<%=ExtensionName %>" title="订阅<%=Config["SystemName"] %>的最新日志(rss2)" />
<link rel="alternate" type="application/atom+xml" href="<%=AppUrl %>/Atom<%=ExtensionName %>" title="订阅<%=Config["SystemName"] %>的最新日志(atom)" />
</asp:Content>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMain" Runat="Server">

<!--主内容容器-->
<div id="ContentContainer">

    <!--顶部左侧内容-->
    <div id="LeftContentContainer">

        <!--博客之星-->
        <div id="BlogStar">
            <div class="Title"><span>博客之星</span>
            <div class="More" onclick="location='/BlogStar<%=ExtensionName %>'" title="浏览以往更多博客之星..."><span>更多...</span></div>
            </div>
            <div class="ItemContainer">
            <script type="text/javascript">
                <!-- 
                var focus_width=265
                var focus_height=200
                var text_height=22
                var swf_height = focus_height+text_height
                var pics='<%=BlogStar_Image %>'
                var links='<%=BlogStar_Url %>'
                var texts='<%=BlogStar_Text %>'
                document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
                document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="<%=AppUrl %>/SySkins/<%=Config["SySkin"] %>/focus.swf"> <param name="quality" value="high"><param name="bgcolor" value="#F7F7F7">');
                document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
                document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
                document.write('<embed src="<%=AppUrl %>/SySkins/<%=Config["SySkin"] %>/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" ?bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
            //-->
            </script>
            </div>
            <div class="Bottom"></div>
        </div>

        <!--人气主题-->
        <div id="hvPost">
            <div class="hvPost_Title"><span>人气主题</span></div>
            <div class="hvPost_ItemContainer">
            <ul>
            <asp:Repeater ID="rphvPost" runat="server" OnItemCreated="rphvPost_ItemCreated" EnableViewState="false">
            <ItemTemplate>
            <li id="hvPost_Item_<%# DataBinder.Eval(Container, "ItemIndex") %>" class="hvPost_Item">
            <span class="hvPost_Item_Title"><a href="<%#hvPostPath %>/<%#hvPostFile %>" title="<%# Cnlamar.DataType.TextCheck.HtmlClean(DataBinder.Eval(Container, "DataItem.Title").ToString()) %>"><%# Cnlamar.DataType.TextCheck.HtmlClean(DataBinder.Eval(Container, "DataItem.Title").ToString()) %></a></span>
            <span class="hvPost_Item_PostTime"><%# DataBinder.Eval(Container, "DataItem.ViewCount")%></span>
            <span class="hvPost_Item_Blogger"><a href="<%#hvPostPath %>/Default<%=ExtensionName %>" title="日志作者：<%# DataBinder.Eval(Container, "DataItem.AuthorName")%>,点击访问作者博客"><%# DataBinder.Eval(Container, "DataItem.AuthorName")%></a></span>
            </li>
            </ItemTemplate>
            <SeparatorTemplate><div class="hvPost_Separator"><div></div></div></SeparatorTemplate>
            </asp:Repeater>
            </ul>
            </div>
            <div class="hvPost_Bottom"></div>
        </div>

        <!--热评主题-->
        <div id="hcPost">
            <div class="hcPost_Title"><span>热评主题</span></div>
            <div class="hcPost_ItemContainer">
            <ul>
            <asp:Repeater ID="rphcPost" runat="server" OnItemCreated="rphcPost_ItemCreated" EnableViewState="false">
            <ItemTemplate>
            <li id="hcPost_Item_<%# DataBinder.Eval(Container, "ItemIndex") %>" class="hcPost_Item">
            <span class="hcPost_Item_Title"><a href="<%#hcPostPath %>/<%#hcPostFile %>" title="<%# Cnlamar.DataType.TextCheck.HtmlClean(DataBinder.Eval(Container, "DataItem.Title").ToString()) %>"><%# Cnlamar.DataType.TextCheck.HtmlClean(DataBinder.Eval(Container, "DataItem.Title").ToString()) %></a></span>
            <span class="hcPost_Item_PostTime"><%# DataBinder.Eval(Container, "DataItem.CommentCount")%></span>
            <span class="hcPost_Item_Blogger"><a href="<%#hcPostPath %>/Default<%=ExtensionName %>" title="日志作者：<%# DataBinder.Eval(Container, "DataItem.AuthorName")%>,点击访问作者博客"><%# DataBinder.Eval(Container, "DataItem.AuthorName")%></a></span>
            </li>
            </ItemTemplate>
            <SeparatorTemplate><div class="hcPost_Separator"><div></div></div></SeparatorTemplate>
            </asp:Repeater>
            </ul>
            </div>
            <div class="hcPost_Bottom"></div>
        </div>

    </div>

    <!--顶部中间内容-->
    <div id="CenterContentContainer">

        <!--推荐日志-->
        <div id="CommendArticle">
            <div class="CommendArticle_Title"><span>最新日志</span></div>
            <div class="CommendArticle_ItemContainer">
            <ul>
            <asp:Repeater ID="rpCommendArticle" runat="server" OnItemCreated="rpCommendArticle_ItemCreated" EnableViewState="false">
            <ItemTemplate>
            <li id="CommendArticle_Item_<%# DataBinder.Eval(Container, "ItemIndex") %>" class="CommendArticle_Item">
            <span class="CommendArticle_Item_Title"><a href="<%#CommendPostPath %>/<%#CommendPostFile %>" title="<%# Cnlamar.DataType.TextCheck.HtmlClean(DataBinder.Eval(Container, "DataItem.Title").ToString()) %>"><%# Cnlamar.DataType.TextCheck.HtmlClean(DataBinder.Eval(Container, "DataItem.Title").ToString())%></a></span>
            <span class="CommendArticle_Item_PostTime" title="<%# CommendPostTime.ToString("") %>"><%# CommendPostTime.ToString("hh:ss") %></span>
            <span class="CommendArticle_Item_Blogger"><a href="<%#CommendPostPath %>/Default<%=ExtensionName %>" title="日志作者：<%# DataBinder.Eval(Container, "DataItem.AuthorName")%>,点击访问作者博客"><%# DataBinder.Eval(Container, "DataItem.AuthorName")%></a></span>
            </li>
            </ItemTemplate>
            <SeparatorTemplate><div class="CommendArticle_Item_Separator"><div></div></div></SeparatorTemplate>
            </asp:Repeater>
            </ul>
            </div>
            <div class="CommendArticle_Bottom"></div>
        </div>

        <!--最新日志-->
        <div id="NewPost">
            <div class="NewPost_Title"><span>最新日志</span></div>
            <div class="NewPost_ItemContainer">
            <ul>
            <asp:Repeater ID="rpNewPost" runat="server" OnItemCreated="rpNewPost_ItemCreated" EnableViewState="false">
            <ItemTemplate>
            <li id="NewPost_Item_<%# DataBinder.Eval(Container, "ItemIndex") %>" class="NewPost_Item">
            <span class="NewPost_Item_Title"><a href="<%#NewPostPath %>/<%#NewPostFile %>" title="<%# Cnlamar.DataType.TextCheck.HtmlClean(DataBinder.Eval(Container, "DataItem.Title").ToString()) %>"><%# Cnlamar.DataType.TextCheck.HtmlClean(DataBinder.Eval(Container, "DataItem.Title").ToString())%></a></span>
            <span class="NewPost_Item_PostTime" title="<%# NewPostTime.ToString("") %>"><%# NewPostTime.ToString("hh:ss") %></span>
            <span class="NewPost_Item_Blogger"><a href="<%#NewPostPath %>/Default<%=ExtensionName %>" title="日志作者：<%# DataBinder.Eval(Container, "DataItem.AuthorName")%>,点击访问作者博客"><%# DataBinder.Eval(Container, "DataItem.AuthorName")%></a></span>
            </li>
            </ItemTemplate>
            <SeparatorTemplate><div class="NewPost_Item_Separator"><div></div></div></SeparatorTemplate>
            </asp:Repeater>
            </ul>
            </div>
            <div class="NewPost_Bottom"></div>
        </div>

    </div>

    <!--中部广告条-->
    <div id="Banner750x70_1"><img alt="ruiao" src="http://service.ruiao.org/Images/750x60_1.gif" /></div>

    <!--底部频道最新日志-->
    <div id="ChannelArticleList">
        <asp:Repeater ID="rpChannel" runat="server" EnableViewState="false">
        <ItemTemplate>
        <div id="ChannelPost_<%# DataBinder.Eval(Container, "ItemIndex") %>" class="ChannelPost">
            <div class="Title"><span><%# DataBinder.Eval(Container, "DataItem.DisplayName") %></span>
            <div class="More" onclick="location='/Channel<%=ExtensionName %>?ChannelID=<%# DataBinder.Eval(Container, "DataItem.ID")%>'" title="浏览更多该频道的日志..."><span>更多...</span></div>
            </div>
            <div class="ItemContainer">
            <ul>
            <asp:Repeater ID="rpChannelPost" runat="server" DataSource='<%# LoadChannelPost((int)DataBinder.Eval(Container, "DataItem.ID")) %>' OnItemCreated="rpChannelPost_ItemCreated" EnableViewState="false">
                <ItemTemplate>
                <li id="Item_<%# DataBinder.Eval(Container, "ItemIndex") %>" class="Item">
                <span class="Item_Title"><a href="<%#ChannelPostPath %>/<%#ChannelPostFile %>" title="<%# Cnlamar.DataType.TextCheck.HtmlClean(DataBinder.Eval(Container, "DataItem.Title").ToString()) %>"><%# Cnlamar.DataType.TextCheck.HtmlClean(DataBinder.Eval(Container, "DataItem.Title").ToString()) %></a></span>
                </li>
                </ItemTemplate>
                <SeparatorTemplate><div class="Item_Separator"><div></div></div></SeparatorTemplate>
            </asp:Repeater>
            </ul>
            </div>
            <div class="Bottom"></div>
        </div>
        </ItemTemplate>
        <SeparatorTemplate><div class="ChannelPost_Separator"></div></SeparatorTemplate>
        </asp:Repeater>
    </div>

</div>

<!--友情链接-->
<div id="FriendLinks">
    <div class="Title"><span>友情链接</span></div>
    <div class="ItemContainer">
        <ul>
        <asp:Repeater ID="rpFriendLink" runat="server" EnableViewState="false">
        <SeparatorTemplate><li class="Item_Separator"><div /></li></SeparatorTemplate>
        <ItemTemplate>
        <li id="FriendLinks_<%# DataBinder.Eval(Container, "ItemIndex") %>" class="Item" style="width:75px;"><a href="<%# DataBinder.Eval(Container, "DataItem.Url")%>"><span><%# DataBinder.Eval(Container, "DataItem.Name")%></span></a></li>
        </ItemTemplate>
        </asp:Repeater>
        </ul>
    </div>
</div>

</asp:Content>