<%@ Page Language="C#" MasterPageFile="../../Admin.master" AutoEventWireup="true" CodeBehind="ArticleManage.aspx.cs" Inherits="Ruiao.WebSite.Blog.Admin.Article.ArticleManage" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMain" Runat="Server">

    <fieldset class="ContentBox">
    <div class="Head" onclick="BoxSwitch('mc_BloggerNotice','si_BloggerNotice')"><div class="Title"><%=MyTitle %></div><div id="si_BloggerNotice" class="SwitchIcon_Up"></div></div>
    <div class="Body" id="mc_BloggerNotice">
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px"><strong>注意事项：</strong></div><div class="ContentItem_03b" style="width:649px">
        <ul class="NotesMessage">
        <li>日志筛选中的条件均可忽略,按需填写条件进行查询即可,不需要的条件选项可以忽略.</li>
        <li>系统后台不允许直接对日志进行编辑,点"编辑"将会跳转到相应博客的日志编辑界面.</li>
        <li>点"设置"将可以设置该日志的一些系统属性,例如是否为推荐日志等.</li>
        </ul>
        </div></div>
    </div>
    <div class="Bottom"></div>
	</fieldset>
	<div class="ContentBox_Separator"></div>
	
	<fieldset class="ContentBox">
    <div class="Head" onclick="BoxSwitch('mc_DataSelect','si_DataSelect')"><div class="Title">博客日志筛选：</div><div id="si_DataSelect" class="SwitchIcon_Down"></div></div>
    <div class="Body" id="mc_DataSelect" style="display:none;">
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">推荐日志：</div><div class="ContentItem_03b" style="width:649px"><asp:DropDownList ID="ddlCommend" runat="server"></asp:DropDownList></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">频道：</div><div class="ContentItem_03b" style="width:649px"><asp:DropDownList ID="ddlChannel" runat="server"></asp:DropDownList></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">类型：</div><div class="ContentItem_03b" style="width:649px"><asp:DropDownList ID="ddlPostType" runat="server"></asp:DropDownList></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">状态：</div><div class="ContentItem_03b" style="width:649px"><asp:DropDownList ID="ddlState" runat="server"></asp:DropDownList><asp:CheckBox ID="cbxPostStateIn" runat="server" Text="状态包含" /></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">所属博客ID：</div><div class="ContentItem_03b" style="width:649px"><asp:TextBox ID="tbBlogID" runat="server"></asp:TextBox></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">Tag标签：</div><div class="ContentItem_03b" style="width:649px"><asp:TextBox ID="tbTag" runat="server"></asp:TextBox></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">关键字：</div><div class="ContentItem_03b" style="width:649px"><asp:TextBox ID="tbKeyword" runat="server"></asp:TextBox></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">发表时间：</div><div class="ContentItem_03b" style="width:649px"><asp:DropDownList ID="ddlPostTime" runat="server"><asp:ListItem Value="1">多于</asp:ListItem><asp:ListItem Value="2">少于</asp:ListItem></asp:DropDownList><asp:TextBox ID="tbPostTimeDay" runat="server" Width="30px" /> 天</div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">添加时间：</div><div class="ContentItem_03b" style="width:649px"><asp:DropDownList ID="ddlAddTime" runat="server"><asp:ListItem Value="1">多于</asp:ListItem><asp:ListItem Value="2">少于</asp:ListItem></asp:DropDownList><asp:TextBox ID="tbAddTimeDay" runat="server" Width="30px" /> 天</div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">最后更新时间：</div><div class="ContentItem_03b" style="width:649px"><asp:DropDownList ID="ddlUpdateTime" runat="server"><asp:ListItem Value="1">多于</asp:ListItem><asp:ListItem Value="2">少于</asp:ListItem></asp:DropDownList><asp:TextBox ID="tbUpdateTimeDay" runat="server" Width="30px" /> 天</div></div>
        <div class="ContentItem">        
        <asp:Button ID="btSelectData" runat="server" Text="筛选日志" OnClick="btSelectData_Click" CssClass="LinkButton" />
        </div>
    </div>
    <div class="Bottom"></div>
	</fieldset>
	<div class="ContentBox_Separator"></div>
	
	<table id="MemberList" class="MainContentTable" cellspacing="1">
	<tr class="HeadTR">
		<td class="HeadTD" style="width:260px;">标题</td>
		<td class="HeadTD" style="width:80px;">日志状态</td>
		<td class="HeadTD" style="width:60px;">所属博客</td>
		<td class="HeadTD" style="width:60px;">所属频道</td>
		<td class="HeadTD" style="width:80px;">评论/浏览</td>
		<td class="HeadTD" style="width:80px;">添加时间</td>
		<td class="HeadTD" style="width:120px;">操作</td>
	</tr>
	<tr class="ItemTR">
	    <td colspan="7" class="ItemTD" style="width:100%; text-align:left"><strong>符合条件的日志共计：<span style="color:Red; margin:0px 2px 0px 2px"><%=Pager.RecordCount %></span>篇</strong></td>
	</tr>
    <asp:Repeater ID="rpArticleList" runat="server" OnItemCreated="rpArticleList_ItemCreated">
    <ItemTemplate>
    <tr class="ItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='ItemTR';">
		<td class="ItemTD" style="text-align:left"><a target="_blank" href="<%#NowArticlePath %>/<%#NowArticleFile %>"><%# DataBinder.Eval(Container, "DataItem.Title") %></a></td>
		<td class="ItemTD"><%# StateText%></td>
		<td class="ItemTD"><a target="_blank" href="<%#NowArticlePath %>/Default<%=ExtensionName %>" title="<%# MyBlogData.Title %>"><%# MyBlogData.Name %></a></td>
		<td class="ItemTD"><%# MyChannel.DisplayName %></td>
		<td class="ItemTD"><%# DataBinder.Eval(Container, "DataItem.CommentCount")%>/<%# DataBinder.Eval(Container, "DataItem.ViewCount")%></td>
		<td class="ItemTD"><%# ((DateTime)DataBinder.Eval(Container, "DataItem.AddTime")).ToString("yyyy-MM-dd") %></td>
		<td class="ItemTD"><a target="_blank" href="<%#NowArticlePath %>/Admin/Article/Post_<%#NowArticleType %>Edit<%=ExtensionName %>?PostID=<%# DataBinder.Eval(Container, "DataItem.ID")%>">编辑</a> | <a href="ArticleSetting<%=ExtensionName %>?ArticleID=<%# DataBinder.Eval(Container, "DataItem.ID")%>">设置</a> | <a href="ArticleDelete<%=ExtensionName %>?ArticleID=<%# DataBinder.Eval(Container, "DataItem.ID")%>">删除</a></td>
	</tr>
    </ItemTemplate>
    </asp:Repeater>
    
    <tr class="ItemTR">
    <td class="ItemTD" colspan="8" style="text-align:left;">
    <webdiyer:AspNetPager ID="Pager" runat="server" OnPageChanged="Pager_PageChanged" AlwaysShow="True" UrlPaging="False" />
    </td>
    </tr>
    
    </table>
</asp:Content>