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

<!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: 500px; height: 90px">
            <tr>
                <td colspan="2" style="padding-left:100px; font-size:15px;">借阅图书
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    输入读者编号调出读者信息</td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 100px; height: 44px;">
                    读者编号：</td>
                <td style="width: 183px; height: 44px;">
                    <asp:TextBox ID="tbid" runat="server"></asp:TextBox>
                    <asp:ImageButton ID="lbtnok" runat="server" ImageUrl="~/n38_image/qr.gif" OnClick="lbtnok_Click" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbid"
                        Display="Dynamic" ErrorMessage="请输入正确的编号" ValidationExpression="\d+$"></asp:RegularExpressionValidator></td>
                <td style="width: 100px; height: 44px;">
                    </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 17px;" align="center">
                </td>
                <td style="width: 183px; height: 17px;">
                    <asp:Label ID="lblid" runat="server"></asp:Label></td>
                <td style="width: 100px; height: 17px;">
                    <asp:Label ID="lblname" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 100px; height: 18px;" align="center">
                </td>
                <td style="width: 183px; height: 18px;">
                    <asp:Label ID="lbltype" runat="server"></asp:Label></td>
                <td style="width: 100px; height: 18px;">
                    <asp:Label ID="lblamount" runat="server"></asp:Label></td>
            </tr>
        </table>
    
    </div>
        <table style="width: 500px; height: 100px">
            <tr>
                <td style="width: 46px">
                </td>
                <td style="width: 185px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    输入图书编号或者书名调出图书信息</td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 46px; height: 18px;" align="right">
                    书号：</td>
                <td style="width: 185px; height: 18px;">
                    <asp:TextBox ID="tbbook" runat="server"></asp:TextBox>
                    <asp:ImageButton ID="ibtnbook" runat="server" ImageUrl="~/n38_image/qr.gif" OnClick="ibtnbook_Click" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbbook"
                        Display="Dynamic" ErrorMessage="请输入正确的编号" ValidationExpression="\d+$"></asp:RegularExpressionValidator></td>
                <td style="width: 100px; height: 18px;">
                </td>
            </tr>
            <tr>
                <td style="width: 46px" align="right">
                    书名：</td>
                <td style="width: 185px">
                    <asp:TextBox ID="tbname" runat="server"></asp:TextBox>
                    <asp:ImageButton ID="ibtnname" runat="server" ImageUrl="~/n38_image/qr.gif" OnClick="ibtnname_Click" /></td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 46px">
                </td>
                <td style="width: 185px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
        </table>
        <table style="width: 500px; height: 50px">
            <tr>
                <td style="width: 482px">
                    <asp:GridView ID="gvbook" runat="server" AutoGenerateColumns="False" Visible="False" OnRowCommand="gvbook_RowCommand" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" OnRowDataBound="gvbook_RowDataBound">
                        <Columns>
                            <asp:BoundField DataField="n38_book_id" HeaderText="图书编号">
                                <ItemStyle Width="100px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="n38_book_name" HeaderText="图书名称">
                                <ItemStyle Width="200px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="n38_book_catalog" HeaderText="图书分类">
                                <ItemStyle Width="200px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="n38_book_isbn" HeaderText="图书ISBN">
                                <ItemStyle Width="100px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="借书">
                                <ItemTemplate>
                                    <asp:ImageButton ID="ibtnborrow" runat="server" CommandName="borrow" ImageUrl="~/n38_image/jy.png"
                                        OnClientClick="return confirm('确定借阅这本书吗？')" />
                                </ItemTemplate>
                                <ItemStyle Width="60px" />
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            没有符合条件的图书
                        </EmptyDataTemplate>
                    </asp:GridView>
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 482px">
                    </td>
                <td style="width: 100px">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
