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

<!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>
    <script language="javascript" type="text/javascript" src="images/js/Common.js"></script>
    <script language="javascript" type="text/javascript" src="images/js/BLL.js"></script>
    <link href="images/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table class="tableBorder" cellspacing="1" cellpadding="1" align="center" border="0">
    <tr><td style=" padding-top:5px; font-size:14px; color:#d6dff7; font-weight:bold; width:100%; height:25px; background-color:#003399;">
    &nbsp;&nbsp;&nbsp;&nbsp;新闻列表
    </td></tr>
    <tr><td style="text-align:left; width:100%; background-color:#f1f3f5;">
            &nbsp;&nbsp;&nbsp;&nbsp;关 键 字:
            <asp:TextBox runat="server" ID="Tb_keywords" Width="100px"></asp:TextBox>
            一级分类:<asp:dropdownlist ID="ddl1" runat="server"></asp:dropdownlist>
            二级分类:<asp:dropdownlist ID="ddl2" runat="server"></asp:dropdownlist>
            <asp:hiddenfield ID="HF1" runat="server" />
    </td></tr>
    <tr><td style="text-align:right; width:100%; background-color:#f1f3f5;">
            <asp:Button runat="server" ID="searchBt" Text="查找" OnClick="searchBt_Click" />
            <input value="添加" type="button" onclick="window.location.href='Add_New.aspx'" /></td></tr>
    <tr><td>
    <asp:GridView runat="server" SkinID="admin_gv_skin" ID="Gv_newlist" AllowPaging="True" AutoGenerateColumns="False" Width="100%" EmptyDataText="暂无相关数据" DataKeyNames="NewID" OnPageIndexChanging="NewlistGv_PageIndexChanging" OnRowCancelingEdit="NewlistGv_RowCancelingEdit" OnRowDeleting="NewlistGv_RowDeleting" OnRowEditing="NewlistGv_RowEditing" OnSelectedIndexChanged="NewlistGv_SelectedIndexChanged" PageSize="20" BackColor="#F1F3F5" OnRowDataBound="NewlistGv_RowDataBound">
           <Columns>
               <asp:TemplateField HeaderText="编号">
                   <ItemTemplate>
                       <asp:Label ID="Label1" runat="server" Text='<%# Bind("NewID") %>'></asp:Label>
                   </ItemTemplate>
                   <itemstyle HorizontalAlign="Center" />
               </asp:TemplateField>
               <asp:BoundField DataField="Title" HeaderText="新闻标题" >
                   <itemstyle HorizontalAlign="Center" />
               </asp:BoundField>
               <asp:TemplateField HeaderText="一级分类">
                   <ItemTemplate>
                      <%#Eval("ClassName_1") %>
                   </ItemTemplate>
                   <itemstyle HorizontalAlign="Center" />
               </asp:TemplateField>
               <asp:TemplateField HeaderText="二级分类">
                   <ItemTemplate>
                       <%#Eval("ClassName_2")%>
                   </ItemTemplate>
                   <itemstyle HorizontalAlign="Center" />
               </asp:TemplateField>
               <asp:TemplateField HeaderText="编辑">
                   <ItemTemplate>
                       <a href='Edit_New.aspx?pid=<%#Eval("NewID") %>' title="编辑">
                           编辑
                       </a>
                   </ItemTemplate>
                   <itemstyle HorizontalAlign="Center" />
               </asp:TemplateField>
               <asp:TemplateField HeaderText="删除" ShowHeader="False">
                   <ItemTemplate>
                       <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                           Text="删除" OnClientClick="return confirm('是否真的删除?')"></asp:LinkButton>
                   </ItemTemplate>
                   <itemstyle HorizontalAlign="Center" />
               </asp:TemplateField>
           </Columns>
        <pagersettings FirstPageText="首页" LastPageText="尾页" Mode="NextPreviousFirstLast"
            NextPageText="下一页" PreviousPageText="上一页" />
        <pagerstyle HorizontalAlign="Center" />
       </asp:GridView>
    </td></tr>
    <tr><td>
    <div style="color:#d6dff7; font-weight:bold; width:100%; height:25px; background-color:#003399;"></div>
    </td></tr>
    </table>
    </form>
</body>
</html>
