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

<%@ 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 style="padding-left:350px;font-size:15px;">用户管理
       </div><div>
           <table>
               <tr>
                   <td align="right" style="width: 100px">
                       </td>
                   <td style="width: 275px">
                       </td>
                   <td style="width: 100px">
                   </td>
               </tr>
               <tr>
                   <td align="right" style="width: 100px">
                       读者姓名：</td>
                   <td style="width: 275px">
                       <asp:TextBox ID="tbname" runat="server" Width="100px"></asp:TextBox></td>
                   <td style="width: 100px">
                   </td>
               </tr>
               <tr>
                   <td align="right" style="width: 100px">
                       读者状态：</td>
                   <td style="width: 275px">
                       <asp:DropDownList ID="ddlstate" runat="server">
                           <asp:ListItem Selected="True">请选择</asp:ListItem>
                           <asp:ListItem>正常</asp:ListItem>
                           <asp:ListItem>锁定</asp:ListItem>
                       </asp:DropDownList></td>
                   <td style="width: 100px">
                   </td>
               </tr>
               <tr>
                   <td align="right" style="width: 100px">
                   </td>
                   <td style="width: 275px">
                       <asp:ImageButton ID="ibtnok" runat="server" ImageUrl="~/n38_image/cx_05.png" OnClick="ibtnok_Click" /></td>
                   <td style="width: 100px">
                   </td>
               </tr>
           </table>
       </div>
        <asp:GridView ID="gvuser" runat="server" AutoGenerateColumns="False" BorderColor="Black"
            BorderStyle="Solid" BorderWidth="1px" Width="800px" OnRowCancelingEdit="gvuser_RowCancelingEdit" OnRowCommand="gvuser_RowCommand" OnRowDataBound="gvuser_RowDataBound" OnRowDeleting="gvuser_RowDeleting" OnRowEditing="gvuser_RowEditing" OnRowUpdating="gvuser_RowUpdating">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="cbdel" runat="server" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="10px" />
                </asp:TemplateField>
                <asp:BoundField DataField="n38_user_id" HeaderText="读者编号" ReadOnly="True">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_user_realname" HeaderText="读者姓名">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="读者类型">
                    <EditItemTemplate>
                        <asp:DropDownList ID="ddltype" runat="server">
                            <asp:ListItem Selected="True" Value="请选择类型">请选择类型</asp:ListItem>
                            <asp:ListItem>学生</asp:ListItem>
                            <asp:ListItem>教师</asp:ListItem>
                        </asp:DropDownList>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("n38_user_type") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField DataField="n38_user_name" HeaderText="读者帐号">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_user_borrowamount" HeaderText="借书数量" ReadOnly="True">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_user_state" HeaderText="读者状态" ReadOnly="True">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="锁定">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibtnlock" runat="server" CommandName="lock" ImageUrl="~/n38_image/210.gif"
                            ToolTip="锁定用户" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="解锁">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibtnunlock" runat="server" CommandName="unlock" ImageUrl="~/n38_image/216.gif"
                            ToolTip="解锁用户" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:CommandField ButtonType="Image" CancelImageUrl="~/n38_image/no.png" EditImageUrl="~/n38_image/ht_14.gif"
                    HeaderText="编辑" ShowEditButton="True" UpdateImageUrl="~/n38_image/ok.png">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:CommandField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibtndel" runat="server" CommandName="delete" ImageUrl="~/n38_image/ht_16.gif"
                            OnClientClick="return confirm('确认删除用户吗？')" ToolTip="删除用户" />
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:CheckBox ID="cball" runat="server" AutoPostBack="True" OnCheckedChanged="cball_CheckedChanged"
            Text="全选" />
        <asp:ImageButton ID="ibtndel" runat="server" ImageUrl="~/n38_image/sc.gif" OnClick="ibtndel_Click"
            OnClientClick="return confirm('确认删除所选项吗？')" /><br />
        
        <webdiyer:aspnetpager id="anpuser" 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>
