<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_Person_Reg.aspx.cs" Inherits="MyITJob.Admin.Admin_Person_Reg" %>

<!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 id="Head1" runat="server">
    <title>
        <%=Application["PageTitle"]%>
    </title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function CheckAll(form){
  for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if (e.name != 'chkAll' && e.disabled == false && e.type == 'checkbox') {
      e.checked = form.chkAll.checked;
      if (e.checked)
        hL(e);
      else
        dL(e);
    }
  }
}
function hL(E){
  while (E.tagName!='TR') {E=E.parentElement;}
  E.className='tdbg2';
}
function dL(E){
  while (E.tagName!='TR') {E=E.parentElement;}
  E.className='tdbg';
}
</script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Panel ID="Manage" runat="server">
              <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                <tr class='topbg'>
                  <td height='30' colspan='2'><table width='100%'>
                    <tr class='topbg'>
                      <td align='center'><strong>个 人 用 户 管 理</strong></td>
                    </tr>
                  </table></td>
                </tr>
                <tr class="tdbg">
                  <td width='99' height='30'><strong>身份筛选：</strong></td>
                  <td class="dh">
                  <div>
                  <%foreach ( ClassLibrary1.strClass.dhClass d in dh) {%>
                    <a <%= d.id == q("Action") ? "class='dhcss'":"" %> href="?Action=<%=d.id %>&day=<%= q("day") %>"><%=d.name %></a>
                  <%} %>
                  </div>
                  </td>
                </tr>
                <tr class="tdbg">
                  <td width='99' height='30'><strong>时间筛选：</strong></td>
                  <td class="dh">
                  <%foreach (ClassLibrary1.strClass.dhClass d in dh2) {%>
                    <a <%= d.id == q("day") ? "class='dhcss'":"" %> href="?day=<%=d.id %>&Action=<%=q("Action") %>"><%=d.name %></a>
                  <%} %>
                  </td>
                </tr>
                <tr class="tdbg">
                  <td height='30'><strong>登 陆 名：</strong></td>
                  <td><asp:TextBox ID="searchText" runat="server"></asp:TextBox>
                  <input id="Submit1" type="submit" value="搜 索" /></td>
                </tr>
              </table>
              <table border="0" width="100%">
                    <tr>
                        <td>&nbsp;</td>
                </tr>
              </table>
              <table width='100%' border='0' align='center' cellpadding='6' cellspacing='1' class='border'>
                <tr class='topbg'>
                  <td width="6%" align='center'><strong class="Glow">选中</strong></td>
                  <td width="11%" align='center'><strong class="Glow">登录名</strong></td>
                  <td width="11%" align='center'><strong class="Glow">点击查看IP地址</strong></td>
                  <td width="10%" align='center'><strong class="Glow">注册问题</strong></td>
                  <td width="10%" align='center'><strong class="Glow">注册答案</strong></td>
                  <td width="25%" align='center'><strong class="Glow">检测是否填写信息</strong></td>
                  <td width="14%" align='center'><strong class="Glow">注册时间</strong></td>
                  <td width="13%" align='center'><strong class="Glow">操作</strong></td>
                </tr>
                <asp:Repeater ID="RP1" runat="server">
                  <itemtemplate>
                    <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                      <td align='center'><input type="checkbox" name="checkbox" id="checkbox" value='<%#Eval("id")%>' /></td>
                      <td><%#Eval("username") %></td>
                      <td><a href="http://www.ip138.com/ips.asp?ip=<%#Eval("IPAdd") %>&action=2" target="_blank"><%#Eval("IPAdd") %></a></td>
                      <td><%#Eval("question") %></td>
                      <td><%#Eval("answer") %></td>
                      <td><%#showsj()%></td>
                      <td align='center'><%#Eval("LoginTime") %></td>
                      <td align="center"><a href="?Action=Edit&id=<%#Eval("id")%>">修改密码</a> | <a href="?id=<%#Eval("ID") %>&Action=Del"
                                        onclick="return confirm('警告！删除此会员将会删除其所有其他相关资料！此操作不可逆。');">删除</a></td>
                    </tr>
                  </itemtemplate>
                </asp:Repeater>
              </table>
              <div>
                <input name='chkAll' type='checkbox' onclick='CheckAll(this.form)' value='checkbox' />
                <asp:Button ID="del_button" runat="server" Text="删 除" OnClick="del_button_Click" />
              </div>
              <div id="paging" runat="server"></div></asp:Panel>
            <asp:Panel ID="EditPwd" runat="server" Visible="false">
                <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                    <tr class='tdbg'>
                        <td width="15%" class="tdbg2" align="right">
                            注册ID：</td>
                        <td width="85%" valign="top">
                            &nbsp;<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr class='tdbg'>
                        <td width="15%" class="tdbg2" align="right">
                            用户姓名：</td>
                        <td width="85%" valign="top">
                            &nbsp;<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr class='tdbg'>
                        <td width="15%" class="tdbg2" align="right">注册问题：</td>
                        <td width="85%" valign="top">
                            &nbsp;<asp:TextBox ID="tb_question" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td width="15%" class="tdbg2" align="right">
                            注册答案：</td>
                        <td width="85%" valign="top">
                            &nbsp;<asp:TextBox ID="answer" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg2" align="right">
                            新密码：</td>
                        <td>
                            &nbsp;<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg2" align="right">
                            确认新密码：
                        </td>
                        <td>
                            &nbsp;<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="两次密码不符"
                                ControlToCompare="TextBox1" ControlToValidate="TextBox2"></asp:CompareValidator></td>
                    </tr>
                    <tr class='tdbg'>
                        <td colspan="2" align="right">
                            <div align="center">
                                <asp:Button ID="Button2" runat="server" Text="修改" OnClick="Button2_Click" />
                                <input type="reset" name="Submit" value="重置" />
                            </div>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
    </form>
    <table width="100%" border="0" cellspacing="1" cellpadding="3">
        <tr>
            <td class="topbg">
                <div align="center">
                    Copyright 2009-2019 
                    <%=Application["PageTitle"] %>
                    All Rights Reserved.</div>
            </td>
        </tr>
    </table>
</body>
</html>