<%@ Page Language="C#" MasterPageFile="../BloggerAdmin.master" AutoEventWireup="true" Inherits="Ruiao.WebSite.Blogger.Admin.Comment.CommentOperation" Codebehind="CommentOperation.aspx.cs" %>
<asp:Content ID="MyHead" ContentPlaceHolderID="phHead" Runat="Server">
<script type="text/javascript">
//<![CDATA[
function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}else{ var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}
//]]>
</script>
<script type="text/javascript" src="<%=AppUrl %>/Common/Script/fat.js"></script>
</asp:Content>
<asp:Content ID="MyContent" ContentPlaceHolderID="cphMainAdmin" Runat="Server">
<form id="MainForm" runat="server">
<div id="ContentTitle"><%=MyTitle %></div>
<div id="ContentBody">
    <div id="message" class="Nav_Title fade"><p><strong>以下评论将被<strong><%=ActionText %></strong>，请在确认无误后，再进行操作。</strong></p></div>
    <asp:Repeater ID="rpComment" runat="server">
    <HeaderTemplate>
    <table id="ReferersList" class="MainContentTable" cellpadding="3" cellspacing="1">
	<tr class="MainContentList_HeadTR">
		<td class="MainContentList_HeadTD" style="width:30px;">ID</td>
		<td class="MainContentList_HeadTD" style="width:auto;">标题</td>
		<td class="MainContentList_HeadTD" style="width:60px;">状态</td>
		<td class="MainContentList_HeadTD" style="width:120px;">作者</td>
		<td class="MainContentList_HeadTD" style="width:120px;">IP地址</td>
		<td class="MainContentList_HeadTD" style="width:120px;">评论时间</td>
		<td class="MainContentList_HeadTD" style="width:80px;">选择</td>
	</tr>
    </HeaderTemplate>
    <ItemTemplate>
    	<tr class="MainContentList_ItemTR">
		<td class="MainContentList_ItemTD"><asp:Label ID="lbID" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ID")%>' /></td>
		<td class="MainContentList_ItemTD" style="text-align:left;"><%# DataBinder.Eval(Container, "DataItem.Title")%></td>
		<td class="MainContentList_ItemTD"><%# (DataBinder.Eval(Container, "DataItem.CommentState").ToString() == "2")?"已审核":"未审核"%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.AuthorName")%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.AuthorIP")%></td>
		<td class="MainContentList_ItemTD"><%# DataBinder.Eval(Container, "DataItem.AddTime") %></td>
		<td class="MainContentList_ItemTD"><asp:CheckBox ID="cbxSelect" runat="server" Checked="true" /></td>
	</tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:Repeater>
    <div style="text-align:right; padding:5px;"><asp:Button ID="btEnter" runat="server" Text='确认操作' OnClick="btEnter_Click" CssClass="SubmitButton" /></div>
</div>
<div id="ContentBottom"></div>
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
</form>
</asp:Content>
