<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_Company_Reg.aspx.cs" Inherits="MyITJob.Admin.Admin_Company_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>
            <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>
                <asp:Panel ID="Manage" runat="server">
                <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("day") ? "class='dhcss'":"" %> href="?&day=<%= d.id %>"><%=d.name %></a>
                  <%} %>                  
                  </div>
                  </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>
              <br />
                <table width='100%' border='0' align='center' cellpadding='6' cellspacing='1' class='border'>
                    <tr class='topbg'>
                        <td width="4%" align='center'><strong class="Glow">选中</strong></td>
                        <td width="13%"><strong class="Glow">登录名</strong></td>
                        <td width="11%">
                            <strong class="Glow">点击查看IP地址</strong></td>
                        <td width="12%"><strong class="Glow">注册问题</strong></td>
                        <td width="11%"><strong class="Glow">注册答案</strong></td>
                        <td width="24%"><strong class="Glow">检测是否填写信息</strong></td>
                        <td width="13%"><strong class="Glow">最后登录时间</strong></td>
                        <td width="12%" 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 name="checkbox" id="checkbox" type="checkbox" value="<%#Eval("id") %>" /></td>
                                <td><%#Eval("qyname") %></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><%#Eval("up_time")%></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>