<%@ page language="C#" autoeventwireup="true" inherits="admin_news_fb, s1.chapk.com" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!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="../css/table.css" type="text/css" rel="stylesheet" />
    <script src="../../tool/select.js" type="text/javascript"></script>    
</head>
<body>
    <form id="form1" runat="server">
<div class="listtab">
    <ul>
        <li>请输入关键字进行查找：</li>
        <li class="lv">
            <asp:TextBox ID="s_mc" runat="server"></asp:TextBox>
            <asp:Button ID="btn_search" runat="server" Text="搜索" OnClick="btn_search_Click" /><asp:Label ID="LAB_WHERE" runat="server" Visible="false"></asp:Label>
        </li>
    </ul>
</div>
<asp:datagrid id="data1" runat="server" AutoGenerateColumns="False" BorderColor="#CCCCCC" BorderWidth="1px" Width="100%" CellPadding="3">
    <Columns>
        <asp:BoundColumn DataField="Id" ReadOnly="True" Visible="False">
            <HeaderStyle Width="0px" />
        </asp:BoundColumn>
    <asp:TemplateColumn HeaderText="选择">
        <HeaderStyle Width="20px"></HeaderStyle>
        <HeaderTemplate>
        <asp:CheckBox id="chkHeader" runat="server" Text="" AutoPostBack="False" onclick="javascript:SelectAll(this);"></asp:CheckBox>
        </HeaderTemplate>
        <ItemTemplate>
        <asp:CheckBox id="CheckBox1" runat="server"></asp:CheckBox>
        </ItemTemplate>
    </asp:TemplateColumn>
        <asp:HyperLinkColumn DataNavigateUrlField="Id" DataNavigateUrlFormatString="fbview.aspx?Id={0}"
            DataTextField="s_mc" HeaderText="标题">
            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                Font-Underline="False" HorizontalAlign="Left" />
        </asp:HyperLinkColumn>
        <asp:BoundColumn DataField="name" HeaderText="联系人" ReadOnly="True">
            <HeaderStyle Width="80px" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="time1" HeaderText="留言时间">
            <HeaderStyle Width="120px" />
        </asp:BoundColumn>
        <asp:BoundColumn DataField="ip" HeaderText="IP地址">
            <HeaderStyle Width="120px" />
        </asp:BoundColumn>
        <asp:HyperLinkColumn DataTextField="state" DataTextFormatString="&lt;img src=&quot;../images/option{0}.gif&quot; /&gt;"
            HeaderText="状态">
            <HeaderStyle Width="50px" />
        </asp:HyperLinkColumn>
    </Columns>
            <HeaderStyle BackColor="#EEEFF1" Font-Bold="True" Font-Italic="False" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
        Font-Underline="False" HorizontalAlign="Center" />
</asp:datagrid>
<table id="nodata1" runat="server">
<tr>
<td>暂无记录</td>
</tr>
</table>
<table width="100%">
<tr>
<td>
    <webdiyer:AspNetPager ID="Pager1" runat="server" CustomInfoHTML="共%RecordCount%条记录 页次%CurrentPageIndex%/%PageCount% 每页%PageSize%条"
            CustomInfoStyle="" FirstPageText="[首页]" LastPageText="[末页]" NextPageText="[下一页]"
            OnPageChanging="Pager1_PageChanging" PrevPageText="[上一页]" ShowCustomInfoSection="Left" AlwaysShow="True" PageSize="14">
    </webdiyer:AspNetPager>
</td>
<td><asp:Button ID="Button1" runat="server" Text="删除" OnClick="Button1_Click" /></td>
</tr>
</table>
    </form>
</body>
</html>
