{lib(search.php)}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=gbk" />
<title>{cfg:(sys,site_name)}</title>
<link rel="shortcut icon" href="favicon.ico" />
<meta name="keywords" content="{cfg:(sys,site_keywords)}">
<meta name="description" content="{cfg:(sys,site_description)}">
<link rel="stylesheet" type="text/css" href="../img/css.css"/>
<script src="{$web_url}/plus/js/init.php?act=init_js"></script>
<script src="{$web_url}/images/js/common.js"></script>
<script src="{$web_url}/images/js/date.js"></script>
<script src="{$web_url}/images/js/ajax.js"></script>
<script src="{$web_url}/images/js/job.js"></script>
<script>
function me_change(msgx){
	if(msgx=="age"){
		obj1=document.myform.search_age1;
		obj2=document.myform.search_age2;
	}else if(msgx=="height"){
		obj1=document.myform.search_height1;
		obj2=document.myform.search_height2;
	}else{
		return;
	}
	obj2.options.length=0;
	lng_x=obj1.selectedIndex;
	lng_y=obj1.length-1;
	obj2.add(new Option("--不限--","0"));
	for(i=lng_x;i<=lng_y;i++){
		obj2.add(new Option(obj1[i].text,obj1[i].value));
	}
}
function me_save(){
	str_name=document.myform.btn_save.value;
	if(str_name=="确定保存"){
		document.myform.action="?app=search_save";
		document.myform.submit();
	}else{
		obj_x=document.getElementById("id_search_name");
		obj_x.style.display="";
		document.myform.search_name.focus();
		document.myform.btn_save.value="确定保存";
	}
}
function me_more_search(){
	obj_x=document.getElementById("id_more_search");
	obj_y=document.getElementById("id_more_txt");
	if(obj_x.style.display==""){
		obj_x.style.display="none";
		obj_y.innerHTML="显示附加条件";
		document.myform.search_additional.value=0;
	}else{
		obj_x.style.display="";
		obj_y.innerHTML="隐藏附加条件";
		document.myform.search_additional.value=1;
	}
}
</script></head>
<body>
{include(header.html)}
<div class="sp_h10">&nbsp;</div>
<div class="cssx_left1">
	{include(search_left.html)}
</div>
<div class="cssx_right">
<form name="myform" method="post" action="{$web_url}/index.php?app=joblist">
<input type="hidden" name="id" value="{$arr_search['search_id']}">
<input type="hidden" name="search_additional" value="{$arr_search['search_additional']}">
	<div class="cssx_path"><span style="float:left"><img src="../img/pic_3.jpg"></span><span style="float:left;padding:2px 0px 0px 15px">职位搜索 -> 高级搜索</span></div>
	<table class='edittable'>
	<tr><td class="colname" valign="top">招聘性质：</td><td class="colval">{$arr_search["jobtype"]}</td></tr>
	<tr><td class="colname" valign="top">招聘类型：</td><td class="colval">{$arr_search["jobcategory"]}</td></tr>
	<tr><td class="colname" valign="top">月薪待遇：</td><td class="colval">
	<select name="search_pay"><option value="0">不限</option>
	{foreach($arr_search["pay"] as $item)}
	<option value="{$item}"{if($item==$arr_search["search_pay"])} selected{/if}>{$item}</option>
	{/foreach}	
	</select>　<select name="search_pay_direction"><option value="0">以上</option><option value="-1"{if(-1==$arr_search["search_pay_direction"])} selected{/if}>以下</option><option value="1"{if(1==$arr_search["search_pay_direction"])} selected{/if}>相等</option></select></td></tr>
	<tr><td class="colname" valign="top">工作地区：</td><td class="colval"><input type="text" name="search_area" value="{$arr_search['search_area']}"></td></tr>
	<tr><td class="colname" valign="top">发布时间：</td><td class="colval"><select name="search_pubtime"><option value="">不限</option><option value="1"{if($arr_search["search_pubtime"]==1)} selected{/if}>当天</option><option value="7"{if($arr_search["search_pubtime"]==7)} selected{/if}>1周内</option><option value="30"{if($arr_search["search_pubtime"]==30)} selected{/if}>1月内</option><option value="90"{if($arr_search["search_pubtime"]==90)} selected{/if}>3月内</option><option value="-1"{if($arr_search["search_pubtime"]==-1)} selected{/if}>本周</option><option value="-2"{if($arr_search["search_pubtime"]==-2)} selected{/if}>本月</option><option value="-3"{if($arr_search["search_pubtime"]==-3)} selected{/if}>今年</option><option value="-4"{if($arr_search["search_pubtime"]==-4)} selected{/if}>去年</option></select></td></tr>
	<tr><td class="colname" valign="top">搜索关键词：</td><td class="colval"><input type="text" name="search_keyword" value="{$arr_search['search_keyword']}"> <a href="javascript:me_more_search();" id="id_more_txt">{if($arr_search["search_additional"]==1)}隐藏附加条件{else}显示附加条件{/if}</a></td></tr>
	</table>
	<table class='edittable' id="id_more_search"{if($arr_search["search_additional"]!=1)} style="display:none"{/if}>
	<tr><td class="colname" valign="top">学 历：</td><td class="colval"><select name="search_degree"><option value="">不限</option>{$arr_search["degree"]}</select> <select name="search_degree_direction">
		<option value="0">以上</option>
		<option value="-1"{if(-1==$arr_search["search_degree_direction"])} selected{/if}>以下</option>
		<option value="1"{if(1==$arr_search["search_degree_direction"])} selected{/if}>相等</option>
	</select></td></tr>
	<tr><td class="colname" valign="top">工作年限：</td><td class="colval"><select name="search_experience"><option value="0">不限</option>
		{foreach($arr_search["experience"] as $item)}
		<option value="{$item}"{if($item==$arr_search["search_experience"])} selected{/if}>{$item}年</option>
		{/foreach}
	</select> <select name="search_experience_direction">
		<option value="0">以上</option>
		<option value="-1"{if(-1==$arr_search["search_experience_direction"])} selected{/if}>以下</option>
		<option value="1"{if(1==$arr_search["search_experience_direction"])} selected{/if}>相等</option>
	</select></td></tr>
	<tr><td class="colname" valign="top">性别要求：</td><td class="colval"><input type="radio" name="search_sex" value="" checked>不限&nbsp;<input type="radio" name="search_sex" value="女" {if($arr_search["search_sex"]=='女')}checked{/if}>女&nbsp;<input type="radio" name="search_sex" value="男" {if($arr_search["search_sex"]=='男')}checked{/if}>男</td></tr>
	<tr><td class="colname" valign="top">年龄要求：</td><td class="colval"><select name="search_age""><option value="0">--不限--</option>
		<script>
		lng_age1="{$arr_search["search_age"]}";
		if(lng_age1==""){
			lng_age1=0;
		}else{
			lng_age1=parseInt(lng_age1);
		}
		for(i=16;i<60;i++){
			str_sel="";
			if(i==lng_age1) str_sel=" selected";
			document.write("<option value='"+i+"'"+str_sel+">"+i+"</option>");
		}
		</script>
	</select> <select name="search_age_direction">
		<option value="0">以上</option>
		<option value="-1"{if(-1==$arr_search["search_age_direction"])} selected{/if}>以下</option>
		<option value="1"{if(1==$arr_search["search_age_direction"])} selected{/if}>相等</option>
	</select></td></tr>
	<tr><td class="colname" valign="top">婚姻状况：</td><td class="colval"><input type='radio' name='search_marry' value='' checked>不限 <input type='radio' name='search_marry' value='未婚'{if($arr_search["search_marry"]=="未婚")} checked{/if}>未婚 <input type='radio' name='search_marry' value='已婚'{if($arr_search["search_marry"]=="已婚")} checked{/if}>已婚</td></tr>
	</table>
	<table class='edittable'>
	<tr id="id_search_name"{if($arr_search['search_name']=="")} style="display:none"{/if}><td class="colname" valign="top">搜索器名称：</td><td class="colval"><input type="text" name="search_name" value="{$arr_search['search_name']}"> <font color="#ff0000">* 输入名称再保存</font></td></tr>
	<tr><td style="height:10px"></td><td></td></tr>
	<tr><td class="colbtn" valign="top"></td><td class="colbtn" valign="top"><input type="submit" name="btn_ok" class="btn_67" value="立即查找">　<input type="button" name="btn_save" value="{if($arr_search['search_name']=="")}保存{else}确定保存{/if}" class="btn_67" onclick="me_save()"></td></tr>
	</table>
</form>
</div>
{include(footer.html)}
</body>
</html>