<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Manageliuyan.aspx.cs" Inherits="manage_Manageliuyan" %>

<!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 runat="server">
    <title>无标题页</title>
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
    <div>
        <table style="width: 699px">
            <tr>
                <td colspan="3">
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:GridView ID="LiuyanGridView" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="20" Width="100%" DataKeyNames="LeavewordID">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkBox" runat="server" ForeColor="Blue" />
                                </ItemTemplate>
                                <ItemStyle Width="60px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="留言内容">
                                <ItemStyle HorizontalAlign="Left" />
                                <ItemTemplate>
                                <a href='Replyleaveword.aspx?ShowID=<%# DataBinder.Eval(Container.DataItem,"LeavewordID") %>' target="_blank"><%#Myleaveword((string)DataBinder.Eval(Container.DataItem,"Content"))%></a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="私密">
                                <ItemStyle Width="60px" />
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbox2" runat="server" Enabled="False" ForeColor="Red" Checked='<%# (bool)DataBinder.Eval(Container.DataItem,"qqh") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="Replydate" DataFormatString="{0:yy年MM月dd日}" HeaderText="留言时间"
                                HtmlEncode="False">
                                <ItemStyle Width="80px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作管理">
                                <ItemTemplate>
                                    <a href='Replyleaveword.aspx?ShowID=<%# DataBinder.Eval(Container.DataItem,"LeavewordID") %>' target="_blank">回复留言</a>
                                </ItemTemplate>
                                <ItemStyle Width="80px" />
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Button ID="Button1" runat="server" Text="删除" Width="61px" OnClick="Button1_Click" />
                    &nbsp; &nbsp;&nbsp;
                    <asp:CheckBox ID="CheckBox1" runat="server" Text="全选" AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
