<!--#include file="../Include/Conn.asp" -->
<!--#include file="../Include/const.asp" -->
<!--#include file="../Include/function.asp" -->
<% key=trim(request("key"))
   stype=request("stype") 
   gzdd=request("gzdd") %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE><%=site_info(0)%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="../Include/Style1.css" type=text/css rel=stylesheet>
<META content="Microsoft FrontPage 5.0" name=GENERATOR>
<style type="text/css">
<!--
.style2 {color: #FFFFFF}
.style7 {color: #FF0000}
.style8 {color: #FF3300}
-->
</style>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--//
function check()
{
   if (isNaN(go2to.page.value))
		alert("请正确填写转到页数！");
   else if (go2to.page.value=="") 
	     {
		alert("请输入转到页数！");
		 }
   else
		go2to.submit();
}
//-->
</SCRIPT>
<!--#include file="../Include/top.asp" -->
<SCRIPT language=JavaScript src="inc/search.js"></SCRIPT>
<table width="770" height="3" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" bgcolor="#111111" id="AutoNumber27" style="border-collapse: collapse">
  <tr>
    <td width="100%"></td>
  </tr>
</table>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="3" bgcolor="#FFFFFF">
  <tr>
    <td><div align="center">
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="762" height="100">
          <param name="movie" value="../Include/images/b33.swf">
          <param name=quality value=high>
          <embed src="../Include/images/b33.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="762" height="100"></embed>
        </object>
    </div></td>
  </tr>
</table>
<div align="center">
  <center>
  </center>
</div>
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="770" id="AutoNumber6" bgcolor="#000000" height="1">
    <tr bgcolor="#111111">
      <td></td>
    </tr>
    <tr>
      <td width="100%"></td>
    </tr>
  </table>
  </center>
</div>
<div align="center">
  <center>
  <table border="0" cellpadding="20" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="770" id="AutoNumber62" bgcolor="#FFFFFF">
    <tr>
      <td width="770" valign="top">
      <div align="center">
        <center>
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="710" id="AutoNumber67" height="20">
        <tr>
          <td width="200%"><img src="../image/search.gif" width="710" height="80" border="0"></td>
        </tr>
      </table>
        </center>
      </div>
      <div align="center">
        <center>
        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="710" id="AutoNumber69">
          <tr>
            <td width="66">　</td>
            <td width="644" valign="top">
            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#1168A9" width="100%" id="AutoNumber71">
              <tr>
                <td width="100%" height="38"><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                  <TR>
                    <TD width="641" height="32" background="../Include/images/search1.gif">
                      <table width="640" border="0">
                        <tr>
                          <th width="46" height="31" scope="row">&nbsp;</th>
                          <th width="584" scope="row">
                            <div align="left" class="style7"><a href="search.asp?stype=company&gzdd=noxz" target=_blank class="style8"><%=site_info(0)%> —— 信 息 搜 索 结果</a> </div></th>
                        </tr>
                      </table></TD>
                    </TR>
                </TABLE>
            </td>
              </tr>
            </table>
            <table border="0" cellpadding="6" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber72">
              <tr><% set rs=server.createobject("adodb.recordset") 
              if not isempty(request("page")) then   
	          pagecount=cint(request("page"))   
              else   
	          pagecount=1   
              end if
              if stype="company" then 
			  if gzdd="noxz" then
              sql="select * from zp where job & cname like '%"&key&"%' order by id desc" 
              else 
              sql="select * from zp where job & cname like '%"&key&"%' and gzdd='"&gzdd&"' order by id desc"   
              end if
			  else 
			  if gzdd="noxz" then
              sql="select * from person where job & iname like '%"&key&"%' order by id desc" 
              else 
              sql="select * from person where job & iname like '%"&key&"%' and gzdd='"&gzdd&"' order by id desc"   
              end if
			  end if
              rs.open sql,conn,1,1   
              if rs.eof and rs.bof then   
              response.write"<SCRIPT language=JavaScript>alert('对不起，没有符合搜索条件的记录！');"
              response.write"javascript:window.close();</SCRIPT>"
			  response.end 
              end if
              rs.pagesize=15
              if pagecount>rs.pagecount or pagecount<=0 then              
              pagecount=1              
              end if              
              rs.AbsolutePage=pagecount %>   
                <td align=middle width="100%"><% if rs.pagecount=1 then %><font color="#000000"></font><font color="#000000">共有[<font color="#ff0000"><%=rs.recordcount%></font>]条<% if stype="company" then response.write"招聘信息"  else  response.write"求职简历" end if 
		  %>符合条件 以下是[<font color="red">1～<%=rs.recordcount%></font>]条</font><%else%><font color="#000000"></font><font color="#000000">
		 <% page_start=(pagecount-1)*rs.pagesize
            if pagecount=1 then page_start=1
		    page_end=rs.pagesize*pagecount
		    if pagecount*rs.pagesize=>rs.recordcount then page_end=rs.recordcount end if%>
         共有[<font color="#ff0000"><%=rs.recordcount%></font>]条<% if stype="company" then response.write"招聘信息"  else  response.write"求职简历" end if %>符合条件    
         以下是[<font color="red"><%=page_start%>～<%=page_end%></font>]条</font>　</td>
              </tr>
            </table>
            <table border="0" cellpadding="6" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber73">
              <tr>
                <td align=middle width="100%"><% response.write"<form name=go2to form method=Post action='searchs.asp?stype="+stype+"&gzdd="+gzdd+"&key="+key+"'>"
		     if pagecount=1 then                                                        
			 response.write "<font color='#000064'>首页 上一页</font>&nbsp;"
			 else                                                        
             response.write "<a href=searchs.asp?page=1&stype="+stype+"&gzdd="+gzdd+"&key="+key+"><font color='0000BE'>首页</font></a>&nbsp;" 
	         response.write "<a href=searchs.asp?page="+cstr(pagecount-1)+"&stype="+stype+"&gzdd="+gzdd+"&key="+key+"><font color='0000BE'>上一页</font></a>&nbsp;"
			 end if                                             
             if rs.PageCount-pagecount<1 then                                                        
             response.write "<font color='#000064'>下一页 尾页</font>"                                                    
			 else                                                        
             response.write "<a href=searchs.asp?page="+cstr(pagecount+1)+"&stype="+stype+"&gzdd="+gzdd+"&key="+key+"><font color='0000BE'>下一页</font></a>&nbsp;"
			 response.write "<a href=searchs.asp?page="+cstr(rs.PageCount)+"&stype="+stype+"&gzdd="+gzdd+"&key="+key+"><font color='0000BE'>尾页</font></a>"           
             end if 
			 response.write "<font color='000064'>&nbsp;页次:<font color=blue>"&pagecount&"</font>/"&rs.pagecount&"页</font>" 
			response.write "<font color='000064'> 转到第<input type='text' name='page' size=2 maxLength=3 style='font-size: 9pt; color:#00006A; position: relative; height: 18' value="&PageCount&">页</font>&nbsp;"                               
			response.write "<input class=button type='button' value='确 定' onclick=check() style='font-family: 宋体; font-size: 9pt; color: #000073; position: relative; height: 19'>" %> 　</td>
              </tr> <% end if %>
            </table><% if stype="company" then %>
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" id="AutoNumber36" style="border-collapse: collapse">
              <tr align="center" bgcolor="#f3f3f3">
                <% set rs=server.createobject("adodb.recordset")
sql="select * from company"
rs.open sql,conn,1,1
r1=rs.recordcount
rs.close                                                                    
set rs=nothing
set rs=server.createobject("adodb.recordset")
sql="select * from zp order by id desc"           
rs.open sql,conn,1,1 
jobnum=rs.recordcount %>
                <td width="39%" height="20" bgcolor="#f3f3f3">&nbsp;<font color="#456789">▓</font> <font color="#456789">公司名称</font></td>
                <td width="40%" height="20" bgcolor="#f3f3f3"><font color="#456789">&nbsp;▓</font> <font color="#456789">招聘职位</font></td>
                <td width="21%" height="20" bgcolor="#f3f3f3"><font color="#456789">&nbsp;▓</font> <font color="#456789">发布日期</font></td>
              </tr>
              <% do while not rs.eof %>
              <tr align="center" bgcolor="#FFFFFF">
                <td width="39%" height="20"><a href="company.asp?uid=<%=rs("uname")%>" target="_blank"> &nbsp;
                      <% if len(rs("cname"))>5 then%>
                      <%=Left(rs("cname"),8)%>...
                      <% else%>
                      <%=rs("cname")%>
                      <%end if%>
                </a></td>
                <td width="40%" height="20"><a href="job.asp?uid=<%=rs("uname")%>&id=<%=rs("id")%>" target="_blank"><%=rs("job")%></a></td>
                <td width="21%" height="20"><%=rs("idate")%></td>
              </tr>
              <% c=c+1                                                                     
     rs.movenext                                                                     
     if c>=8 then exit do                                                                     
     loop                                                                    
     rs.close                                                                    
     set rs=nothing %>
            </table>
            <% else %>
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" id="AutoNumber30" style="border-collapse: collapse">
              <tr align="center" bgcolor="#f3f3f3">
                <% set rs=server.createobject("adodb.recordset")
	     sql="select * from person" 
         rs.open sql,conn,1,1
         r2=rs.recordcount
         rs.close                                                                    
         set rs=nothing
         set rs=server.createobject("adodb.recordset")
		 sql="select * from person where job<>'""' order by id desc"           
         rs.open sql,conn,1,1 
         jlnum=rs.recordcount %>
                <td width="17%" height="20" bgcolor="#f3f3f3"><font color="#456789">&nbsp;▓ 姓 名</font></td>
                <td width="11%" height="20" bgcolor="#f3f3f3"><font color="#456789">&nbsp;▓ 性 别</font></td>
                <td width="22%" height="20" bgcolor="#f3f3f3"><font color="#456789">&nbsp;▓ 学 历</font></td>
                <td width="25%" height="20" bgcolor="#f3f3f3"><font color="#456789">&nbsp;▓</font> <font color="#456789">应聘岗位</font></td>
                <td width="25%" bgcolor="#f3f3f3"><font color="#456789">▓</font> <font color="#456789">登录日期</font></td>
              </tr>
              <% do while not rs.eof %>
              <tr align="center" bgcolor="#FFFFFF">
                <td width="17%" height="20"><a href="person.asp?uid=<%=rs("uname")%>" target="_blank"><%=rs("iname")%></a></td>
                <td width="11%" height="20">[<%=rs("sex")%>]</td>
                <td width="22%" height="20">[<%=rs("edu")%>]</td>
                <td width="25%" height="20"><a href="person.asp?uid=<%=rs("uname")%>" target="_blank"><%=rs("job")%></a></td>
                <td width="25%" height="20"><%=rs("idate")%></td>
                <% p=p+1                                                                     
     rs.movenext                                                                     
     if p>=8 then exit do                                                                     
     loop                                                                    
     rs.close                                                                    
     set rs=nothing 
	 set rs=server.createobject("adodb.recordset")
     sql="select * from pmailbox" 
     rs.open sql,conn,1,1
     pmailnum=rs.recordcount
     rs.close                                                                    
     set rs=nothing 
	 set rs=server.createobject("adodb.recordset")
     sql="select * from cmailbox" 
     rs.open sql,conn,1,1
     cmailnum=rs.recordcount
     rs.close                                                                    
     set rs=nothing %>
              </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber70">
              <tr>
                <td width="100%">　</td>
              </tr>
            </table><% end if %>
            </td>
          </tr>
        </table>
        </center>
      </div>
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber63">
        <tr>
          <td width="100%">　</td>
        </tr>
      </table>
      </td>
    </tr>
  </table>
  </center>
</div>
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="770" id="AutoNumber19" bgcolor="#111111" height="1">
    <tr>
      <td width="100%"></td>
    </tr>
  </table>
  </center>
</div>
<!--#include file="../Include/Bottom.asp" -->
</BODY></HTML>