<%@ page language="C#" masterpagefile="admin.master" autoeventwireup="true" inherits="admin_news, oyaya" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    文章管理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
      <table border="0" cellpadding="0" cellspacing="0" class="top_table" width="750">
        <tr>
            <td class="top_table_td1">  </td>
            <td class="top_table_td2"> 文章管理</td>
            <td class="top_table_td3" width="651">
            </td>
        </tr>
        <tr>
            <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px;" colspan="3">
                <asp:DataList ID="DataList1" runat="server" Width="730px" OnItemCommand="DataList1_ItemCommand" OnEditCommand="DataList1_EditCommand">
                    <ItemTemplate>
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                            <tr>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px; width: 50px;" >
                                    ID：<asp:Label ID="Label2" runat="server" Text='<%# Eval("id") %>'></asp:Label></td>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px; width: 480px;" >
                                    <a href="update_news.aspx?id=<%# Eval("id") %>"><%# Eval("title") %></a></td>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px; width: 150px;" >
                                    <asp:Label ID="Label4" runat="server" Text='<%# Eval("data") %>'></asp:Label></td>
                                <td style="border-bottom: #cadcea 1px solid; height: 35px; text-align: left; padding-left: 20px; width: 100px;" >
                                    <asp:Button ID="Button2" runat="server" Text="修改" CausesValidation="False" CssClass="Button" CommandName="edit" />&nbsp;
                                    <asp:Button ID="Button3" runat="server" Text="删除" CausesValidation="False" CommandName="Delete" CssClass="Button" OnClientClick="return confirm('确认要删除此条信息吗？')" /></td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
                <table cellpadding="0" cellspacing="0" style="width: 100%; height: 30px;">
                                <tr>
                                    <td style="height: 15px" colspan="2">
                                        <asp:LinkButton ID="lnkbtnTop" runat="server" Font-Size="9pt" Font-Underline="False"
                                            ForeColor="Black" OnClick="lnkbtnTop_Click">首页</asp:LinkButton>
                                        &nbsp; &nbsp;&nbsp; &nbsp;<asp:LinkButton ID="lnkbtnPrve" runat="server" Font-Size="9pt" Font-Underline="False"
                                            ForeColor="Black" OnClick="lnkbtnPrve_Click">上一页</asp:LinkButton>
                                        &nbsp; &nbsp; &nbsp;<asp:LinkButton ID="lnkbtnNext" runat="server" Font-Size="9pt" Font-Underline="False"
                                            ForeColor="Black" OnClick="lnkbtnNext_Click">下一页</asp:LinkButton>
                                        &nbsp; &nbsp;&nbsp; &nbsp;<asp:LinkButton ID="lnkbtnLast" runat="server" Font-Overline="False" Font-Size="9pt"
                                            Font-Underline="False" ForeColor="Black" OnClick="lnkbtnLast_Click">尾页</asp:LinkButton>
                                        &nbsp; &nbsp; <span style="font-size: 9pt">共有</span><asp:Label ID="labCount" runat="server" Font-Size="9pt"
                                            ForeColor="Red"></asp:Label><span style="font-size: 9pt; vertical-align: bottom;
                                                text-align: center">页</span><span style="font-size: 9pt"></span></td>
                                    <td style="width: 130px; height: 15px; text-align: center">
                                        <span style="font-size: 9pt">当前第</span><asp:Label ID="labNowPage" runat="server"
                                            Font-Size="9pt" ForeColor="Red">1</asp:Label><span style="font-size: 9pt; vertical-align: bottom;
                                                text-align: center">页</span></td>
                                </tr>
                            </table></td>
        </tr>
    </table> 
</asp:Content>

