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

<!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>
        </div>
        <table style="width: 767px">
            <tr>
                <td colspan="3">
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:GridView ID="ProductGridView" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="20" Width="100%" 
                     OnPageIndexChanging="ProductGridView_PageIndexChanging" DataKeyNames="MynewsID">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:TemplateField HeaderText="新闻标题">
                            <ItemTemplate>
                            <a href='../Shownews.aspx?ShowID=<%#DataBinder.Eval(Container.DataItem,"MynewsID") %>' target="_blank"><%#DataBinder.Eval(Container.DataItem,"Title") %></a>
                            </ItemTemplate>
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="Leibie" HeaderText="所属类别">
                                <ItemStyle ForeColor="#FF8000" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Hit" HeaderText="点击">
                                <ItemStyle Width="60px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Createdate" DataFormatString="{0:yy年MM月dd日}" HeaderText="加入日期"
                                HtmlEncode="False">
                                <ItemStyle Width="80px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作管理">
                                <ItemStyle Width="100px" />
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkBox" runat="server" />
                                    &nbsp;&nbsp; <a href='Editnews.aspx?ShowID=<%#DataBinder.Eval(Container.DataItem,"MynewsID") %>' target="_blank">编辑</a>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Button ID="Button1" runat="server" Text="删除所选" Width="101px" OnClick="Button1_Click" />
                    &nbsp;&nbsp;&nbsp;
                    <asp:Button ID="movBtn" runat="server" OnClick="movBtn_Click" Text="移动所选到" />
                    <asp:DropDownList ID="DrpLeibie" runat="server" Width="194px">
                        <asp:ListItem>企业新闻</asp:ListItem>
                        <asp:ListItem>业内资讯</asp:ListItem>
                        <asp:ListItem>技术文档</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp; &nbsp; 全选<asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox1_CheckedChanged" /></td>
            </tr>
        </table>
    </form>
</body>
</html>
