<%@ Page Language="C#" MasterPageFile="../BloggerAdmin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Blogger.Admin.Article.PostManage" Codebehind="PostManage.aspx.cs" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMainAdmin" Runat="Server">
<form id="MainForm" runat="server">
<div id="ContentTitle"><%=MyTitle %></div>
<div id="ContentBody">
    <fieldset class="ContentBox">
    <div class="ContentBox_Head" onclick="BoxSwitch('mcBody','siBody','/Blogger/Admin/Images/Box_')"><div style="float:left;">日志筛选：</div><div id="siBody" class="SwitchIcon_Down"></div></div> 
    <div class="ContentBox_ContentBox" id="mcBody" style="display:none;">
        <div class="ContentBox_ContentItem">
        类型：<asp:DropDownList ID="ddlPostType" runat="server"></asp:DropDownList>
        
        分类：<asp:DropDownList ID="ddlCategory" runat="server"></asp:DropDownList>
        
        时间：<asp:DropDownList ID="ddlDate" runat="server"></asp:DropDownList>
        
        状态：<asp:DropDownList ID="ddlPostState" runat="server"></asp:DropDownList>
        
        关键字：<asp:TextBox ID="tbKeyword" runat="server" Width="64px"></asp:TextBox>
        <asp:Button ID="btSelectData" runat="server" Text="筛选日志" OnClick="btSelectData_Click" CssClass="LinkButton" />
        </div>
    </div>
	</fieldset>
    <br />
    <asp:Repeater ID="rpArticleList" runat="server" OnItemCreated="rpArticleList_ItemCreated">
    <HeaderTemplate>
    <table id="ArticleList" class="MainContentTable" cellpadding="3" cellspacing="1">
	<tr class="MainContentList_HeadTR">
		<td class="MainContentList_HeadTD" style="width:auto;">标题</td>
		<td class="MainContentList_HeadTD" style="width:60px;">分类</td>
		<td class="MainContentList_HeadTD" style="width:30px;">阅读</td>
		<td class="MainContentList_HeadTD" style="width:30px;">评论</td>
		<td class="MainContentList_HeadTD" style="width:60px;">Trackback</td>
		<td class="MainContentList_HeadTD" style="width:120px;">发表时间</td>
		<td class="MainContentList_HeadTD" style="width:100px;">操作</td>
	</tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr class="MainContentList_ItemTR">
		<td class="MainContentList_ItemTD" style="text-align:left"><a href="<%# PostPath %>/<%# PostFile %>"><%# DataBinder.Eval(Container, "DataItem.Title") %></a></td>
		<td class="MainContentList_ItemTD"><%# CategoryName%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.ViewCount")%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.CommentCount")%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.TrackbackCount")%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.PostTime") %></td>
		<td class="MainContentList_ItemTD"><a href="./Post_<%# DataBinder.Eval(Container, "DataItem.PostType") %>Edit<%=ExtensionName %>?PostID=<%# DataBinder.Eval(Container, "DataItem.ID")%>">编辑</a> | <a href="./PostDelete<%=ExtensionName %>?PostID=<%# DataBinder.Eval(Container, "DataItem.ID")%>">删除</a></td>
	</tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:Repeater>
    <webdiyer:AspNetPager ID="Pager" PageSize="20" runat="server" OnPageChanged="Pager_PageChanged" AlwaysShow="True" UrlPaging="False" >
    </webdiyer:AspNetPager>
</div>
<div id="ContentBottom"></div>
</form>
</asp:Content>