<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="UserList.aspx.cs"
    Inherits="ETongJin.YM.Web.Admin.UserList"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

<script type="text/javascript">
function CheckAll(obj)
{
var allcheck = document.getElementsByName("userid");
for(i=0;i<allcheck.length;i++)
{
allcheck[i].checked = obj.checked;
}
}
</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="tableBorder" border="0" cellpadding="0" cellspacing="1">
        <tr>
            <th colspan="8">
                <table width="100%" border="0">
                    <tr>
                        <td>
                            <table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="80" style="color: #990000;">
                                        筛选：
                                    </td>
                                    <td width="90">
                                        <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="true" onchange="if(this.value=='-2') return false;"
                                            OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged">
                                            <asp:ListItem Text="按属性" Value="-2" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="待审" Value="-1"></asp:ListItem>
                                            <asp:ListItem Text="已审" Value="0"></asp:ListItem>
                                            <asp:ListItem Text="VIP" Value="1"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td width="90">
                                        <asp:DropDownList ID="ddlOrder" runat="server" AutoPostBack="true" onchange="if(this.value=='-1') return false;"
                                            OnSelectedIndexChanged="ddlOrder_SelectedIndexChanged">
                                            <asp:ListItem Text="排序方式" Value="-1" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="注册时间" Value="1"></asp:ListItem>
                                            <asp:ListItem Text="最后登录时间" Value="2"></asp:ListItem>
                                            <asp:ListItem Text="登录次数" Value="3"></asp:ListItem>
                                            <asp:ListItem Text="金币数量" Value="4"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table border="0" align="right" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="80" style="color: #990000; text-align: right;">
                                        搜索：
                                    </td>
                                    <td width="80">
                                        <asp:DropDownList ID="ddlSearchType" runat="server">
                                            <asp:ListItem Text="用户名" Value="0"></asp:ListItem>
                                            <asp:ListItem Text="邮箱" Value="1"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td width="90px">
                                        <asp:TextBox ID="txtKeyWords" runat="server" Text="关键字" Style="width: 150px; text-align: left"
                                            onfocus="if(this.value=='关键字')this.value='';"></asp:TextBox>
                                    </td>
                                    <td width="60px">
                                        <asp:Button ID="Button4" runat="server" Text=" 提交 " OnClick="Button4_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </th>
        </tr>
        <tr>
            <td width="30" class="td2">
                选中
            </td>
            <td class="td2">
                用户名称
            </td>
            <td width="60" class="td2">
                邮箱地址
            </td>
            <td width="30" class="td2">
                金币数量
            </td>
            <td width="70" class="td2">
                注册IP
            </td>
            <td width="70" class="td2">
                注册时间
            </td>
            <td class="td2" width="80">
                真实姓名
            </td>
            <td width="60px" class="td2">
                常规操作
            </td>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
                <tr bgcolor="#FFFFFF" onmouseover="javascript:this.bgColor='#E3E1D7'" onmouseout="javascript:this.bgColor='#FFFFFF'"
                    style="text-align: center; height: 27">
                    <td>
                        <input name='userid' type='checkbox' value='<%#Eval("userid") %>' style="border: none" />
                    </td>
                    <td class="lefttd">
                        &nbsp; <a href="/UserShow.aspx?i=<%#Eval("userid") %>" target="_blank">
                            <%# Eval("username")%></a>
                    </td>
                    <td class="lefttd">&nbsp;<%#Eval("Email") %>
                    </td>
                    <td>
                        <%#Eval("Balance1")%>
                    </td>
                    <td>
                        <%#Eval("RegIP") %>
                    </td>
                    <td class="lefttd">
                        <%#Eval("RegTime") %>
                    </td>
                    <td>
                        <%#Eval("realname") %>
                    </td>
                    <td>
                        <asp:LinkButton ID="btnDel" runat="server" OnClick="btnDel_Click" CommandArgument='<%# Eval("userid")%>'
                            OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');">删除</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        <tr>
            <td colspan="8" class="td2" style="text-align: left; height: 30px;">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="180">
                            <input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this)' value='checkbox'
                                style="border: none" />选中本页显示的所用户
                        </td>
                        <td>
                            <asp:Button ID="Button1" runat="server" Text="批量审核" OnClick="ButtonClick" CommandArgument="0" />&nbsp;
                            <asp:Button ID="Button2" runat="server" Text="取消审核" OnClick="ButtonClick" CommandArgument="-1" />&nbsp;
                            <asp:Button ID="Button3" runat="server" Text="升级VIP" OnClick="ButtonClick" CommandArgument="1" />&nbsp;
                            <asp:Button ID="Button7" runat="server" Text="批量删除" OnClick="ButtonClick" CommandArgument="2" OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');"/>&nbsp;
                        </td>
                        <td>&nbsp;
                            
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <th colspan="8" style="text-align: center;">
                <div id="tnt_pagination">
                    <%= PageStr%></div>
                <div class="ym12_mian_y">
                </div>
            </th>
        </tr>
    </table>
</asp:Content>
