这次这一个比前两个更加稳定,但也只是初步做了一下,修复了一些Bug,加上了多条件查询的功能。(8个条件查询)<大家如果有什么意见,还请留言>(如果登录不上,请在新的页面右上角点登录,再次登录即可)
这次一共有三个页面:
一. 51job.html
<html>
<head>
<title> 51job职位收藏器 </title>
</head>
<frameset cols="50%,*" >
<frame src="left.html"></frame>
<frame src="right.html"></frame>
</frameset>
</html>
二.left.html
<html>
<head>
<title> login </title>
</head>
<body>
<form action="http://my.51job.com/my/My_Pmc.php" method="post">
<table>
<tr>
<td align="right">username:</td>
<td><input name="username" type="text" id="username" value="" class="input140" style="color:#000;" /></td>
</tr>
<tr>
<td align="right">userpwd:</td>
<td><input name="userpwd" type="password" id="userpwd" value="" class="input140" style="color:#000;" /></td>
</tr>
<tr>
<td align="right" colspan=1><input type="submit" value="login" /></td>
</tr>
</table>
</form>
</body>
</html>
三。right.html
<html>
<head>
<title> 51job </title>
<link href="http://js.51jobcdn.com/in/css/style.css?20091215" rel="stylesheet" type="text/css" />
<link href="http://js.51jobcdn.com/in/css/logo.css?20091215" rel="stylesheet" type="text/css" />
<link href="http://js.51jobcdn.com/in/css/search.css?20100707" rel="stylesheet" type="text/css" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" media="screen" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" media="screen" />
<link rel="bookmark" href="/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/Base.js?20101126"></script>
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/Base.ZzLayer.js?20101126"></script>
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/Base.ZzLayer.ExtZzLayer.js?20101126"></script>
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/search/Base.Search.js?20100407"></script>
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/payservice/GetCompetition.js?20100604"></script>
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/my/My_SMS_Self.js?20100421"></script>
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/fans.js?20101126"></script>
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/cv/CV_QuickApply.js?20100726"></script>
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/jQuery.js"></script>
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/JsBase.js"></script>
<script language="javascript" src="http://js.51jobcdn.com/in/js/2009/login.js"></script>
<script type="text/javascript">
var xmlrequest=null;
createXMLHttpRequest();
function createXMLHttpRequest()
{
if(window.XMLHttpRequest)
{xmlrequest=new XMLHttpRequest();}
else if(window.ActiveXObject){
try{xmlrequest=new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try{xmlrequest=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}}
function search51()
{
var issuedate=document.getElementById("issuedate").value;
var workyear=document.getElementById("workyear").value;
var providesalary=document.getElementById("providesalary").value;
var cotype=document.getElementById("cotype").value;
var degreefrom=document.getElementById("degreefrom").value;
var jobterm=document.getElementById("jobterm").value;
var dq=document.getElementById("dq").value;
var gjz=document.getElementById("gjz").value;
for(var i=1;i<3;i++)
{
var url="http://search.51job.com/jobsearch/search_result.php?fromJs=1&jobarea="+dq+"&district=0000&funtype=0000&industrytype=00&issuedate="+issuedate+"&providesalary="+providesalary+"&keyword="+gjz+"&keywordtype=2&curr_page="+i+"&lang=c&stype=2&postchannel=0000&workyear="+workyear+"&cotype="+cotype+"°reefrom="+degreefrom+"&jobterm="+jobterm+"&lonlat=0,0&radius=-1&ord_field=0&list_type=0&fromType=14";
search51pg(url);
}
}
function search51pg(url)
{
createXMLHttpRequest();
xmlrequest.open("get",url,true);
xmlrequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlrequest.onreadystatechange=search51back;
xmlrequest.send(null);
}
function search51back()
{
if (xmlrequest.readyState==4)
{
if(xmlrequest.status==200)
{
str = xmlrequest.responseText;
var ary = str.split("http://search.51job.com/job/");
for(var i=1;i<ary.length;i++)
{
zzSearch.saveJobClk( ary[i].split(",")[0] , event );
}
}
}
}
</script>
</head>
<body>
<div class="c_l" style="clear:both; padding-top:0px;">
<table class="tbl condSelTbl">
<tr>
<td>发布日期</td>
<td><select id="issuedate" ><option value="9" selected >--请选择--</option><option value="1" >近一天</option><option value="2" >近二天</option><option value="3" >近三天</option><option value="4" >近一周</option><option value="5" >近两周</option><option value="6" >近一月</option><option value="7" >近六周</option><option value="8" >近两月</option></select></td>
<td>工作年限</td>
<td><select id="workyear" ><option value="99" selected >--请选择--</option><option value="1" >在读学生</option><option value="2" >应届毕业生</option><option value="3" >一年以上</option><option value="4" >二年以上</option><option value="5" >三年以上</option><option value="6" >五年以上</option><option value="7" >八年以上</option><option value="8" >十年以上</option><option value="9" >不限</option></select></td>
<td>月薪范围</td>
<td><select id="providesalary" ><option value="99" selected >--请选择--</option><option value="00" >面议</option><option value="01" >1500以下</option><option value="02" >1500-1999</option><option value="03" >2000-2999</option><option value="04" >3000-4499</option><option value="05" >4500-5999</option><option value="06" >6000-7999</option><option value="07" >8000-9999</option><option value="08" >10000-14999</option><option value="09" >15000-19999</option><option value="10" >20000-29999</option><option value="11" >30000-49999</option><option value="12" >50000及以上</option></select></td>
</tr>
<tr>
<td>公司性质</td>
<td><select id="cotype" ><option value="99" selected >--请选择--</option><option value="01" >外资(欧美)</option><option value="02" >外资(非欧美)</option><option value="03" >合资(欧美)</option><option value="04" >合资(非欧美)</option><option value="05" >国企</option><option value="06" >民营公司</option><option value="07" >外企代表处</option><option value="09" >政府机关</option><option value="10" >事业单位</option><option value="11" >非盈利机构</option><option value="08" >其它性质</option></select></td>
<td>学历要求</td>
<td><select id="degreefrom" ><option value="99" selected >--请选择--</option><option value="1" >初中</option><option value="2" >高中</option><option value="3" >中技</option><option value="4" >中专</option><option value="5" >大专</option><option value="6" >本科</option><option value="7" >硕士</option><option value="8" >博士</option><option value="9" >其他</option></select></td>
<td>工作类型</td>
<td><select id="jobterm" ><option value="01" selected >--请选择--</option><option value="0" >全职</option><option value="1" >兼职</option></select></td>
</tr>
</table>
<table>
<tr>
<td>请选择地区:</td>
<td><select name="dq" ><option value="0200" selected >上海</option><option value="0100" >北京</option><option value="0400" >深圳</option></select></td>
<td>关键字:</td>
<td><input id="gjz" /></td>
<td><input type="button" onclick="search51()" value="login" /></td>
</tr>
</table>
</div>
<script language="JavaScript" type="text/javascript">
var obj1;
var sUrl = 'http://my.51job.com' + '/payservice/fans/fans_ajax.php?jsoncallback=?';
var coidArr = document.getElementsByName('coid');
var fansnum = document.getElementById('fansnum');
if(fansnum){
obj1 = $("#fansnum");
}else if(coidArr[0]){
obj1 = $("#" + coidArr[0].value);
}
var obj2 = $("#message");
if(obj1){
var offset = obj1.offset();
document.getElementById('message').style.top = offset.top - obj2.height() / 2 + obj1.height() / 5 + 'px';
document.getElementById('message').style.left = offset.left - obj2.width() + 'px';
}
for(var i = 0;i < coidArr.length; i++){
if(coidArr[i].value){
var flg = 0;
for(var j = 0;j < i; j++){
if(coidArr[j].value && coidArr[i].value == coidArr[j].value){
flg = 1;
break;
}
}
if(flg == 0){
$.getJSON(sUrl, {type:'0',coid:coidArr[i].value,step:i}, function (data){
var fansnum1 = document.getElementById(coidArr[data.index].value);
if(fansnum){
fansnum.innerHTML = data.searchData;
}
if(fansnum1){
fansnum1.innerHTML = data.searchData;
}
if(data.compfans != "1" && document.getElementById('message').style.display == 'none'){
document.getElementById('message').style.display = 'block';
}
});
}
}
}
</script>
<script language="javascript">
<!--
window.cfg = {
fileName: 'show_job_detail.php' ,
lang : 'c' ,
stype : '' ,
fullLang : 'Chinese' ,
langs : {
sqzwml : 'applyjob' ,
qzzwqdg : '请在要选择的职位前打勾!' ,
myml : 'my' ,
ts_qxjzw : '请选择职位' ,
queren : '确认' ,
guanbi : '关闭' ,
nzdnxj : '您最多能选择' ,
xiang : '项' ,
xzdq : '选择地区' ,
xj_xg : '选择/修改' ,
zycs : '主要城市' ,
sysf : '所有省份' ,
buxian : '不限' ,
qingxj : '请选择' ,
yixuan : '已选' ,
znlb : '职能类别' ,
hylb : '行业类别' ,
gzdd : '工作地点' ,
quanbu : '全部' ,
zhineng : '职能' ,
hangye : '行业' ,
didian : '地点' ,
qsrgjz : '请输入关键字' ,
srpcgjz : '输入排除关键字'
} ,
url : {
root : 'http://search.51job.com/jobsearch' ,
image : 'http://img01.51jobcdn.com/im/2009' ,
image_search : 'http://img01.51jobcdn.com/im/2009/search' ,
image_search_lang : 'http://img01.51jobcdn.com/im/2009/search/c' ,
image_search_c : 'http://img01.51jobcdn.com/im/2009/search/c' ,
image_search_e : 'http://img01.51jobcdn.com/im/2009/search/e'
} ,
domain : {
my : 'http://my.51job.com' ,
search : 'http://search.51job.com'
} ,
isJobview : '1' ,
isAcStatRecJob : '1' ,
acStatRecJobType : '0803111457'
};
function searchInit() {
if ( window.Search ) {
clearInterval( intVal );
window.zzSearch = new Search( {
searchForm : document.searchForm ,
pageForm : document.pageForm ,
excludeForm : document.excludeForm ,
pageJumpForm : document.pageJumpForm ,
selJobPageForm : document.selJobPageForm ,
cfg : cfg
} );
}
}
var intVal = window.setInterval( searchInit , 50 );
</script>
</body>
</html>