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

<%@ 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>
      <div ><table>
              <tr>
                  <td align="left" colspan="3" style="padding-left:80px;font-size:15px;">
                  借书列表</td>
              </tr>
              <tr>
                  <td style="width: 100px" align="right">
                      姓名：</td>
                  <td style="width: 287px">
                      <asp:TextBox ID="tbuser" runat="server" Width="100px"></asp:TextBox></td>
                  <td style="width: 100px">
                  </td>
              </tr>
          <tr>
              <td align="right" style="width: 100px; height: 25px;">
                  书名：</td>
              <td style="width: 287px; height: 25px;">
                  <asp:TextBox ID="tbbookname" runat="server" Width="100px"></asp:TextBox></td>
              <td style="width: 100px; height: 25px;">
              </td>
          </tr>
          <tr>
              <td style="width: 100px">
              </td>
              <td style="width: 287px">
                  <asp:ImageButton ID="ibtnsel" runat="server" ImageUrl="~/n38_image/cx_05.png" OnClick="ibtnsel_Click" /></td>
              <td style="width: 100px">
              </td>
          </tr>
          </table>
      </div>
      <asp:GridView ID="gvbook" runat="server" AutoGenerateColumns="False" OnRowCommand="gvbook_RowCommand"
            OnRowDataBound="gvbook_RowDataBound" Width="600px" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px">
            <Columns>
                <asp:BoundField DataField="n38_borrow_id" HeaderText="编号">
                    <ItemStyle HorizontalAlign="Center" Width="70px" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_user_realname" HeaderText="姓名">
                    <ItemStyle Width="70px" HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_user_type" HeaderText="用户类型">
                    <ItemStyle HorizontalAlign="Center" Width="70px" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_borrow_bookname" HeaderText="书名" />
                <asp:BoundField DataField="n38_borrow_date" HeaderText="日期" DataFormatString="{0:d}">
                    <ItemStyle HorizontalAlign="Center" Width="70px" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_borrow_state" HeaderText="超期">
                    <ItemStyle HorizontalAlign="Center" Width="70px" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="超期改成正常">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibtnnor" runat="server" CommandName="normal" ImageUrl="~/n38_image/zc.png"
                            OnClientClick="return confirm('确定要把图书借阅状态改成正常吗？')" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="80px" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                暂时没有借书记录
            </EmptyDataTemplate>
        </asp:GridView>
        <webdiyer:aspnetpager id="anpborrow" runat="server" firstpagetext="首页" horizontalalign="Left"
         lastpagetext="尾页" nextpagetext="后页" pagesize="5" prevpagetext="前页" showpageindexbox="Always" AlwaysShowFirstLastPageNumber="True" CssClass="anpager" CurrentPageButtonClass="cpb" NumericButtonCount="5" UrlPageSizeName="[{0}]" Wrap="False" OnPageChanged="anpcatalog_PageChanged" style="margin-top:5px;"></webdiyer:aspnetpager>
    </div>
    </form>
</body>
</html>
