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

<!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">
            <tr>
                <td align="left" colspan="2" style="padding-left:130px;font-size:15px;">图书找回
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 100px">
                    读者编号：</td>
                <td style="width: 100px">
                    <asp:TextBox ID="tbuserid" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="请输入正确的编号" ControlToValidate="tbuserid" Display="Dynamic" ValidationExpression="\d+$"></asp:RegularExpressionValidator></td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 100px">
                    图书编号：</td>
                <td style="width: 100px">
                    <asp:TextBox ID="tbbookid" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="请输入正确的编号"
                        ValidationExpression="\d+$" ControlToValidate="tbbookid" Display="Dynamic"></asp:RegularExpressionValidator></td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                    <asp:ImageButton ID="ibtnok" runat="server" ImageUrl="~/n38_image/qr.gif" OnClick="ibtnok_Click" /></td>
                <td style="width: 100px">
                </td>
            </tr>
        </table>
    
    </div>
        <asp:GridView ID="gvbook" runat="server" AutoGenerateColumns="False" OnRowCommand="gvbook_RowCommand"
            OnRowDataBound="gvbook_RowDataBound" Visible="False" Width="500px" BackColor="White" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px">
            <Columns>
                <asp:BoundField DataField="n38_lost_bookname" HeaderText="书名" />
                <asp:BoundField DataField="n38_user_realname" HeaderText="姓名">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_lost_date" HeaderText="日期">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="图书找回">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibtnfind" runat="server" CommandName="find" ImageUrl="~/n38_image/qr.gif"
                            OnClientClick="return confirm('确认取消挂失图书吗？')" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                没有符合条件的记录
            </EmptyDataTemplate>
        </asp:GridView>
    </form>
</body>
</html>
