<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_CompanyUser_List.aspx.cs"
    Inherits="YCHR.Web.admin.user.YC_CompanyUser_List" %>
<!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>企业会员管理</title>
<link rel="stylesheet" type="text/css" href="../images/style.css" />
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/function.js"></script>
<script type="text/javascript">
        $(function () {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function () {
			        $(this).addClass("tr_hover_col");
			    },
			    function () {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
        //全选，反选
        function checkall(obj, cc) {
            $(cc).find(":checkbox").attr("checked", $(obj).attr("checked") == true);
        }
    </script>
</head>
<body style="padding: 10px;">
<form id="form1" runat="server">
  <div class="navigation"> <span class="add"></span><b>您当前的位置：首页 &gt; 会员管理 &gt; 会员列表</b></div>
  <div class="spClear"> </div>
  <table width="100%" cellspacing="1" cellpadding="2" border="0" align="center" class="border">
    <tbody>
      <tr class="tdbg">
        <td width="8%" height="30"><strong>管理选项：</strong></td>
          <td width="905" class="dh">
                    <a href="YC_zhaopin_List.aspx">管理首页</a>|<a target="sysMain" href="YC_zhaopin_List.aspx">招聘企业管理</a>|
                    <a href="YC_Job_List.aspx">职位管理</a>|<a target="sysMain" href="YC_Simple_List.aspx">微招聘管理</a>|
                    <a href="YC_company_service.aspx">企业服务申请管理</a>|  <a href="Yc_companyphoto_list.aspx">企业相册管理</a>|[<a href="javascript:location.reload()">刷新页面</a>]
                </td>
      </tr>
      <tr class="tdbg">
        <td width="8%" height="30"><strong>身份筛选：</strong></td>
        <td class="dh"><div> <a href="?state=&amp;day=<%=RequestS("day") %>" class="<%=RequestS("state")==""?"dhcss":"" %>"> 不限</a> <a href="?state=0&amp;day=<%=RequestS("day") %>" class="<%=RequestS("state")=="0"?"dhcss":"" %>"> 已激活</a> <a href="?state=1&amp;day=<%=RequestS("day") %>" class="<%=RequestS("state")=="1"?"dhcss":"" %>"> 未激活</a>  </div></td>
      </tr>
      <tr class="tdbg">
        <td width="8%" height="30"><strong>时间筛选：</strong></td>
        <td class="dh"><a href="?day=&amp;state=<%=RequestS("state") %>" class="<%=RequestS("day")==""?"dhcss":"" %>"> 不限</a> <a href="?day=1&amp;state=<%=RequestS("state") %>" class="<%=RequestS("day")=="1"?"dhcss":"" %>"> 一天内</a> <a href="?day=3&amp;state=<%=RequestS("state") %>" class="<%=RequestS("day")=="3"?"dhcss":"" %>"> 三天内</a> <a href="?day=7&amp;state=<%=RequestS("state") %>" class="<%=RequestS("day")=="7"?"dhcss":"" %>"> 一周内</a> <a href="?day=30&amp;state=<%=RequestS("state") %>" class="<%=RequestS("day")=="30"?"dhcss":"" %>"> 一月内</a> <a href="?day=180&amp;state=<%=RequestS("state") %>" class="<%=RequestS("day")=="180"?"dhcss":"" %>"> 半年内</a></td>
      </tr>
      <tr class="tdbg">
        <td height="30"><strong>　登陆名：</strong></td>
        <td><asp:TextBox ID="txtKeywords" class="keyword" runat="server"></asp:TextBox>
          <asp:Button ID="Button1" CssClass="submit" runat="server" Text="搜索" OnClick="Button1_Click" /></td>
      </tr>
    </tbody>
  </table>
  <div class="clear box">
  <div class="left">
  目前总记录数为：<b class="ft_red ft_16"><%=recordCount %></b></div>  
  <asp:Literal ID="litpagestr0" runat="server"></asp:Literal>
  </div>
  <div class="clear"></div>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable" id="ListView">
    <tr>
      <th width="6%" align="center"> 编号 </th>
      <th width="16%" align="center"> 会员名 </th>
      <th width="9%" align="center"> 状态 </th>
      <th width="16%" align="center"> 登录时间<br />
      注册时间 </th>
      <th width="11%" align="center"> 类型|用户组 </th>
      <th width="23%" align="center"> 联系方式 </th>
      <th width="8%" align="center"> 登录次数 </th>
      <th width="11%" align="center"> <input id="chkBoxAll" type="checkbox" name="chkBoxAll" onclick="checkall(this,'#ListView');">
      </th>
    </tr>
    <asp:Repeater ID="repList" runat="server">
      <ItemTemplate>
        <tr>
          <td align="center"><%#Eval("uid") %></td>
          <td align="left"><a target="_blank" href="../adlogin.aspx?username=<%#Eval("username")%>&password=<%#YCHR.Common.StringHelper.StrDe(Eval("password").ToString())%>"> <%#Eval("username") %></a> 
            </br>
            密码：<%#YCHR.Common.StringHelper.StrDe(Eval("password").ToString())%></td>
          <td align="center"><%#getstatename(Eval("state"))%></td>
          <td align="center"><%#(Eval("logindate").ToString())%>
            </br>
            <%#(Eval("regdate").ToString())%></td>
          <td align="center"><%#Eval("utype").ToString() == "1" ? "个人会员" : "企业会员"%></td>
          <td align="center"><%#Eval("email") %></td>
          <td align="center"><%#Eval("logintimes") %></td>
          <td align="center"><asp:HiddenField ID="txtid" Value='<%#Eval("uid") %>' runat="server" />
            <asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" /></td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
  </table>
  <div class="clear box">
  <div class="left">    <asp:Button ID="btnsh" CssClass="submit" runat="server" Text="激活帐号" OnClick="btnsh_Click" />
    <asp:Button ID="btnwsh" CssClass="submit" runat="server" Text="取消激活" OnClick="btnwsh_Click" />
    <asp:Button ID="btndele" CssClass="submit" runat="server" Text="删除" OnClientClick="return confirm( '将删除该会员所有信息，你确定要删除该会员所有信息？？ ');"
            OnClick="btndele_Click" />
</div>
    <!--page-->
  <asp:Literal ID="litpagestr" runat="server"></asp:Literal>
  </div>
  <div class="clear"></div>
</form>
</body>
</html>
