<%@ Page Language="C#" MasterPageFile="../Admin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Blog.Admin.BloggerManage" Codebehind="BloggerManage.aspx.cs" %>
<%@ 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>
        <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="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="ddlState" 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:TextBox ID="tbName" runat="server"></asp:TextBox><asp:CheckBox ID="cbxIsFullName" runat="server" Text="匹配完整博客名称" /></div></div>
        <div class="ContentItem_03"><div class="ContentItem_03a" style="width:120px">博客标题：</div><div class="ContentItem_03b" style="width:649px"><asp:TextBox ID="tbTitle" runat="server"></asp:TextBox><asp:CheckBox ID="cbxIsFullTitle" runat="server" Text="匹配完整博客标题" /></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">        
        <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:60px;">名称</td>
		<td class="HeadTD" style="width:220px;">标题</td>
		<td class="HeadTD" style="width:40px;">状态</td>
		<td class="HeadTD" style="width:60px;">所属会员</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:160px;">操作</td>
	</tr>
	<tr class="ItemTR">
	    <td colspan="8" 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="rpBloggerList" runat="server" OnItemCreated="rpBloggerList_ItemCreated">
    <ItemTemplate>
    <tr class="ItemTR" onmouseover="this.className='onItemTR';" onmouseout="this.className='ItemTR';">
        <td class="ItemTD"><%# DataBinder.Eval(Container, "DataItem.Name") %></a></td>
		<td class="ItemTD" style="text-align:left"><a href="<%=AppUrl %>/<%=Config["BloggerPath"]%>/<%# DataBinder.Eval(Container, "DataItem.Name") %>/Default<%=ExtensionName %>"><%# DataBinder.Eval(Container, "DataItem.Title") %></a></td>
		<td class="ItemTD"><%# StateText%></td>
		<td class="ItemTD"><%# OwnerMember.DisplayName %></td>
		<td class="ItemTD"><%# MyChannel.DisplayName %></td>
		<td class="ItemTD"><%# DataBinder.Eval(Container, "DataItem.PostCount")%>/<%# DataBinder.Eval(Container, "DataItem.CommentCount")%></td>
		<td class="ItemTD"><%# ((DateTime)DataBinder.Eval(Container, "DataItem.AddTime")).ToString("yyyy-MM-dd") %></td>
		<td class="ItemTD">
		<a href="<%=AppUrl %>/<%=Config["BloggerPath"]%>/<%# DataBinder.Eval(Container, "DataItem.Name") %>/Admin/Default<%=ExtensionName %>">控制面板</a> | <a href="BloggerSetting<%=ExtensionName %>?BloggerID=<%# DataBinder.Eval(Container, "DataItem.ID") %>">系统设置</a> | <a href="<%=AppUrl %>/Admin/Blogger/BloggerDelete<%=ExtensionName %>?BloggerID=<%# 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>