<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeepSoonFeedBack.aspx.cs" Inherits="Security.FeedBack" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<link rel="stylesheet" href="css/common.css" type="text/css" />
		<title>说说管理</title>
	</head>

	<body style="padding-right:30px;overflow:hidden;">
		<form runat="server" style="margin:0px;padding:0px;">
		<div id="man_zone">
			<span class="adminTitle">说说管理</span><br>
			<span class="adminGuid">
				[操作说明] 如果开启了说说审核后显示，点击[通过审核]后前台的说说才能显示。
			</span>
			<asp:GridView ID="myGridView"  DataKeyNames="ID" PageSize="9" OnPageIndexChanging="myGridView_PageIndexChanging" OnRowCommand="myGridView_RowCommand" runat="server" AutoGenerateColumns="false" AllowPaging="true" CellPadding="4" GridLines="None" BackColor="#DBE6E3" CellSpacing="1" Font-Bold="false"> 
				<FooterStyle BackColor="#FFFFFF" ForeColor="Black" />
				<RowStyle BackColor="#FFFFFF" ForeColor="Black" />
				<PagerStyle HorizontalAlign="Left"/>
				<HeaderStyle BackColor="#F7F7F7" Font-Bold="True" ForeColor="#404040" BorderColor="#A6CBEF" />
				<Columns> 
					<asp:TemplateField HeaderText=""> 
						<ItemTemplate> 
							<asp:CheckBox id="cbxId" runat="Server" /> 
						</ItemTemplate> 
					</asp:TemplateField> 			
					<asp:BoundField DataField="ID" HeaderText="ID" />
					<asp:BoundField DataField="FatherID" HeaderText="FatherID" />
					<asp:BoundField DataField="Content" HeaderText="内容"><HeaderStyle Width="200px"/></asp:BoundField>
					<asp:BoundField DataField="IPAddress" HeaderText="IP地址" />
					<asp:BoundField DataField="Author" HeaderText="作者" />
					<asp:BoundField DataField="DateStr" HeaderText="发布时间" />
					<asp:BoundField DataField="isPass" Visible=false HeaderText="通过审核" />
					<asp:TemplateField HeaderText="操作">
						<ItemTemplate> 
							<asp:LinkButton ID="linkButtonDel" runat="server" CausesValidation="False" CommandName="deleteFeedBack" CommandArgument='<%# Eval("ID")%>' Text="[删除]" OnClientClick='<%#  "if (!confirm(\"是否确认删除？\")) return false;"%>'></asp:LinkButton> &nbsp;
							<asp:LinkButton ID="linkButtonPass" runat="server" CausesValidation="False" CommandName="setPass" CommandArgument='<%# Eval("ID")%>' Text='<%# GetM(Eval("isPass").ToString())%>'/>
						</ItemTemplate> 
					</asp:TemplateField>
				</Columns>		
				<PagerTemplate>
					<asp:LinkButton ID="cmdFirstPage" runat="server" CommandName="Page" CommandArgument="First" Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>">首页</asp:LinkButton>
					<asp:LinkButton ID="cmdPreview" runat="server" CommandArgument="Prev" CommandName="Page" Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>">上页</asp:LinkButton>
					第<asp:Label ID="lblcurPage" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1  %>'></asp:Label>页/共<asp:Label ID="lblPageCount" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount %>'></asp:Label>页
					<asp:LinkButton ID="cmdNext" runat="server" CommandName="Page" CommandArgument="Next" Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>">下页</asp:LinkButton>
					<asp:LinkButton ID="cmdLastPage" runat="server" CommandArgument="Last" CommandName="Page" Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>">尾页</asp:LinkButton>&nbsp;			
					<asp:TextBox ID="txtGoPage" runat="server"  Width="40" value="1" MaxLength="6" onkeyup="value=value.replace(/[^\d]/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''));"></asp:TextBox>
					<asp:Button ID="btnGo" runat="server" Text="GO"  onclick="btnGo_Click"></asp:Button>			
				</PagerTemplate>
			</asp:GridView>	

			<asp:LinkButton ID="btnDelAll" runat="server" Text="删除选中" OnClick="btnDelAll_Click"/> | 
			<asp:LinkButton ID='btnTruncate' runat='server' Text='清空所有说说' OnClick='btnTruncate_Click'/>
		</div>
		</form>
	</body>
</html>