{lib(job.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 src="{$web_url}/images/js/dialog.js"></script>
<script>
function me_change(msgx){
	if(msgx=="age"){
		obj1=document.myform.job_age1;
		obj2=document.myform.job_age2;
	}else if(msgx=="pay"){
		obj1=document.myform.job_pay1;
		obj2=document.myform.job_pay2;
	}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_validdate(){
	obj_id=document.getElementById('id_job_validdate');
	var obj_x=document.getElementById("id_job_validdate_is");
	if(obj_id){
		if(obj_x.checked){
			obj_id.style.display='none'
		}else{
			obj_id.style.display='';
		}
	}
}
</script>
</head>
<body>
{include(header.html)}
<div class="sp_h10">&nbsp;</div>
<div class="cssx_left1">
	{include(job_left.html)}
</div>
<div class="cssx_right">
<form name="myform" method="post" action="?">
<input type="hidden" name="app" value="job_save">
<input type="hidden" name="id" value="{$arr_job['job_id']}">
	<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_job["job_category"]}</td></tr>
	<tr><td class="colname" valign="top">职位名称：</td><td class="colval"><input type="input" name="job_name" value="{$arr_job['job_name']}" size=20 class="x_input"> <font color="#ff0000">*</font></td></tr>
	<tr><td class="colname" valign="top">招聘人数：</td><td class="colval"><input type="input" name="job_num" value="{$arr_job['job_num']}" size=20 class="x_input"> </td></tr>
	<tr><td class="colname" valign="top">薪资待遇：</td><td class="colval"><span><input type="checkbox" name="job_pay0" onclick="me_span_pay(this.checked);" value=1{if($arr_job["job_pay0"]>0)} checked{/if}>面议　</span><span id="id_span_pay" {if($arr_job["job_pay0"]>0)}style="display:none"{/if}><select name="job_pay1" onchange="me_change('pay');">{$arr_job["job_pay1"]}</select> 至 <select name="job_pay2">{$arr_job["job_pay2"]}</select></td></tr>
	<tr><td class="colname" valign="top">工作地区：</td><td class="colval">{$arr_job["area"]}</td></tr>
	<tr><td class="colname" valign="top">截止日期：</td><td class="colval"><input type="checkbox" name="job_validdate_is" id="id_job_validdate_is" value=1 onclick="me_validdate();" {if($arr_job["job_validdate"]=="")}checked{/if}>无限期 <span id="id_job_validdate" style="display:{if($arr_job['job_validdate']=='')}none{/if}"><input type="input" name="job_validdate" id="id_job_validdate" value="{$arr_job['job_validdate']}" size=20 class="x_input" onfocus="setday(this);"></span> <font color="#ff0000">*</font></td></tr>
	<tr><td class="colname" valign="top">学 历：</td><td class="colval"><select name="job_degree">{$arr_job["job_degree"]}</select> <font color="#ff0000">*</font></td></tr>
	<tr><td class="colname" valign="top">性 别：</td><td class="colval"><input type="radio" name="job_sex" value="" checked>不限　<input type="radio" name="job_sex" value="女" {if($arr_job["job_sex"]=="女")}checked{/if}>女　<input type="radio" name="job_sex" value="男" {if($arr_job["job_sex"]=="男")}checked{/if}>男　</td></tr>
	<tr><td class="colname" valign="top">年 龄：</td><td class="colval"><select name="job_age1" onchange="me_change('age');" style="width:80px"><option value="0">--不限--</option>
		<script>
		lng_age1="{$arr_job["job_age1"]}";
		if(lng_age1==""){
			lng_age1=16;
		}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="job_age2" style="width:80px"><option value="0">--不限--</option>
		<script>
		lng_age2="{$arr_job["job_age2"]}";
		if(lng_age2==""){
			lng_age2=lng_age1;
		}else{
			lng_age2=parseInt(lng_age2);
			if(lng_age2<lng_age1) lng_ae2=lng_age1;
		}
		for(i=lng_age2;i<60;i++){
			str_sel="";
			if(i==lng_age2) str_sel=" selected";
			document.write("<option value='"+i+"'"+str_sel+">"+i+"</option>");
		}
		</script>
	</select></td></tr>
	<tr><td class="colname" valign="top">现所在地：</td><td class="colval"><input type="text" name="job_nowarea" value="{$arr_job["job_nowarea"]}"></td></tr>
	<tr><td class="colname" valign="top">具体要求：</td><td class="colval"><textarea name="job_intro" cols=70 rows=8>{$arr_job["job_intro"]}</textarea></td></tr>
	<tr><td class="colname" valign="top">联系人：</td><td class="colval"><input type="text" name="job_linkman" value="{$arr_job["job_linkman"]}"></td></tr>
	<tr><td class="colname" valign="top">电　话：</td><td class="colval"><input type="text" name="job_tel" value="{$arr_job["job_tel"]}"></td></tr>
	<tr><td class="colname" valign="top">电子邮箱：</td><td class="colval"><input type="text" name="job_email" value="{$arr_job["job_email"]}"></td></tr>
	<tr><td class="colname" valign="top">面试地址：</td><td class="colval"><input type="text" name="job_address" value="{$arr_job["job_address"]}"></td></tr>
	<tr><td class="colname" valign="top">与企业联系方式同步：</td><td class="colval"><input type="checkbox" name="job_linkmethod" value=1 {if($arr_job["job_linkmethod"]==1)} checked{/if} onclick="me_chk_linkmethod(this.checked)"></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="x_btncancel" class="btn_67" value=" 取 消 " onclick="history.back();"></td></tr>
	</table>
</form>
</div>
<script>
function me_chk_linkmethod(msgval){
	if(msgval){
		document.myform.job_linkman.value="{$arr_company['company_linkname']}";
		document.myform.job_tel.value="{$arr_company['company_tel']}";
		document.myform.job_email.value="{$arr_company['company_email']}";
		document.myform.job_address.value="{$arr_company['company_address']}";

		document.myform.job_linkman.disabled=true;
		document.myform.job_tel.disabled=true;
		document.myform.job_email.disabled=true;
		document.myform.job_address.disabled=true;
	}else{
		document.myform.job_linkman.disabled=false;
		document.myform.job_tel.disabled=false;
		document.myform.job_email.disabled=false;
		document.myform.job_address.disabled=false;
	}
}
function me_span_pay(msgval){
	var objx=document.getElementById("id_span_pay");
	if(msgval){
		objx.style.display="none";
	}else{
		objx.style.display="";
	}
}
{if($arr_job["job_linkmethod"]==1)}me_chk_linkmethod(true);{/if}
</script>
{include(footer.html)}

</body>
</html>