<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Public/Person_Cookies.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<% 

Key = Replace_Text(Request("Key"))
If Key = "" Then 
 Response.write "<script>alert('请输入搜索关键字');history.back(-1);</script>"
 Response.End()
End if
'Set Rs = Server.CreateObject("Adosb.recordset")
SQL = "Select Count(*) From [pH_Company_Base] Where (Username like '%"&Key&"%' or CompanyName  like '%"&Key&"%')"
Set Rs = Conn.Execute(SQL)
If Rs(0) > 20 Then
 Response.write "<script>alert('您输入的关键字搜索出来的结果过多，请您选择更准确的关键字重新搜索');history.back(-1);</script>"
 Response.End()
End if


 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Css.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName %> -- 简历中心 -- 屏蔽企业</title>
</head>
<script language="JavaScript">
function SelectAllItem(item)
{
    if( typeof(item.length) == "undefined" )
    {
        item.checked = !item.checked
    }
    else
    {
        for(i=0;i<item.length;i++)
        {
            item[i].checked=!item[i].checked
        }
    }
}

function theForm_Submit(id)
{
		
		if (id=="keeps")
		{
			form.action="Per_Option.asp?param=keeps";
			form.submit();	   
		}		
		
}
function openwin()
  {
    disp=window.open("","rslt","width=500,height=320,resizable=yes");
	disp.focus();
  }
</script>

<body>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="470" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><table width="470" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
        <form action="Per_KeepSearch.asp" name="search" method="post">
          <tr> 
            <td height="25" bgcolor="f9f9f9"> &nbsp;<img src="../Images/icon.gif" width="11" height="11" align="absmiddle"> 
              <strong>设置简历隐藏 
              <input name="key" type="text" id="key">
              <input type="submit" name="Submit" value="搜索">
              </strong></td>
          </tr>
        </form>
      </table></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <form name="form" action="" method=POST>
  <tr> 
    <td> <% 
SQL = "Select Comid,CompanyName From [pH_Company_Base] Where (Username like '%"&Key&"%' or CompanyName  like '%"&Key&"%')"
Set Rs = Conn.Execute(SQL)
If Not Rs.Eof Then

 %> <table width="470" border="0" cellpadding="4" cellspacing="1" bgcolor="#dddddd">
        <tr align="center" bgcolor="#f5f5f5"> 
          <td width="60">选择</td>
          <td>企业名称</td>
        </tr>
        
		<% 
		 While Not Rs.Eof
          Comid = Rs(0)
          CompanyName = Rs(1)
		 %>
          <tr bgcolor="#FFFFFF"> 
            <td width="60" align="center"><input type=checkbox value="<%=Comid%>" name=ncid></td>
            <td><%= CompanyName %></td>
          </tr>
		  <% 
		   Rs.Movenext
         Wend
		   %>
       
      </table> <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="30" align="center"> 
            <input name="delete" type="button" onClick="javascript:theForm_Submit('keeps')" value="对选中的企业屏蔽"></td>
        </tr>
      </table>
      <% 

Else
 Response.write "没有搜索到相关的记录"
End if
Rs.Close
 %> </td>
  </tr>
   </form>
</table>
</body>
</html>
