<?php include 'header.tpl.php';?>
<style>
.me_job{width:500px;padding-left:10px;float:left}
.me_job .reg_table1{width:700px;float:left;margin-top:10px;border-collapse: collapse}
.me_job .reg_table1 td{height:20px}
.me_job .reg_table1 .col1{width:100px;text-align:right;padding-right:5px;padding-top:5px}
.me_job .reg_table1 .col2{text-align:left}
.me_job .coltit{text-align:left;font-weight:bold;border-bottom:1px #cccccc solid}
.me_job .reg_table1 input{}
.me_job .divbtn{float:left;width:100%;margin-top:20px;margin-bottom:15px}
.btnpic{border:1px #cccccc solid}
</style>
<script>
function me_change_age(){
	obj_age2=document.frmMain.job_age2;
	obj_age1=document.frmMain.job_age1;
	obj_age2.options.length=0;
	lng_x=obj_age1.selectedIndex;
	lng_y=obj_age1.length-1;
	obj_age2.add(new Option("--不限--","0"));
	for(i=lng_x;i<=lng_y;i++){
		obj_age2.add(new Option(obj_age1[i].text,obj_age1[i].value));
	}
}
function me_change_pay(){
	obj_pay2=document.frmMain.job_pay2;
	obj_pay1=document.frmMain.job_pay1;
	obj_pay2.options.length=0;
	lng_x=obj_pay1.selectedIndex;
	lng_y=obj_pay1.length-1;
	obj_pay2.add(new Option("--不限--","0"));
	for(i=lng_x;i<=lng_y;i++){
		obj_pay2.add(new Option(obj_pay1[i].text,obj_pay1[i].value));
	}
}
function me_change_experience(){
	obj_experience2=document.frmMain.job_experience2;
	obj_experience1=document.frmMain.job_experience1;
	obj_experience2.options.length=0;
	lng_x=obj_experience1.selectedIndex;
	lng_y=obj_experience1.length-1;
	obj_experience2.add(new Option("--不限--","0"));
	for(i=lng_x;i<=lng_y;i++){
		obj_experience2.add(new Option(obj_experience1[i].text,obj_experience1[i].value));
	}
}
</script>
<div class="pMenu">
<li><a href="javascript:frmExecute('');">管理</a></li>
<li class="sel"><a href="javascript:frmExecute('add');">添加</a></li>
<li class="info"><a href="javascript:inc_show_help(202);" style="color:#ff0000">帮助</a></li>
</div>
<div class="pSearchDiv" id="objSearch" style="display:none">
<table class="sTab">
<tr><td>状态：<select name="s_state">
	<option value="-101">不限</option>
	<option value="1" <?php if($get_s_state==1) echo "selected";?>>通过</option>
	<option value="0" <?php if($get_s_state==0) echo "selected";?>>待审</option>
	<option value="-2" <?php if($get_s_state==-2) echo "selected";?>>暂停</option>
	<option value="-1" <?php if($get_s_state==-1) echo "selected";?>>回收站</option>
	<option value="-99" <?php if($get_s_state==-99) echo "selected";?>>过期</option>
	</select>　发布时间：<input type="text" name="s_updatetime1" value="<?php echo $get_s_updatetime1;?>" onfocus="setday(this);"> 到 <input type="text" name="s_updatetime2" value="<?php echo $get_s_updatetime2;?>" onfocus="setday(this);"></td><tr>
	<tr><td>名称或关键字：<input type="text" name="s_name" value="<?php echo $get_s_name?>">　<input type="button" name="s_btnok" value="查找" class="pBtn" onclick="frmExecute('')"> 　<input type="button" name="s_btnok" value="清空" class="pBtn" onclick="meSearchClear();frmExecute('');"></td></tr>
</table>
</div>
<div class="me_job">
	<table class="reg_table1">
	<tr><td colspan="5" class="coltit">招聘信息</td></tr>
	<tr><td class="col1">招聘企业：</td><td class="col2"><input type="hidden" name="job_user_id" value="" id="id_job_user_id"><span id="id_company_name" style="color:blue;font-weight:bold"></span>&nbsp&nbsp&nbsp;&nbsp;[<a href="javascript:dialog_winCompany('id_job_user_id','id_company_name');" style="color:#ff6600">选择</a>]</td></tr>
	<tr><td class="col1">招聘性质：</td><td class="col2"><?php echo $this_job_type;?></td></tr>
	<tr><td class="col1"> 职位类别：</td><td class="col2"><?php echo $this_category?></td></tr>
	<tr><td class="col1">职位名称：</td><td class="col2"><input type="text" name="job_name" value=""></td></tr>
	<tr><td class="col1">招聘人数：</td><td class="col2"><input type="text" name="job_num" value=""></td></tr>
	<tr><td class="col1">薪资待遇：</td><td class="col2">
	<select name="job_pay1" onchange="me_change_pay();" style="width:80px"><option value="0">--不限--</option>
		<?php echo $this_pay;?>
	</select>
	<select name="job_pay2" style="width:80px"><option value="0">--不限--</option>
		<?php echo $this_pay;?>
	</select>
	</td></tr>
	<tr><td class="col1">截止日期：</td><td class="col2">
		<input type="checkbox" name="job_validdate_is" value=1 onclick="obj_id=document.getElementById('id_job_validdate');if(obj_id){if(this.checked){obj_id.style.display='none'}else{obj_id.style.display='';}}" checked>无限期 <span id="id_job_validdate" style="display:none"><input type="text" name="job_validdate" value="" onfocus="setday(this);"></span>
	</td></tr>
	<tr><td class="col1">工作地区：</td><td class="col2"><input type="text" name="job_area" value=""></td></tr>
	</table>
	<table class="reg_table1">
	<tr><td colspan="2" class="coltit">任职要求</td></tr>
	<tr><td class="col1">学 历：</td><td class="col2"><select name="job_degree"><option value="">不限</option><?php echo $this_degree?></select></td></tr>
	<tr><td class="col1">工作经验：</td><td class="col2">
	<select name="job_experience1" onchange="me_change_experience();" style="width:80px"><option value="0">--不限--</option>
		<?php foreach($arr_experience as $item){
			$str_sel="";
			echo "<option value='".$item."'".$str_sel.">".$item."年</option>";
			}?>
	</select>
	<select name="job_experience2" style="width:80px"><option value="0">--不限--</option>
		<?php foreach($arr_experience as $item){
			if($item<$arr_job["job_experience1"]) continue;
			$str_sel="";
			echo "<option value='".$item."'".$str_sel.">".$item."年</option>";
			}?>
	</select>
	</td></tr>
	<tr><td class="col1">性 别：</td><td class="col2"><input type="radio" name="job_sex" value="" checked>不限　<input type="radio" name="job_sex" value="女">女　<input type="radio" name="job_sex" value="男">男　</td></tr>
	<tr><td class="col1">年 龄：</td><td class="col2">
	<select name="job_age1" onchange="me_change_age();" style="width:80px"><option value="0">--不限--</option>
		<?php for($i=16;$i<60;$i++){
			$str_sel="";
			echo "<option value='".$i."'".$str_sel.">".$i."</option>";
			}?>
	</select>
	<select name="job_age2" style="width:80px"><option value="0">--不限--</option>
		<?php
			$lng_age2=$arr_job["job_age1"];
			if($lng_age2<16) $lng_age2=16;
			for($i=$lng_age2;$i<60;$i++){
			$str_sel="";
			echo "<option value='".$i."'".$str_sel.">".$i."</option>";
			}?>
	</select>
	</td></tr>
	<tr><td class="col1">婚姻状况：</td><td class="col2"><input type='radio' name='job_marry' value='' checked>不限 <input type='radio' name='job_marry' value='未婚'>未婚 <input type='radio' name='job_marry' value='已婚'>已婚</td></tr>
	<tr><td class="col1">现所在地：</td><td class="col2"><input type="text" name="job_nowarea" value=""></td></tr>
	<tr><td class="col1">具体要求：</td><td class="col2"><textarea name="job_intro" style="width:500px;height:120px"></textarea></td></tr>
	</table>
	<table class="reg_table1">
	<tr><td colspan="2" class="coltit">联系方式</td></tr>
	<tr id="id_link1"><td class="col1">联系人：</td><td class="col2"><input type="text" name="job_linkman" value=""></td></tr>
	<tr id="id_link2"><td class="col1">电　话：</td><td class="col2"><input type="text" name="job_tel" value=""></td></tr>
	<tr id="id_link3"><td class="col1">传　真：</td><td class="col2"><input type="text" name="job_fax" value=""></td></tr>
	<tr id="id_link4"><td class="col1">电子邮箱：</td><td class="col2"><input type="text" name="job_email" value=""></td></tr>
	<tr id="id_link5"><td class="col1">面试地址：</td><td class="col2"><input type="text" name="job_address" value=""></td></tr>
	<tr><td class="col1">与企业联系方式同步：</td><td class="col2"><input type="checkbox" name="job_linkmethod" value=1 onclick="me_chk_linkmethod(this.checked)"></td></tr>
	</table>
	<div class="divbtn"><input type="button" name="sub_ok" value="保存" class="pSubmit" onclick="frmExecute('save')"></div>
	</div>
</div>
<script>
function me_chk_linkmethod(msgval){
	if(msgval){
		document.getElementById("id_link1").style.display="none";
		document.getElementById("id_link2").style.display="none";
		document.getElementById("id_link3").style.display="none";
		document.getElementById("id_link4").style.display="none";
		document.getElementById("id_link5").style.display="none";
	}else{
		document.getElementById("id_link1").style.display="";
		document.getElementById("id_link2").style.display="";
		document.getElementById("id_link3").style.display="";
		document.getElementById("id_link4").style.display="";
		document.getElementById("id_link5").style.display="";
	}
}
</script>
<?php include 'footer.tpl.php';?>		