<!--#include file="../Conn.asp" -->
<!--#include file="../Comm/Site_Class.asp" -->
<!--#include file="../Comm/Person_Class.asp" -->
<!--#include file="../Comm/Function.asp" -->
<%
Dim strMenu,PageTitle
strMenu = ""
PagePath = "../"

Set Qsite = New Site_Class

Qsite.SiteConfig()
Qsite.GotoErrPage()

PageTitle = Qsite.SiteName & " - 企业会员管理中心"

Qsite.Nav_Company()

Qsite.arrMember = Qsite.Member_Info()
%>
<!--#include file="Check_Login.asp" -->
<%
Dim Rs,i,CurrentPage,FileName
Dim Qperson

Set Qperson = New Person_Class

Set Rs = server.CreateObject("ADODB.recordset")

FileName = "PersonPoolList.asp?="
%>
<script language="javascript">
	function BoxDel()
	{
		var bid = document.getElementsByName("BoxId");
		var chkflag = true;
		var delboxid = "0";
		for(var i = 0; i < bid.length; i++)
		{
			if(bid[i].checked == true)
			{
				chkflag = false;
				break;
			}
		}
		if(chkflag)
		{
			alert("请先选择要删除的人才");
			return false;
		}
		var question = confirm("你确定要删除选中的人才吗？");
		if (question !="0")
		{
			for(i = 0; i < bid.length; i++)
			{
				if(bid[i].checked == true)
				{
					delboxid += "|" + bid[i].value;
				}
			}
			window.showModalDialog("DelPerPool.asp?PoolId=" + delboxid,"DelPerPool","");
			location.reload();
		}
	}

	function selAll()
	{
		var selobj = document.getElementsByName("BoxId");
		for(var i = 0; i < selobj.length; i++)
		{
			selobj[i].checked = true;
		}
	}
	
	function removeAll()
	{
		var selobj = document.getElementsByName("BoxId");
		for(var i = 0; i < selobj.length; i++)
		{
			selobj[i].checked = false;
		}
	}
	
	function onclicksel()
	{
		var chkobj = document.all("BoxIdAll");
		if(chkobj.checked == true)
		{
			selAll();
		}
		else
		{
			removeAll();
		}
	}
</script>
 <table width="974" height="413" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr> 
        <td width="181" valign="top"> 
<!--#include file="Left_Menu.asp" -->
         </td>
        <td width="793" align="left" valign="top">


<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="26" background="../images/Member_Center_r7_c8.jpg"><table width="768" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="60">&nbsp;</td>
                    <td width="708"><span style="font-size:14px;color:#FF7706"><b>企业人才库</b></span><span style="font-size:14px;color:#333333"> 
                      <strong>StoreRoom</strong></span></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td height="136" align="left" valign="top" background="../images/Member_Center_r10_c8.jpg" style="padding-top:5px;padding-left:10px;padding-right:10px;padding-bottom:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td width="100%" height="23"><img src="../images/ico_2.gif" width="15" height="12" align="absmiddle" />友情提示：您可以对人才库的人才发送邀请面试记录，可查看人才相关资料信息。</td>
                  </tr>
                </table>
                <table width="100%" height="7" border="0" cellpadding="0" cellspacing="0">
                  <tr height="1">
                    <td background="../images/ico_point.gif"></td>
                  </tr>
				  <tr height="6">
                    <td></td>
    
                </table>

<%
If Qsite.arrMember(8 , Session("MemberType")) <> "1" Then
%>
								<table width="100%" border="0" cellspacing="0" cellpadding="5" >
										<tr>
											<td width="100%" height="20" align="center">您当前的会员类型无法使用此功能，请联系我们的管理员升级您的帐号！</td>
										</tr>
						</table>
<%
Else
%>
								<form id="ListForm" name="ListForm" method="post" action="" style="margin:0">
									<table width="100%" align=center border="0" cellpadding="5" cellspacing="3">
										<tr>
											<td width="7%" height="30" >&nbsp;</td>
											<td width="21%" height="30" ><strong>姓名</strong></td>
											<td width="16%" height="30" align="center" ><strong>性别</strong></td>
											<td width="15%" height="30" align="center" ><strong>年龄</strong></td>
											<td width="18%" height="30" align="center" ><strong>学历</strong></td>
											<td width="23%" height="30" align="center" ><strong>加入时间</strong></td>
										</tr>
<%
Rs.Open "select * from CompanyPerPoolTbl where ComId = "& Session("ComId") &" order by PoolId asc" , Conn , 1 , 1
If Rs.Eof Then
%>
										<tr>
											<td height="30" colspan="6" align="center">暂无人才信息</td>
										</tr>
<%
Else
	Rs.PageSize = 20
	CurrentPage = Clng(Request("page"))
	If CurrentPage < 1 Then CurrentPage = 1
	If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
	Rs.AbsolutePage = CurrentPage
	i = 0
	Do While Not Rs.Eof
		Qperson.PersonInfo(Rs("PerId"))
%>
										<tr>
											<td height="30" align="center" ><input name="BoxId" type="checkbox" id="BoxId" value="<%=Rs("PoolId")%>" /></td>
											<td height="30" ><a href="../Person_View.asp?PerId=<%=Rs("PerId")%>" target="_blank"><%=Qperson.RealName%></a></td>
											<td height="30" align="center" ><%=Qperson.Sex%></td>
											<td height="30" align="center" ><%=Qperson.Age%></td>
											<td height="30" align="center" ><%=Qperson.Qualification%></td>
											<td height="30" align="center" ><%=Qsite.FormatDate(FormatDateTime(Rs("AddDate") , 2))%></td>
										</tr>
<%
	i = i + 1
	Rs.MoveNext
	If i >= Rs.PageSize Then Exit Do
	Loop
%>
										<tr>
											<td height="30" align="center"><input name="BoxIdAll" type="checkbox" id="BoxIdAll" value="checkbox" onclick="onclicksel();" /></td>
											<td height="30" colspan="5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<td width="27%">全选 
														<input type="button" name="Submit" value=" 删  除 " class="input_bk_D2D2D2" onclick="BoxDel();" /></td>
													<td width="73%" align="right">
<%
	Qsite.Page_Cn CurrentPage , Rs.PageCount , Rs.RecordCount , FileName
%>													</td>
												</tr>
											</table></td>
									  </tr>
<%
End If
Rs.Close
%>
									</table>
								</form>
<%
End If
%>
		<table width="100%" height="1" border="0" cellpadding="0" cellspacing="0">
                  <tr height="1">  
                    <td background="../images/ico_point.gif"></td>
                  </tr>
                </table></td>
            </tr>
            <tr height="14">
              <td height="14" background="../images/Member_Center_r18_c8.jpg"></td>
            </tr>
          </table></td>
      </tr>
    </table>
 
<table width="974" height="8" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr height="8">
        <td height="8"></td>
      </tr>
    </table>
<%
Qsite.Bottom()
%>