<%@ page language="C#" autoeventwireup="true" inherits="admin_news_manage, 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>
    <title>新闻管理</title>
    <link rel="stylesheet" href="../css/table.css" type="text/css" media="all" />

    <script src="../../tool/select.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
        <table>
            <tr>
                <td>
                    请选择查找条件：</td>
                <td>
                    <asp:DropDownList ID="s_lb" runat="server">
                    </asp:DropDownList></td>
                <td>
                    <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></td>
            </tr>
        </table>
        <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="edit.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="s_ly" HeaderText="来源" ReadOnly="True">
                    <HeaderStyle Width="120px" />
                </asp:BoundColumn>
                <asp:BoundColumn DataField="addtime" HeaderText="发布时间">
                    <HeaderStyle Width="140px" />
                </asp:BoundColumn>
                <asp:BoundColumn DataField="hits" HeaderText="查看人数">
                    <HeaderStyle Width="80px" />
                </asp:BoundColumn>
                <asp:HyperLinkColumn DataNavigateUrlField="Id" DataNavigateUrlFormatString="view.aspx?Id={0}"
                    HeaderText="查看" Text="查看" Target="_blank">
                    <HeaderStyle Width="30px" />
                </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>
