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

<!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 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';
}
function Submit1_onclick() {

}

  </script>

</head>
<body>
  <form id="form1" runat="server">
    <div>
      <table align="center" border="0" cellpadding="2" cellspacing="1" class="border" width="100%">
        <tr class="topbg2">
          <td align="center" width="100%"><strong class="Glow">院 校 机 构 注 册 管 理</strong></td>
        </tr>
      </table>
      <asp:Panel ID="Manage" runat="server">
        <table border="0" width="100%">
          <tr>
            <td>
              搜索登陆名：
              <asp:TextBox ID="searchText" runat="server"></asp:TextBox>
              <input id="Submit1" type="submit" value="搜 索" onclick="return Submit1_onclick()" /></td>
          </tr>
        </table>
        <table align="center" border="0" cellpadding="4" cellspacing="1" class="border" width="100%">
          <tr class="topbg2">
            <td align="center" width="6%">
              <strong class="Glow">选中</strong></td>
            <td align="center" width="12%">
              <strong class="Glow">登录名</strong></td>
            <td align="center" width="14%">
              <strong class="Glow">点击查看IP地址</strong></td>
            <td align="center" width="11%">
              <strong class="Glow">注册问题</strong></td>
            <td align="center" width="12%">
              <strong class="Glow">注册答案</strong></td>
            <td align="center" width="18%">
              <strong class="Glow">检测是否填写信息</strong></td>
            <td align="center" width="14%">
              <strong class="Glow">注册时间</strong></td>
            <td align="center" width="13%">
              <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 id="checkbox" name="checkbox" type="checkbox" value='<%#Eval("id")%>' /></td>
                <td align='center'>
                  <%#Eval("slname") %>
                </td>
                <td align='center'>
                  <a href='http://www.ip138.com/ips.asp?ip=<%#Eval("IPAdd") %>&action=2' target="_blank">
                    <%#Eval("IPAdd") %>
                  </a>
                </td>
                <td align='center'>
                  <%#Eval("question") %>
                </td>
                <td align='center'>
                  <%#Eval("answer") %>
                </td>
                <td align='center'>
                  <%#showsj()%>
                </td>
                <td align='center'>
                  <%#Eval("regtime") %>
                </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" onclick="CheckAll(this.form)" type="checkbox" value="checkbox" />
          <asp:Button ID="del_button" runat="server" OnClick="del_button_Click" Text="删 除" />
        </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: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>
</body>
</html>