<%@ Page language="c#" Codebehind="admin_listpl.aspx.cs" AutoEventWireup="false" Inherits="baoge.Admin.admin_listpl" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>admin_listpl</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../CSS.css" type="text/css" rel="stylesheet">
		<script language="javascript">
                                        function SelectAll(tempControl)
                                        {
                                          var theBox=tempControl;
                                              xState=theBox.checked;    
                                              elem=theBox.form.elements;
                                              for(i=0;i<elem.length;i++)
                                                if(elem[i].type=="checkbox" && elem[i].id!=theBox.id)
                                                 {
                                                     if(elem[i].checked!=xState)
                                                        elem[i].click();
                                                 }
                                         }
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<TABLE id="Table1" style="BORDER-RIGHT: #8aa6e5 1px solid; BORDER-TOP: #8aa6e5 1px solid; BORDER-LEFT: #8aa6e5 1px solid; BORDER-BOTTOM: #8aa6e5 1px solid"
					cellSpacing="1" cellPadding="5" width="96%" align="center" border="0">
					<TR>
						<TD bgColor="#8aa6e5"><STRONG><FONT color="#ffffff">评论管理</FONT></STRONG></TD>
					</TR>
					<TR>
						<TD align="center" bgColor="#d6dff7"><asp:datagrid id="GonGaoGrid" runat="server" Width="98%" CellPadding="5" AutoGenerateColumns="False">
								<HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="#215DC6"></HeaderStyle>
								<Columns>
									<asp:TemplateColumn Visible="False">
										<ItemTemplate>
											<asp:Label id=seleid Text='<%#  DataBinder.Eval(Container,"DataItem.plid") %>' Runat="server">
											</asp:Label>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn DataField="plid" HeaderText="ID">
										<HeaderStyle Font-Bold="True" HorizontalAlign="Center"></HeaderStyle>
									</asp:BoundColumn>
									<asp:HyperLinkColumn DataNavigateUrlField="plid" DataNavigateUrlFormatString="Admin_Editpl.aspx?ID={0}"
										DataTextField="plname" HeaderText="评论人">
										<HeaderStyle Font-Bold="True" HorizontalAlign="Center"></HeaderStyle>
									</asp:HyperLinkColumn>
									<asp:BoundColumn DataField="pltime" HeaderText="发布时间" DataFormatString="{0:d}"></asp:BoundColumn>
									<asp:BoundColumn DataField="plface" HeaderText="评论图片" DataFormatString="&lt;img src='../img/face{0}.gif'&gt;&lt;/img&gt;"></asp:BoundColumn>
									<asp:HyperLinkColumn Text="删除" DataNavigateUrlField="plid" DataNavigateUrlFormatString="Admin_Deletepl.aspx?ID={0}"></asp:HyperLinkColumn>
									<asp:TemplateColumn>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
										<HeaderTemplate>
											<asp:CheckBox id="chkHeader" title="全 选" onclick="javascript:SelectAll(this);" runat="server"
												EnableViewState="false" AutoPostBack="False"></asp:CheckBox>
										</HeaderTemplate>
										<ItemTemplate>
											<asp:CheckBox id="selects" EnableViewState="False" Runat="server"></asp:CheckBox>
										</ItemTemplate>
									</asp:TemplateColumn>
								</Columns>
								<PagerStyle Visible="False" HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
							</asp:datagrid></TD>
					</TR>
				</TABLE>
				<TABLE id="Table2" style="BORDER-RIGHT: #8aa6e5 1px solid; BORDER-TOP: #8aa6e5 1px solid; BORDER-LEFT: #8aa6e5 1px solid; BORDER-BOTTOM: #8aa6e5 1px solid"
					cellSpacing="0" cellPadding="0" width="96%" align="center" border="0">
					<TR>
						<TD><webdiyer:aspnetpager id="haha" runat="server" CustomInfoSectionWidth="50%" ShowCustomInfoSection="Left"
								PrevPageText="上页" NextPageText="下页" LastPageText="尾页" FirstPageText="首页" SubmitButtonText="转到" ShowInputBox="Always"></webdiyer:aspnetpager></TD>
					</TR>
				</TABLE>
			</FONT>
			<TABLE id="Table8" style="BORDER-RIGHT: #8aa6e5 1px solid; BORDER-TOP: #8aa6e5 1px solid; BORDER-LEFT: #8aa6e5 1px solid; BORDER-BOTTOM: #8aa6e5 1px solid"
				cellSpacing="0" cellPadding="0" width="96%" align="center" border="0">
				<TR>
					<TD align="center">
						<asp:button id="deleteall" tabIndex="2" runat="server" Text="全部删除" CausesValidation="False"
							CssClass="button" EnableViewState="False"></asp:button>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
