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

<%@ 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/Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 800px; height: 300px">
            <tr>
                <td style="width: 100px">
                </td>
                <td align="center" style="font-size: 15px; width: 100px">
                    查看所有图书</td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                    <asp:HyperLink ID="HyperLink1" runat="server" Font-Size="16px" NavigateUrl="~/N38_ManagerBook.aspx">查询图书</asp:HyperLink></td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                    <asp:GridView ID="gvbook2" runat="server" AutoGenerateColumns="False" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" Width="690px" CellPadding="0" OnRowCancelingEdit="gvbook_RowCancelingEdit" OnRowDataBound="gvbook_RowDataBound" OnRowEditing="gvbook_RowEditing" OnRowDeleting="gvbook_RowDeleting" OnRowUpdating="gvbook_RowUpdating" >
            <Columns>
                <asp:BoundField DataField="n38_book_id" HeaderText="书号" ReadOnly="True" >
                    <ItemStyle Width="70px" HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_book_name" HeaderText="书名" >
                    
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="分类">
                    <EditItemTemplate>
                        <asp:DropDownList ID="ddledit" runat="server" Width="150px">
                        </asp:DropDownList>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("n38_book_catalog") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="160px" />
                </asp:TemplateField>
                <asp:BoundField DataField="n38_book_isbn" HeaderText="ISBN">
                    <ControlStyle Width="100px" />
                    <ItemStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_book_price" HeaderText="价格">
                    <ControlStyle Width="40px" />
                    <ItemStyle Width="40px" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_book_amount" HeaderText="数量">
                    <ControlStyle Width="40px" />
                    <ItemStyle Width="40px" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="编辑" ShowHeader="False">
                    <EditItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="True" CommandName="Update"
                            ImageUrl="~/n38_image/ok.png" Text="更新" />
                        <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                            ImageUrl="~/n38_image/no.png" Text="取消" />
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Edit"
                            ImageUrl="~/n38_image/ht_14.gif" Text="编辑" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibtndel" runat="server" CommandName="delete" ImageUrl="~/n38_image/ht_16.gif"
                            OnClientClick="return confirm('确定删除图书吗？')" ToolTip="删除图书" />
                    </ItemTemplate>
                    <ItemStyle Width="40px" HorizontalAlign="Center" />
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                没有说查询图书信息
            </EmptyDataTemplate>
        </asp:GridView>
                    <webdiyer:aspnetpager id="anpcatalog" runat="server" firstpagetext="首页" horizontalalign="Left"
                        lastpagetext="尾页" nextpagetext="后页" pagesize="5" prevpagetext="前页" showpageindexbox="Always" AlwaysShowFirstLastPageNumber="True" CssClass="anpager" CurrentPageButtonClass="cpb" NumericButtonCount="5" UrlPageSizeName="[{0}]" UrlPaging="True" Wrap="False" OnPageChanged="anpcatalog_PageChanged" style="margin-top:5px;"></webdiyer:aspnetpager>
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
