<!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" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>{#$title#}</title>
	<meta name="author" content="骑士CMS" />
	<meta name="copyright" content="74cms.com" />
	<link rel="shortcut icon" href="{#$QISHI.site_dir#}favicon.ico" />
	<link rel="stylesheet" href="{#$QISHI.site_template#}css/user_common.css" />
	<link rel="stylesheet" href="{#$QISHI.site_template#}css/user_company.css" />
	<script src="{#$QISHI.site_template#}js/png24fix.js"></script>
	<script src="{#$QISHI.site_template#}js/jquery.js"></script>
	<script src="{#$QISHI.site_template#}js/jquery.dropdown.js"></script>
	<script src="{#$QISHI.site_template#}js/jquery.dialog.js" type='text/javascript' language="javascript"></script>
	<script src="{#$QISHI.site_dir#}data/cache_classify.js" type="text/javascript" charset="utf-8"></script>
	<script src="{#$QISHI.site_template#}js/jquery.user.selectlayer.js" type="text/javascript" charset="utf-8"></script>
	<script src="{#$QISHI.site_template#}js/tc.all.js"></script>
	<script src="{#$QISHI.site_template#}js/jquery.language.js"></script>
	<script type="text/javascript" src="{#$QISHI.site_template#}js/jquery.radioui.js"></script>
	<script type="text/javascript" src="{#$QISHI.site_template#}js/jquery.checkboxui.js"></script>
	<script src="{#$QISHI.site_template#}js/Validform.min.js"></script>
	<script src="{#$QISHI.site_template#}js/jquery.radiorelated.js"></script>
	<script>
		$(document).ready(function() {
			
			// 职位类别填充数据 
			job_filldata("#job_list", QS_jobs_parent, QS_jobs, "#result-list-job", "#determine_job", "#deselect_job", "#aui_outer_job", "#job_result_show", "#category_id", "#category_cn");
			// 职位类别弹出框
			$("#trad_window_job").click(function() { 
				popWin("aui_outer_job");
			});
			// 职位亮点填充数据
			tag_filldata("#jobtag_list", QS_jobtag, "#highlights", "#determine_tag", "#deselect_tag", "#added-list", "#tag", "#show_tag");
			// 职位亮点弹出框
			$("#trad_window_tag").live("click",function() {
				popWin("highlights");
			});
			// 下拉
			dropdownform("#experience_menu", "#experience_name", "#experience", "#experience_cn"); // 工作经验
			dropdownform("#education_menu", "#education_name", "#education", "#education_cn"); // 学历要求
			// 性别选择
			$(':radio').RadioUI();
			sexSelection("#sex_check_box", "#sex");
			// 语言要求选择
			$('#junior_jobs_t4 :checkbox').CheckboxUI();
			selectYourLanguage("#menu_language", "#language", "#language_cn");
			// 是否全日制统招选择
			uecSelection("#uec_check_box", "#uec");
			// 验证
			$("#Form1").Validform({
				tiptype:2,
				datatype:{
					"f1-10":function (gets,obj,curform,regxp) {
						regxp = /^[1-9]$/;
						if(!regxp.test(gets)) {
							return false;
						}
					},
					"b1-10":function (gets,obj,curform,regxp) {
						regxp = /^[1-9]$/;
						if(!regxp.test(gets)) {
							return false;
						} else {
							var fval = $("#wage_min").val();
							if(gets <= fval || (gets-fval) > 2) {
								return false
							}
						}
					},
					"f10":function (gets,obj,curform,regxp) {
						regxp = /^((1[0-9])|([2-9]\d)|([1-9]\d{2,}))$/;
						if(!regxp.test(gets)) {
							return false;
						}
					},
					"b10":function (gets,obj,curform,regxp) {
						regxp = /^((1[0-9])|([2-9]\d)|([1-9]\d{2,}))$/;
						if(!regxp.test(gets)) {
							return false;
						} else {
							var fval = $("#wage_min").val();
							if(gets <= fval || (gets-fval) > 2) {
								return false
							}
						}
					}
				}
			});
		});
	</script>
</head>
<body>
	{#include file="member_company/header.htm"#}
	<!-- 企业发布初级职位 -->
	<div class="container">
		<div class="com_addjobs_box">
			<div class="addjobs_title_box clearfix">
				<h2>修改职位</h2>
				<div><span>*</span>&nbsp;为必填项</div>
			</div>
			<form id="Form1" name="Form1" method="post" action="?act=editjobs_save" >
			<input type="hidden" name="id" value="{#$jobs.id#}">
			{#if $jobs.jobs_type=="0"#}
			<input type="hidden" name="job_act" value="1">
			{#else#}
			<input type="hidden" name="job_act" value="2">
			{#/if#}
			<div class="addjobs_junior_bbox">
				<div class="junior_box">
					<div class="junior_jobs_t2">
						<div class="addjobs_step_box">
							<span class="step_icon">1</span>职位基本描述
						</div>
						<table cellspacing="0" class="addjobs_step_table">
							<tbody>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right"><span class="must">*</span> 职位名称：</td>
									<td width="365">{#$jobs.jobs_name#}</td>
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right"><span class="must">*</span> 所在地区：</td>
									<td width="365">{#$jobs.district_cn#}</td>
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right"><span class="must">*</span> 职位类别：</td>
									<td width="365">
										<span data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 348px;" id="job_result_show">
											<span class="items" style="left: 6px; height: 20px;">{#$jobs.category_cn|default:"请选择职位类别"#}</span>
											<em class="drop" style="height: 30px; margin-top: -1px;" id="trad_window_job"></em>
										</span>
									    <input name="category_id" id="category_id" type="hidden" value="{#$jobs.category#}" datatype="*" sucmsg="&nbsp;" nullmsg="请选择职位类别" errormsg="请选择职位类别"/>		
						                <input name="category_cn" id="category_cn" type="hidden" value="{#$jobs.category_cn#}" />
									</td>
									<td class="link_blue"></td>
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right"><span class="must">*</span> 所属部门：</td>
									<td width="365"><input value="{#$jobs.department#}" name="department" id="department" class="text input-medium span360" datatype="*" sucmsg="&nbsp;" nullmsg="请输入所属部门" errormsg="请输入正确的信息"></td>
									<td class="link_blue"></td>
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right"><span class="must">*</span> 招聘人数：</td>
									<td width="365"><input value="{#$jobs.amount#}" name="amount" id="amount" class="text input-medium span360" datatype="n" sucmsg="&nbsp;" nullmsg="请输入招聘人数" errormsg="招聘人数大于0"></td>
									<td class="link_blue"></td>
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right">汇报对象：</td>
									<td width="365"><input value="{#$jobs.reporter#}" name="reporter" id="reporter" class="text input-medium span360"></td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="junior_jobs_t3">
						<div class="addjobs_step_box">
							<span class="step_icon">2</span>薪资福利
						</div>
						<table cellspacing="0" class="addjobs_step_table">
							<tbody>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right"><span class="must">*</span> 税前年薪：</td>
									<td><input value="{#$jobs.wage_min#}" name="wage_min" id="wage_min" class="text input-medium span100" datatype="{#if $jobs.jobs_type=="0"#}f1-10{#else#}f10{#/if#}" sucmsg="&nbsp;" nullmsg="请输入税前年薪" errormsg="请输入有效数字"><span class="wan">万元</span>到&nbsp;&nbsp;<input value="{#$jobs.wage_max#}" name="wage_max" id="wage_max" class="text input-medium span100" datatype="{#if $jobs.jobs_type=="0"#}b1-10{#else#}b10{#/if#}" sucmsg="&nbsp;" nullmsg="请输入税前年薪" errormsg="请输入有效数字"><span class="wan">万元</span><span class="low_money">{#if $jobs.jobs_type=="0"#}年薪必须低于10万且差值为2万{#else#}年薪必须高于10万且差值为2万{#/if#}</span></td>
									<td class="link_blue"></td>
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right">职位福利：</td>
									<td id="show_tag"><span class="fuli link_blue">增加职位亮点可以吸引求职者快速应聘职位，<a id="trad_window_tag" href="javascript:;">立即增加职位亮点</a></span></td>
									<input name="tag" type="hidden" id="tag" value="{#$jobs.tag#}" />
								</tr>
							</tbody>
						</table>
					</div>
					<div class="junior_jobs_t4" id="junior_jobs_t4">
						<div class="addjobs_step_box">
							<span class="step_icon">3</span>职位要求
						</div>
						<table cellspacing="0" class="addjobs_step_table">
							<tbody>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right">年龄要求：</td>
									<td colspan="2">
										<input value="{#$jobs.age_min#}" name="age_min" id="age_min" class="text input-medium span1">
										&nbsp;至&nbsp;
										<input value="{#$jobs.age_max#}" name="age_max" id="age_max" class="text input-medium span1">
										&nbsp;岁&nbsp;
									</td>
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right">性别要求：</td>
									<td colspan="2" id="sex_check_box">
										<label><input type="radio" checked="checked" data="3" name="sexchoose" class="radio" style="display: none;" autocomplete="off">&nbsp;不限</label><label><input type="radio" data="1" name="sexchoose" class="radio" style="display: none;" autocomplete="off">&nbsp;男</label><label><input type="radio" data="2" name="sexchoose" class="radio" style="display: none;" autocomplete="off">&nbsp;女</label>
									</td>
									<input name="sex" id="sex" type="hidden" value="{#$jobs.sex#}" />
									<input name="sex_cn" id="sex_cn" type="hidden" value="{#$jobs.sex_cn#}" />
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right">专业要求：</td>
									<td width="135" colspan="1"><input value="{#$jobs.major#}" name="major" id="major" class="text input-medium span130"></td>
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right"><span class="must">*</span> 工作经验：</td>
									<td width="135" colspan="1">
										<span class="optionlist w_131">
											<span id="experience_name" data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 116px;" id="city_result_show">
												<span class="items" style="left: 6px; height: 20px;">{#$jobs.experience_cn|default:"请选择工作经验"#}</span>
												<em class="selectui-drop" style="height: 30px; margin-top: -1px;" id="experience_menu"></em>
											</span>
											<ul class="droplist">
												{#qishi_get_classify  set="类型:QS_experience,列表名:c_experience"#}
			              						{#foreach from=$c_experience item=list#}
												<li><a id="{#$list.id#}" dataid="{#$list.id#}" title="{#$list.categoryname#}" href="javascript:;">{#$list.categoryname#}</a></li>
												{#/foreach#}
											</ul>
											<input type="hidden" value="{#$jobs.experience_cn#}" name="experience_cn" id="experience_cn" datatype="*" sucmsg="&nbsp;" nullmsg="请选择工作经验" errormsg="请选择工作经验" />
											<input type="hidden" value="{#$jobs.experience#}" name="experience" id="experience" />
										</span>
									</td>
									<td width="120"></td>
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right"><span class="must">*</span> 学历要求：</td>
									<td width="135" colspan="1">
										<span class="optionlist w_131">
											<span id="education_name" data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 116px;" id="city_result_show">
												<span class="items" style="left: 6px; height: 20px;">{#$jobs.education_cn|default:"请选择学历要求"#}</span>
												<em class="selectui-drop" style="height: 30px; margin-top: -1px;" id="education_menu"></em>
											</span>
											<ul class="droplist">
												{#qishi_get_classify  set="类型:QS_education,列表名:c_education"#}
			              						{#foreach from=$c_education item=list#}
												<li><a id="{#$list.id#}" dataid="{#$list.id#}" title="{#$list.categoryname#}" href="javascript:;">{#$list.categoryname#}</a></li>
												{#/foreach#}
											</ul>
											<input type="hidden" value="{#$jobs.education_cn#}" name="education_cn" id="education_cn" datatype="*" sucmsg="&nbsp;" nullmsg="请选择学历要求" errormsg="请选择学历要求"/>
											<input type="hidden" value="{#$jobs.education#}" name="education" id="education" />
										</span>
									</td>
									<td width="120"></td>
									<td id="uec_check_box">
										<label class="xueli"><input type="checkbox" data="{#$jobs.uec#}" name="uecs" value="{#$jobs.uec#}" {#if $jobs.uec=="1"#}checked{#/if#}/> 是否全日制统招</label>
									</td>
									<input type="hidden" id="uec" name="uec" value="{#$jobs.uec#}">
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right">语言要求：</td>
									<td colspan="4" id="menu_language">
										{#qishi_get_classify set="类型:QS_language,列表名:language"#}
										{#foreach from=$language item=list#}
										<label><input type="checkbox" name="language_se" data="{#$list.id#},{#$list.categoryname#}" id="{#$list.id#}" title="{#$list.categoryname#}" /> {#$list.categoryname#}</label>  
										{#/foreach#}
									</td>
									<input name="language" id="language" type="hidden" value="{#$jobs.language#}">
									<input name="language_cn" id="language_cn" type="hidden" value="{#$jobs.language_cn#}">
								</tr>
								<tr height="200">
									<td class="addjobs_step_table_left" width="95" align="right" valign="top">
										<div class="empty15"></div>
										<span class="must">*</span> 职位描述：
									</td>
									<td colspan="4">
										<div class="textarea_box link_blue">
											<textarea name="contents" id="contents" datatype="*" tip="请在这里输入职位描述。" errormsg="请填写有效内容">{#$jobs.contents#}</textarea>
										</div>
									</td>
								</tr>
								<tr height="45">
									<td class="addjobs_step_table_left" width="95" align="right">邮箱地址：</td>
									<td colspan="3"><input value="{#$jobs.email#}" name="email" id="email" class="text input-medium span360"></td>
								</tr>
								<tr height="60">
									<td class="addjobs_step_table_left" width="95" align="right">&nbsp;</td>
									<td valign="bottom" colspan="3">
										<input type="submit" value="保存职位" class="but100lan" />
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
			</form>
		</div>
	</div><!-- 企业发布初级职位结束 -->
	
	<!-- 职位类别弹出框 -->
	<div class="aui_outer" style="display:none;" id="aui_outer_job">
		<table class="aui_border">
			<tbody>
				<tr><td class="aui_nw"></td><td class="aui_n"></td><td class="aui_ne"></td></tr>
				<tr>
					<td class="aui_w"></td>
					<td class="aui_c">
						<div class="aui_inner">
							<table class="aui_dialog">
								<tbody>
									<tr><td class="aui_header" colspan="2"><div class="aui_titleBar"><div class="aui_title" style="cursor: move;">选择职位类别</div><a href="javascript:;" class="aui_close">×</a></div></td></tr>
									<tr>
										<td class="aui_main" style="width: auto; height: auto; visibility: visible;">
											<div class="aui_content" style="padding: 0px;">
												<div style="width:960px" class="LocalDataMultiC">
													<div class="data-row-head"><div class="data-row"><div class="data-row-side"><i class="data-icon data-icon-info"></i>最多可以选择 <strong class="text-warning">3</strong> 项</div><div style="margin-left:160px" id="result-list-job" class="result-list"><strong class="result-name">请选择</strong></div></div></div>
													<div style="height:auto;" class="data-row-list data-row-main" id="job_list">
														<!-- 列表内容 -->
													</div>
												</div>
											</div>
										</td>
									</tr>
									<tr><td class="aui_footer" colspan="2"><div class="aui_buttons" style=""><button class="aui-btn aui-btn-primary" id="determine_job" type="button">确定</button><button class="aui-btn aui-btn-light" id="deselect_job" type="button">取消</button></div></td></tr>
								</tbody>
							</table>
						</div>
					</td>
					<td class="aui_e"></td>
				</tr>
				<tr><td class="aui_sw"></td><td class="aui_s"></td><td class="aui_se" style="cursor: se-resize;"></td></tr>
			</tbody>
		</table>
	</div>
	<!-- 职位类别弹出框 End-->
	<!-- 职位亮点弹出框 -->
	<div class="aui_outer" id="highlights">
		<table class="aui_border"><tbody>
			<tr><td class="aui_nw"></td><td class="aui_n"></td><td class="aui_ne"></td></tr>
			<tr>
				<td class="aui_w"></td>
				<td class="aui_c">
					<div class="aui_inner">
						<table class="aui_dialog"><tbody>
							<tr><td class="aui_header" colspan="2"><div class="aui_titleBar"><div class="aui_title" style="cursor: move;">职位亮点</div><a href="javascript:;" class="aui_close">×</a></div></td></tr>
							<tr>
								<td class="aui_main" style="width: auto; height: auto; visibility: visible;">
									<div class="aui_content" style="padding: 20px 25px;">
										<div id="highli">
											<h5>已添加亮点<span class="text-warning">（最多可选择6个亮点）</span></h5>
											<div class="added-list clearfix" id="added-list">
												<p class="no-tag muted text-center" style="display: block;">暂无亮点</p>
											</div>
											<div class="add-tags"></div>
											<h5>选择常用亮点</h5>
											<div class="use-tag clearfix" id="jobtag_list">
												
											</div>
											<div class="action">
												<input type="button" id="determine_tag" value="确定" class="btn btn-primary"> <input id="deselect_tag" type="button" value="取消" class="btn cancel">
											</div>
										</div>
									</div>
								</td>
							</tr>
							<tr><td class="aui_footer" colspan="2"><div class="aui_buttons" style="display: none;"></div></td></tr>
						</tbody></table>
					</div>
				</td>
				<td class="aui_e"></td>
			</tr>
			<tr><td class="aui_sw"></td><td class="aui_s"></td><td class="aui_se" style="cursor: se-resize;"></td></tr>
		</tbody></table>
	</div>
	<!-- 职位亮点弹出框 End-->
	{#include file="./footer.htm"#}
</body>
</html>