<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="UserList.aspx.cs"
    Inherits="ETongJin.Search.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="3" cellspacing="1" id="demo_table">
    <tr>
      <th colspan="8">搜索推广用户</th>
    </tr>
    <tr>
      <td colspan="8" class="date"><div class="dateinput">筛选：
        <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:DropDownList>
        &nbsp;
        <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>
        &nbsp;搜索：
        <asp:DropDownList ID="ddlSearchType" runat="server">
          <asp:ListItem Text="用户名" Value="0"></asp:ListItem>
          <asp:ListItem Text="邮箱" Value="1"></asp:ListItem>
        </asp:DropDownList>
        <input style="display:none" />
        <asp:TextBox ID="txtKeyWords" runat="server" Text="关键字" onfocus="if(this.value=='关键字')this.value='';" CssClass="ym12_input2"></asp:TextBox>
        <asp:Button ID="Button4" runat="server" Text=" 提交 " OnClick="Button4_Click" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" /></div></td>
    </tr>
    <tr align="center">
      <td width="5%" class="td2"> 选中 </td>
      <td class="td2"> 用户名称 </td>
      <td width="20%" class="td2"> 邮箱地址 </td>
      <td width="8%" class="td2"> 金币数量 </td>
      <td width="8%" class="td2"> 状态 </td>
      <td width="18%" class="td2"> 注册时间 </td>
      <td class="td2" width="12%"> 真实姓名 </td>
      <td width="9%" class="td2"> 常规操作 </td>
    </tr>
    <asp:Repeater ID="Repeater1" runat="server">
      <ItemTemplate>
        <tr align="center">
          <td><input name='userid' type='checkbox' value='<%#Eval("userid") %>' /></td>
          <td class="td4"><a href="Edit.aspx?i=<%#Eval("userid") %>" target="_blank"> <%# Eval("username")%></a> </td>
          <td class="td4"><%#Eval("Email") %> </td>
          <td><%#Eval("Balance1")%> </td>
          <td><%#Eval("userstatus").ToString()=="-1"?"<span style=color:red>未审核</span>":"已审核"%> </td>
          <td><%#Eval("RegTime") %> </td>
          <td><%#Eval("realname") %> </td>
          <td><a href="Edit.aspx?i=<%#Eval("userid") %>">修改</a>
            <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"><div id="tnt_pagination"> <%= PageStr%></div></td>
    </tr>
    <tr>
      <td class="td3"><input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this)' value='checkbox' /></td>
      <td colspan="7" class="td5"><asp:Button ID="Button1" runat="server" Text="批量审核" OnClick="ButtonClick" CommandArgument="0" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'"/>
              <asp:Button ID="Button2" runat="server" Text="取消审核" OnClick="ButtonClick" CommandArgument="-1" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'"/>
              <asp:Button ID="Button3" runat="server" Text="升级VIP" OnClick="ButtonClick" CommandArgument="1" Visible="False" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" />
              <asp:Button ID="Button7" runat="server" Text="批量删除" OnClick="ButtonClick" CommandArgument="2" OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" /></td>
    </tr>
  </table>
<script language="JavaScript">
	tigra_tables('demo_table', 3, 2, '#ffffff', '#F8F8F8', '#F1F3F5', '#71ADDA');
</script>
</asp:Content>
