<%@Page Language="C#" Inherits="IWMS.Admin.RemarkCheck" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<%BtDelete.Attributes["onclick"] = "return confirm_batch_delete()";%>
	<style type="text/css">
	.pBody {border:1px solid #ccc;border-left:4px solid #ccc;color:#666;padding:2px;margin-bottom:2px}
	</style>
</asp:Content>

<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt">审核评论</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
		<form id="myForm" runat="server">
		<ASP:DataGrid id="MyDataGrid" runat="server"
				Width="100%"
				align="center"
				ShowHeader="true"
				ShowFooter="false"
				AutoGenerateColumns="false"
				DataKeyField="remarkid"
				CssClass="grid"
				BorderColor="#cccccc"
				HeaderStyle-CssClass="gridHead"
				ItemStyle-CssClass="tdbg"
				Style="word-break:break-all;"
				CellPadding="6"
				CellSpacing="0" >
			
			<Columns>
				<asp:TemplateColumn
					HeaderText="<input type=&quot;checkbox&quot; onclick=&quot;checkFormAll(this)&quot;/>"
					>
					<ItemTemplate>
						<asp:CheckBox id="chk" runat="server"/>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="20"/>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="评论内容"
					>
					<ItemTemplate>
					<%#Eval("body")%>
					</ItemTemplate>
				</asp:TemplateColumn>
				<asp:TemplateColumn
					HeaderText="作者/IP"
					>
					<ItemTemplate>
					<%#Eval("username")%><br/><%#Eval("ip")%>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="center" />
					<HeaderStyle Width="80"/>
				</asp:TemplateColumn>
				<asp:BoundColumn
					HeaderText="日期"
					DataField="dateandtime"
					DataFormatString="{0:yyyy-MM-dd}"
					ReadOnly="true">
					<ItemStyle  HorizontalAlign="center" />
					<HeaderStyle Width="70"/>
				</asp:BoundColumn>
				<asp:TemplateColumn
					HeaderText="新闻">
					<ItemTemplate>
					<a href="show.aspx?id=<%#Eval("articleid")%>&amp;cid=<%#Eval("classid")%>" target="_blank" title="<%#Eval("title").ToString().Replace("\"","&quot;")%>"><%#StringLeft(Eval("title").ToString(),16)%></a>
					</ItemTemplate>
					<ItemStyle HorizontalAlign="left" />
					<HeaderStyle Width="120"/>
				</asp:TemplateColumn>
			</Columns>
		</ASP:DataGrid>
		
		<table><tr><td>
		<asp:Literal id="PageList" runat="server"/>
		</td></tr>
		<tr><td>
			<asp:Button id="BtDelete" OnClick="BtDelete_OnClick" Text="删除" runat="server"/>
			&nbsp; <asp:Button id="BtPass" OnClick="BtPass_OnClick" Text="审核通过" runat="server"/>
		</td></tr>
		</table>
		
		</form>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>

</asp:Content>