<%@ page language="C#" autoeventwireup="true" inherits="Admin_Admin_UserList, App_Web_ahimsrpm" %>

<%@ Register Assembly="WanerSoft" Namespace="WanerSoft.Web.UI.Controls" TagPrefix="cc1" %>
<html>
<head>
    <title>用户管理</title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="../css/Admin.css" rel="stylesheet" />
    <script type="text/javascript" language="javascript" src="js/jscheckbox.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div style="margin: 0px auto 0px auto; text-align: left;">
            <div class="tips">
                用户管理， 显示系统中所有用户的列表，您可以通过点击[<a href="Admin_UserEdit.aspx">添加用户</a>]来手动新增系统用户。
            </div>
            <div class="search">
                <fieldset style="padding-left: 10px; line-height: 30px;">
                    <legend>搜索</legend>
                    <table>
                        <tr>
                            <td style="width:10%">
                                用户搜索
                            </td>
                            <td style="width:50%">
                                <Ws:TextBox ID="txt_keyword" runat="server"></Ws:TextBox>
                                用户状态：
                                <asp:DropDownList ID="ddl_UserStatus" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td style="width:10%">
                                <asp:DropDownList ID="ddl_column" runat="server">
                                    <asp:ListItem Text="--请选择--" Value=""></asp:ListItem>
                                    <asp:ListItem Text="帐号" Value="loginName"></asp:ListItem>
                                    <asp:ListItem Text="电子邮件" Value="email"></asp:ListItem>
                                    <asp:ListItem Text="姓名" Value="chinaName"></asp:ListItem>
                                    <asp:ListItem Text="QQ号" Value="qqNum"></asp:ListItem>
                                    <asp:ListItem Text="MSN" Value="msnNum"></asp:ListItem>
                                    <asp:ListItem Text="电话" Value="phone"></asp:ListItem>
                                    <asp:ListItem Text="手机" Value="mobilePhone"></asp:ListItem>
                                    <asp:ListItem Text="个人主页" Value="homePage"></asp:ListItem>
                                    <asp:ListItem Text="地址" Value="address"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width:30%">
                                <Ws:Button ID="btn_Search" Styles="WebButton" Format-Value="正在搜索，请稍候......" Type="Wait"
                                    Text="搜索" runat="server" OnClick="btn_Search_Click" />&nbsp;
                                <cc1:Button ID="Btn_CheckSelect" runat="server" OnClick="Btn_CheckSelect_Click" Styles="WebButton"
                                    Text="审核选中" Type="Wait" />
                                <cc1:Button ID="Btn_StopSelect" runat="server" OnClick="Btn_StopSelect_Click" Styles="WebButton"
                                    Text="停用选中" Type="Wait" /></td>
                        </tr>
                    </table>
                </fieldset>
            </div>
            <table style="margin-top: 10px; margin-bottom: 10px;" class="main" border="1">
                <thead>
                    <tr>
                        <td>
                            <input name="chkall" value="1" type="checkbox" onclick="javascript:CheckAll(this,'Item')" />
                        </td>
                        <td style="">
                            帐号</td>
                        <td style="">
                            Email</td>
                        <td style="">
                            姓名</td>
                        <td style="">
                            帐户余额</td>
                        <td style="">
                            积分</td>
                        <td style="">
                            帐号状态
                        </td>
                        <td style="">
                            操作
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="rp_Userlist" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <input name="Item" type="checkbox" value='<%# Eval("id")%>' />
                                </td>
                                <td>
                                    <%# Eval("loginname") %>
                                </td>
                                <td>
                                    <%# Eval("Email") %>
                                </td>
                                <td>
                                    <%# Eval("chinaName") %>
                                </td>
                                <td>
                                    <%# Eval("moneyCount")%>
                                </td>
                                <td>
                                    <%# Eval("pointCount")%>
                                </td>
                                <td>
                                    <%# GetShowStringOfDropDownList(Convert.ToString(Eval("userStatus").ToString()), "USER_STATUS")%>
                                </td>
                                <td>
                                    <a href="Admin_UserEdit.aspx?id=<%# Eval("id") %>">编辑</a> &nbsp; <a href="?action=Del&id=<%# Eval("id") %>"
                                        onclick="return confirm('确定要删除这个用户吗？')">删除</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="true" FirstPageText="[首页]"
                LastPageText="[尾页]" NextPageText="[后页]" PrevPageText="[前页]" CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                ShowCustomInfoSection="Right" OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </div>
    </form>
</body>
</html>
