<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<% data_path="../" 'ACC连接数据库路径，对SQL无效 %>
<!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>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/safe.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webname%>个人求职</title>
<link rel="stylesheet" href="<%=HOPE_InstallDir%>News/new.css" type="text/css" />
<link rel="stylesheet" href="../News/new.css" type="text/css" />
<style type="text/css">
<!--
.STYLE2 {color: #1F3A87}
.STYLE3 {
	color: #B43209;
	font-weight: bold;
}
-->
</style>
</head>
<body>
<div class="juzhong_952"> 
<!--#include file="../inc/headtop.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=952 align=center border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=20>&nbsp;</TD>
<TD ></TD>
<TD width=18>&nbsp;</TD>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

<table width="952" style="border-collapse:collapse"  border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#D8A888" bgcolor="#F9F5EC">
 <tr><td height="3"  colspan="2" bgcolor="#FFFFFF"></td></tr>
 <%
 typeid=Replace_Text(request("typeid"))
 if not isnumeric(typeid) then
 typeid=0
 end if
 if typeid="1" then 
 %>
  <tr>
    <td width="117"   height="30">&nbsp; <span class="STYLE2"><span class="STYLE3">招聘信息查询</span>:</span></td>
    <td width="847"><table width="100%"  style="border-collapse:collapse" border="0"  align="center" cellpadding="0" cellspacing="0" bordercolor="#EAEAEA" >
  <form action="<%=HOPE_InstallDir%>job/jobsearch.asp" method="post" name="form" id="form">
    <tr>
      <td>&nbsp;<strong>职位</strong>&nbsp;
          <input type="text" name="zhiweiname" value="" maxlength="16" size="30"  onblur="this.value=this.value.replace(/\s/g,'');check_userName(document.form.user.value); "   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:120;height:19" />
          <select size="1" name="jobkind">
              <option value="0" >请选择职业类别</option>
              <%
	  set rsl=server.CreateObject("adodb.recordset")
	  sqll="select * from Websen_jobkind"
	  rsl.open sqll,conn,1,1
	  if not rsl.eof then
	  do while not rsl.eof 
	  %>
              <option value="<%=rsl("id")%>" ><%=rsl("kindname")%></option>
              <%
	  rsl.movenext
	  loop
	  rsl.close
	  end if
	  
	  %>
          </select>
        &nbsp;
        <select style="WIDTH: 90px"   onchange="javascript:changeCountry1(this);" name="country1">
                </select>
        &nbsp;
        <select style="WIDTH: 60px"  onchange="changeProvince(this);" name="province">
              <option value=""   selected="selected">省份</option>
                </select>
        &nbsp;
        <select name="city">
              <option value="" selected="selected">地 级</option>
                </select>
        &nbsp;
        <input type="radio" name="typeid" value="1"  checked="checked" />
        职位&nbsp;
        <input type="radio" name="typeid"  value="2"/>
        人才
        <input  type="submit" name="gos" value="搜 索" style=" background-color:#CCCCCC" />
          <script language="JavaScript" src="<%=HOPE_InstallDir%>js/area.js" type="text/javascript" purpose="INITIALIZER"></script>
          <script language="JavaScript" type="text/javascript">
 <!--
     for (var i=0;i<5;i++){
	    if (country1Form1.options[i].value == '<%=country%>'){
		    country1Form1.options[i].selected=true;
		}
	}
     for (var i=0;i<catArr1.length;i++) {
		catForm1.options[i+1]=new Option(catArr1[i].title,catArr1[i].id);
 		if(catForm1.options[i+1].value == '<%if country="中国" then response.write""&sf&""%>'){
	        	catForm1.options[i+1].selected=true;
	        }
	}
	changeProvince(catForm1);
	var len = boardForm1.options.length;
	for (var i=0;i<len;i++) {
 		if(boardForm1.options[i].value == '<%if country="中国" then response.write""&city&""%>') {
		    boardForm1.options[i].selected=true;
		}
	}
     if (country1Form1.options[country1Form1.selectedIndex].value!='中国') {
	    catForm1.style.display = 'none';
	    boardForm1.style.display = 'none';
		}
//     for (var i=0;i<9;i++){
//       if (document.form.DateTime[i].value =='<%=datetime%>'){
//            document.form.DateTime[i].selected = true;
//        }
//    }
-->
          </script></td>
    </tr>
  </form>
</table></td>
  </tr>
  
  <%else%>
   <tr>
    <td width="117"   height="30">&nbsp;  <span class="STYLE2"><span class="STYLE3">人才信息查询</span>:</span></td>
    <td><table width="100%"  style="border-collapse:collapse" border="0"  align="center" cellpadding="0" cellspacing="0" bordercolor="#EAEAEA" >
  <form action="<%=HOPE_InstallDir%>job/jobsearch.asp" method="post" name="form" id="form">
    <tr>
      <td>&nbsp;<strong>职位</strong>&nbsp;
          <input type="text" name="zhiweiname" value="" maxlength="16" size="30"  onblur="this.value=this.value.replace(/\s/g,'');check_userName(document.form.user.value); "   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:120;height:19" />
          <select size="1" name="jobkind">
              <option value="0" >请选择职业类别</option>
              <%
	  set rsl=server.CreateObject("adodb.recordset")
	  sqll="select * from Websen_jobkind"
	  rsl.open sqll,conn,1,1
	  if not rsl.eof then
	  do while not rsl.eof 
	  %>
              <option value="<%=rsl("id")%>" ><%=rsl("kindname")%></option>
              <%
	  rsl.movenext
	  loop
	  rsl.close
	  end if
	  
	  %>
          </select>
        &nbsp;
        <select style="WIDTH: 90px"   onchange="javascript:changeCountry1(this);" name="country1">
                </select>
        &nbsp;
        <select style="WIDTH: 60px"  onchange="changeProvince(this);" name="province">
              <option value=""   selected="selected">省份</option>
                </select>
        &nbsp;
        <select name="city">
              <option value="" selected="selected">地 级</option>
                </select>
        &nbsp;
        <input type="radio" name="typeid" value="1"  checked="checked" />
        职位&nbsp;
        <input type="radio" name="typeid"  value="2"/>
        人才
        <input  type="submit" name="gos" value="搜 索" style=" background-color:#CCCCCC" />
          <script language="JavaScript" src="<%=HOPE_InstallDir%>js/area.js" type="text/javascript" purpose="INITIALIZER"></script>
          <script language="JavaScript" type="text/javascript">
 <!--
     for (var i=0;i<5;i++){
	    if (country1Form1.options[i].value == '<%=country%>'){
		    country1Form1.options[i].selected=true;
		}
	}
     for (var i=0;i<catArr1.length;i++) {
		catForm1.options[i+1]=new Option(catArr1[i].title,catArr1[i].id);
 		if(catForm1.options[i+1].value == '<%if country="中国" then response.write""&sf&""%>'){
	        	catForm1.options[i+1].selected=true;
	        }
	}
	changeProvince(catForm1);
	var len = boardForm1.options.length;
	for (var i=0;i<len;i++) {
 		if(boardForm1.options[i].value == '<%if country="中国" then response.write""&city&""%>') {
		    boardForm1.options[i].selected=true;
		}
	}
     if (country1Form1.options[country1Form1.selectedIndex].value!='中国') {
	    catForm1.style.display = 'none';
	    boardForm1.style.display = 'none';
		}
//     for (var i=0;i<9;i++){
//       if (document.form.DateTime[i].value =='<%=datetime%>'){
//            document.form.DateTime[i].selected = true;
//        }
//    }
-->
          </script></td>
    </tr>
  </form>
</table></td>
  </tr> 
  <%end if%>
</table>
 

<table width="952"  border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#F6F6F6"> 
  
<%

gos=Replace_Text(request("gos"))
zhiweiname=Replace_Text(request("zhiweiname"))
jobkind=Replace_Text(request("jobkind"))
province=Replace_Text(request("province"))
country1=Replace_Text(request("country1"))
city=Replace_Text(request("city"))
typeid=Replace_Text(request("typeid"))
 if typeid="" then
  typeid=1
 end if
 if not isnumeric(typeid) then
 typeid=0
 end if
  if not isnumeric(jobkind) then
 jobkind=0
 end if
 sql="select * from Websen_work where shenhe=1   "

if typeid="1"  then
sql="select * from Websen_work where shenhe=1 "
 
 
if gos<>"" then 
if jobkind<>"" then
if jobkind<>"0" then
sql=sql&"   and  jobkind="&jobkind 
end if
end if
if zhiweiname<>"" then 
sql=sql&"  and  showname like '%"&zhiweiname&"%' "
end if
if country1<>"" then
sql=sql&"  and  country like '%"&country1&"%' "
end if
if province<>"" then 
sql=sql&"  and  province like '%"&province&"%' "
end if
if city<>"" then 
sql=sql&"  and    city like '%"&city&"%' "
end if
 end if
 sql=sql&" order by dateandtime desc"
end if
if typeid="2" then
sql="select  * from Websen_jobuser where islock=0 "
if gos<>"" then
if jobkind<>"" then
if jobkind<>"0" then
sql=sql&"   and  jobkind="&jobkind 
end if
end if
if zhiweiname<>"" then 
sql=sql&"  and  (jobzhiwei like '%"&zhiweiname&"%' or jobzhiwei2 like '%"&zhiweiname&"%') "
end if
if country1<>"" then
sql=sql&"  and  country like '%"&country1&"%' "
end if
if province<>"" then 
sql=sql&"  and  province like '%"&province&"%' "
end if
if city<>"" then 
sql=sql&"  and    city like '%"&city&"%' "
end if
end if
sql=sql&"   order by addtime desc"
end if
     	Set rs= Server.CreateObject("ADODB.Recordset") 
	rs.open sql,conn,1,1 
 	msg_per_page=20 '定义每页显示记录条数
 %><!--#include file="../inc/headpage.asp"-->
<%
if rs.eof then

%>
<tr><td colspan="5" align="center" height="150"><font color="red">暂无信息</font></td></tr>
<%
else
%>

<%
if typeid="1" then
%>
<tr>
    <td height=200 valign="top"><table   width="100%" border="1"  style="border-collapse:collapse"  bordercolor="#D8A888" align="center" cellpadding="2" cellspacing="0"  >
      <tr align="center" bgcolor="#F9F5EC">
        <td height="30" bgcolor="#F9F5EC">招聘职位</td>
        <td>企业名称</td>
        <td>工作区域</td>
        <td>发布时间</td>
        <td>截至日期</td>
      </tr>
      <tr>
        <td colspan="5" height="2" bgcolor="#F9F5EC"></td>
      </tr>
      <%
end if
if typeid="2" then
%>
      <tr>
        <td height=200 valign="top"><table   width="100%" border="1"   style="border-collapse:collapse" bordercolor="#D8A888" align="center" cellpadding="2" cellspacing="0"  >
            <tr align="center" bgcolor="#F9F5EC">
              <td>姓　名</td>
              <td height="30">应 聘 岗 位</td>
              <td>性 别</td>
              <td>学 历</td>
              <td>日 期</td>
            </tr>
            <%end if
 do while not rs.eof and rowcount > 0
if typeid="1" then
%>
            <tr align="center">
              <td><a href=# onclick=javascript:window.open('<%=HOPE_InstallDir%>job/work_info.asp?info_id=<%=rs("Info_ID")%>','','top=50,left=120,width=457,height=450,scrollbars=yes')><%=rs("showname")%></a></td>
              <td><%
	 set rsc=server.CreateObject("adodb.recordset")
	 sqlc="select * from Websen_corporation where id="&rs("gsid")
	 rsc.open sqlc,conn,1,1
	 if   rsc.eof then 
	 response.Write("无数据")
	 else
	 
	 '--是否使用的名片页------------------------------------------------------------
	   set rsmp1=server.CreateObject("adodb.recordset")
	   sqlmp1="select * from Websen_vipgrade where roleid="&rsc("gradeid")
	   rsmp1.open sqlmp1,conn,1,1
	   if not rsmp1.eof  then 
 
	   if instr(rsmp1("rolelist"),"qw")>0 then		

		 if is2weburl=1 then
		 response.write" <a href=http://"&rsc("user")&"."&weburl1&"  target=""_blank""><FONT color=#666666>"&rsc("qymc")&"</font></a>"
		else
		response.write" <a href="""&HOPE_InstallDir&"vipcom/"&rsc("user")&""" target=""_blank""><FONT color=#666666>"&rsc("qymc")&"</font></a>"
		 end if
		 
		 else
		 %>
                  <a  href="<%=HOPE_InstallDir%>Ptcom/<%=rsc("user")%>.html"  target="_blank"><%=rsc("qymc")%></a>
                  <%
  end if
  rsmp1.close
  end if
	 rsc.close
	 end if
	 
	 %></td>
              <td><%
	 if rs("country")<>"" then
	 response.Write(rs("country"))
	 end if
	 if rs("province")<>"" then
	 
	 response.Write("-"&rs("province"))
	 end if
	 if rs("city")<>"" then
	 response.Write("-"&rs("city"))
	 end if
	 %></td>
              <td height="25"><%=rs("dateandtime")%></td>
              <td><%=rs("enddate")%></td>
            </tr>
            <%end if%>
            <%if typeid="2" then %>
            <tr align="center">
              <td><a href="<%=HOPE_InstallDir%>job/person.asp?jobuserid=<%=rs("id")%>" target=_blank>
                <%

if trim("ok"&rs("truename"))<>"ok" then
response.Write(rs("truename"))
else

response.Write("无")
end if
%>
              </a></td>
              <td><%
set rsg=server.CreateObject("adodb.recordset")
sqlg="select  * from Websen_jobkind where id="&rs("jobkind")
rsg.open sqlg,conn,1,1
if not rsg.eof then 
response.Write("<a href="&HOPE_InstallDir&"job/person.asp?jobuserid="&rs("id")&" target=_blank>"&rsg("kindname")&"</a>")

end if
%></td>
              <td><%=rs("sex")%></td>
              <td height="25"><%=rs("xueli")%></td>
              <td><%=rs("addtime")%></td>
            </tr>
            <%
	end if
icolor=icolor+1
if icolor>1 then icolor=0
rowcount=rowcount-1
rs.movenext
loop
end if
%>
           
          <tr>
            <td colspan="5" align="center"><%=listPages(""&HOPE_InstallDir&"job/jobsearch.asp")%></td>
          </tr>
        </table></td>
      </tr>
  </table></td></tr></table><table width="952" border="0" cellspacing="0" cellpadding="0" align="center" style=" border-top:2px 
  #926001 solid; margin-top:10px;" >
  <tr>
    <td><!--#include file="../inc/end.asp"--></td>
  </tr>
</table>
</div>
</body>
</html>
