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

<!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 colspan="2" style="padding-left:120px; 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></td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 100px">
                    </td>
                <td style="width: 100px">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbuserid"
                        Display="Dynamic" ErrorMessage="请输入正确的编号" ValidationExpression="\d+$"></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" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px">
            <Columns>
                <asp:BoundField DataField="n38_borrow_bookname" HeaderText="书名" />
                <asp:BoundField DataField="n38_borrow_date" HeaderText="日期">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_borrow_state" HeaderText="超期">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="挂失">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibtnlost" runat="server" CommandName="lost" ImageUrl="~/n38_image/gs.png"
                            OnClientClick="return confirm('确认挂失图书吗？')" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                读者没有符合条件的借书记录
            </EmptyDataTemplate>
        </asp:GridView>
    </form>
</body>
</html>
