<%@ page language="C#" autoeventwireup="true" inherits="admin_user_UserList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="D.BLL" %>
<!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 id="CssName" rel="stylesheet" type="text/css" runat="server" />

    <script src="../../js/Common.js" type="text/javascript"></script>

    <script src="../../js/<%=B_Lang.getLang() %>/SelectCheckBox.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 用户管理 >>
                <asp:Literal ID="LitUser" runat="server"></asp:Literal>列表
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
                <asp:Repeater ID="RepUserList" runat="server" OnItemCommand="RepUserList_ItemCommand"
                    OnItemDataBound="RepUserList_ItemDataBound">
                    <HeaderTemplate>
                        <tr class="title">
                            <td class="t1">
                                选择
                            </td>
                            <td>
                                用户ID
                            </td>
                            <td>
                                用户名
                            </td>
                            <asp:Literal ID="lit_head" runat="server"></asp:Literal>
                            <td>
                                所属用户组
                            </td>
                            <td>
                                最后登陆时间
                            </td>
                            <td>
                                最后登陆IP
                            </td>
                            <td>
                                登录次数
                            </td>
                            <td>
                                会员状态
                            </td>
                            <td>
                                充值
                            </td>
                            <td>
                                操作
                            </td>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td class="t1">
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%#Eval("UserId") %>' Style="display: none"></asp:TextBox>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </td>
                            <td>
                                <asp:Label ID="UserId" runat="server" Text='<%# Eval("UserId") %>'></asp:Label>
                            </td>
                            <td>
                                <a href='User_<%=Request.QueryString["ModelId"] %>.aspx?UserId=<%#Eval("UserId") %>'>
                                    <%#Eval("UserName")%></a>
                            </td>
                            <asp:Literal ID="lit_item" runat="server"></asp:Literal>
                            <td align="center">
                                <%#GetGroupName(Eval("UserGroupId","{0}"))%>
                            </td>
                            <td align="center">
                                <%#Eval("LastLoginTime")%>
                            </td>
                            <td align="center">
                                <%#Eval("LastLoginIP")%>
                            </td>
                            <td align="center">
                                <%#Eval("LoginNum")%>
                            </td>
                            <td align="center">
                                <%#Eval("IsLock").ToString()=="True"?"<span style='color:red'>锁定</span>":"正常"%>
                            </td>
                            <td align="center">
                                <a href='chongzhi.aspx?ModelId=<%=Request.QueryString["ModelId"] %>&UserId=<%#Eval("UserId") %>'>
                                    充值</a>
                            </td>
                            <td align="center">
                                <a href='SetUser.aspx?ModelId=<%=Request.QueryString["ModelId"] %>&UserId=<%#Eval("UserId") %>'>
                                    修改</a> ┊ <a href='moniuser.aspx?UserId=<%#Eval("UserId") %>' target="_blank">
                                    模拟</a> ┊
                                <asp:LinkButton ID="linkbtnLockUser" runat="server" CommandName="Lock" CommandArgument='<%#Eval("UserID")%>'
                                    Text='<%#Eval("IsLock").ToString()=="True"?"解锁":"锁定"%>'></asp:LinkButton>
                                ┊
                                <asp:LinkButton ID="lnkStatus" runat="server" CommandName="Status" CommandArgument='<%#Eval("UserId")%>'
                                    Text="认证" Enabled='<%#Eval("Status").ToString()=="1"?false:true %>'></asp:LinkButton>
                                ┊
                                <asp:LinkButton ID="lnkDelete" runat="server" Text="删除" CommandName="delete" CommandArgument='<%#Eval("UserId") %>'
                                    OnClientClick="return confirm('您确定要移除该条记录吗?')"></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh2" align="center">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页"
                            LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页"
                            showinputbox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left"
                            Width="99%">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh2" align="center">
                <tr>
                    <td height="30">
                        <input id="checkDel" onclick="CheckDelBox(this)" type="checkbox"><span id="ShowA">选择全部</span>
                        <asp:Button ID="Button1" runat="server" Text="删除选中记录" CssClass="btn" onmousedown="if(confirm('您确认删除选中记录？'))document.form1.Button1.click(); else return false;" OnClick="Button1_Click" Style="margin-left: 10px"></asp:Button><asp:Button ID="Button3" runat="server" Text="导出本页数据" CssClass="btn" OnClick="Button3_Click"  Style="margin-left: 10px"/><asp:Button ID="Button4" runat="server" Text="导出所有用户" CssClass="btn" OnClick="Button4_Click" />
                    </td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh2" align="center">
                <tr>
                    <td height="30">
                        <span class="seaSpan">会员查询：
                        <asp:DropDownList ID="DropUserType" runat="server">
                            <asp:ListItem Value="UserId">用户ID</asp:ListItem>
                            <asp:ListItem Value="UserName">用户名</asp:ListItem>
                            <asp:ListItem Value="NickName">用户昵称</asp:ListItem>
                            <asp:ListItem Value="Email">用户邮箱</asp:ListItem>
                        </asp:DropDownList></span>
                        <asp:TextBox ID="txtKeyWord" runat="server" CssClass="in1 float"></asp:TextBox>
                        <asp:Button ID="Button2" runat="server" Text=" 查询 " CssClass="btn seaBtn" OnClick="Button2_Click" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
