<!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_hunter.css" />
	<script src="{#$QISHI.site_template#}js/png24fix.js"></script>
	<script src="{#$QISHI.site_template#}js/jquery.js"></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.dropdown.js"></script>
	<script src="{#$QISHI.site_template#}js/Validform.min.js"></script>
	<script>
		$(document).ready(function() {
			// 擅长行业填充数据
			trade_filldata("#trad_list", QS_trade, "#determine", "#deselect", "#aui_outer", "#trade_result_show", "#trade", "#trade_cn");
			// 擅长行业弹出框
			$("#trad_window").click(function() {
				popWin("aui_outer");
			});
			// 擅长职能填充数据 
			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");
			});
			// 所在地区填充数据
			city_filldata_alone("#city_list", QS_city_parent, QS_city, "#result-list-city", "#determine_city", "#deselect_city", "#aui_outer_city", "#trad_window_city", "#district", "#sdistrict", "#district_cn", "#city_result_show");
			// 所在地区弹出框
			$("#trad_window_city").click(function() {  
				popWin("aui_outer_city");
			});
			// 添加年份
			var myDate = new Date();
			var y = myDate.getFullYear();
			var ymin = y-60;
			y = y-16;	
			var yearhtm = "";
			for (i=y;i>=ymin;i--) {
				yearhtm += '<li><a id="'+i+'" dataid="'+i+'" title="'+i+'年" href="javascript:;">'+i+'年</a></li>';
			}
			$("#birthdate_y").html(yearhtm);
			$("#worktime_y").html(yearhtm);
			// 下拉
			dropdownform("#birthdate_menu", "#birthdate_name", "#birthdate", "#birthdate_cn"); // 出生年份
			dropdownform("#education_menu", "#education_name", "#education", "#education_cn"); // 学历要求
			dropdownform("#worktime_menu", "#worktime_name", "#worktime", "#worktime_cn"); // 从业时间
			dropdownform("#rank_menu", "#rank_name", "#rank", "#rank_cn"); // 目前头衔
			//验证
			$("#Form1").Validform({
				tiptype:2
			});
			// 添加合作过的客户
			$(".add_team_company").click(function() {
				$("#add_teamwork").show();
				$(".add_submit").attr("id","add_submit")
				$("#add_submit").unbind().click(function() {
					var company_name=$("input[name=company_name]").val();
					$.post('?act=collaborative_save', {company_name: company_name}, function(data) {
							if(data=="err")
							{
								alert("添加出错");
							}
							else if (data=="ok")
							{
								window.location.reload();						
							}
						});	
				});
			});
			// 修改合作过的客户
			$(".change").click(function() {
				$("#add_teamwork").show();
				$(".add_submit").attr("id","edit_submit")
				$targetspan = $(this).parent().prev('.team_com_name');
				var company_name = $targetspan.attr("title");
				var id = $targetspan.attr("id");
				$("input[name=company_name]").val(company_name);
				$("input[name=company_name]").change(function() {
					company_name = $(this).val();
					$("#edit_submit").unbind().live("click",function() {
					var company_name=$("input[name=company_name]").val();
					$.post('?act=collaborative_save', {company_name: company_name,id:id}, function(data) {
							if(data=="err")
							{
								alert("修改出错");
							}
							else
							{
								$("#appcentent").html(data);
								$("#add_teamwork").hide();	
								window.location.reload();		
							}
						});	
				});
				});
				
			});
			// 取消修改合
			$(".cancel").click(function() {
				$("input[name=company_name]").val('');
				$("input[name=company_name]").attr("id","");
				$("#add_teamwork").hide();
			});
		});
	</script>
</head>
<body>
	{#include file="member_hunter/header.htm"#}
	{#include file="member_hunter/hunter_info_nav.htm"#}
	<!-- 猎头基本资料 -->
	<div class="container">
		<div class="hunter_profile">
			<div class="hunter_id">猎头认证ID：<span class="verdana_font id_number">LT{#$hunter_profile.id#}</span></div>
			<div class="has_done_profile">
				<div class="has_done_type">真实姓名：{#$hunter_profile.fullname#}</div>
				<div class="has_done_type">所在公司：{#$hunter_profile.belongcompany#}</div>
				<div class="has_done_type">公司电话：<span class="verdana_font">{#$hunter_profile.companytelephone#}</span></div>
			</div>
			<form action="?act=profile_save" method="post" id="Form1" name='Form1'>
			<div class="hunter_profile_edit">
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left"><span class="must">*</span> 手机号码：</div>
					<div class="h_p_e_right">
						<input value="{#$hunter_profile.mobile#}" name="mobile" id="telphone" class="text input-medium span200" datatype="m" sucmsg="&nbsp;" nullmsg="请填写手机号码" errormsg="请填写有效的手机号码" >
					</div>
					<div class="h_p_e_right"></div>
				</div>
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left">电子邮箱：</div>
					<div class="h_p_e_right link_blue"><span class="verdana_font">{#$hunter_profile.email#}</span> <a href="?act=binding" class="ver_now">立即验证</a></div>
				</div>
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left"><span class="must">*</span> 出生年份：</div>
					<div class="h_p_e_right">
						<span class="optionlist w_200">
							<div class="reg_input_box optionlist">
								<span id="birthdate_name" data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 188px;" id="city_result_show">
									<span class="items" style="left: 6px; height: 20px;">{#$hunter_profile.birthdate|default:"请选择出生年份"#}</span>
									<em class="selectui-drop" style="height: 30px; margin-top: -1px;" id="birthdate_menu"></em>
								</span>
								<ul class="droplist" id="birthdate_y" style="height:200px;overflow-x:hidden; overflow-y:scroll;"></ul>
							</div>
						</span>
						<input type="hidden" value="{#$hunter_profile.birthdate#}" name="birthdate" id="birthdate" datatype="n" sucmsg="&nbsp;" nullmsg="请选择出生年份" errormsg="请选择出生年份" />
						<input type="hidden" value="" name="birthdate_cn" id="birthdate_cn" />
					</div>
					<div class="h_p_e_right"></div>
				</div>
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left"><span class="must">*</span> 最高学历：</div>
					<div class="h_p_e_right">
						<span class="optionlist w_200">
							<span id="education_name" data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 188px;" id="city_result_show">
								<span class="items" style="left: 6px; height: 20px;">{#$hunter_profile.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>
						</span>
						<input type="hidden" value="{#$hunter_profile.education_cn#}" name="education_cn" id="education_cn" datatype="*" sucmsg="&nbsp;" nullmsg="请选择最高学历" errormsg="请选择最高学历" />
						<input type="hidden" value="{#$hunter_profile.education#}" name="education" id="education"/>
					</div>
					<div class="h_p_e_right"></div>
				</div>
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left"><span class="must">*</span> 所在地区：</div>
					<div class="h_p_e_right">
						<span data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 188px;" id="city_result_show">
							<span class="items" style="left: 6px; height: 20px;">{#$hunter_profile.district_cn|default:"请选择所在地区"#}</span>
							<em class="drop" style="height: 30px; margin-top: -1px;" id="trad_window_city"></em>
						</span>
		                <input name="district" id="district" type="hidden" value="{#$hunter_profile.district#}" datatype="*" sucmsg="&nbsp;" nullmsg="请选择所在地区" errormsg="请选择所在地区"  />	
						<input name="sdistrict" id="sdistrict" type="hidden" value="{#$hunter_profile.sdistrict#}" />	
						<input name="district_cn" id="district_cn" type="hidden" value="{#$hunter_profile.district_cn#}" />	
					</div>
					<div class="h_p_e_right"></div>
				</div>
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left"><span class="must">*</span> 从业时间：</div>
					<div class="h_p_e_right">
						<span class="optionlist w_200">
							<div class="reg_input_box optionlist">
								<span id="worktime_name" data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 188px;" id="city_result_show">
									<span class="items" style="left: 6px; height: 20px;">{#$hunter_profile.worktime|default:"请选择从业时间"#}</span>
									<em class="selectui-drop" style="height: 30px; margin-top: -1px;" id="worktime_menu"></em>
								</span>
								<ul class="droplist" id="worktime_y" style="height:200px;overflow-x:hidden; overflow-y:scroll;"></ul>
							</div>
						</span>
						<input type="hidden" value="{#$hunter_profile.worktime#}" name="worktime" id="worktime" datatype="*" sucmsg="&nbsp;" nullmsg="请选择从业时间" errormsg="请选择从业时间" />
						<input type="hidden" value="" name="worktime_cn" id="worktime_cn" />
					</div>
					<div class="h_p_e_right"></div>
				</div>
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left"><span class="must">*</span> 目前头衔：</div>
					<div class="h_p_e_right">
						<span class="optionlist w_200">
							<span id="rank_name" data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 188px;" id="city_result_show">
								<span class="items" style="left: 6px; height: 20px;">{#$hunter_profile.rank_cn|default:"请选择目前头衔"#}</span>
								<em class="selectui-drop" style="height: 30px; margin-top: -1px;" id="rank_menu"></em>
							</span>
							<ul class="droplist">
								{#qishi_get_classify  set="类型:QS_hunter_rank,列表名:c_hunterank"#}
          						{#foreach from=$c_hunterank item=list#}
								<li><a id="{#$list.id#}" dataid="{#$list.id#}" title="{#$list.categoryname#}" href="javascript:;">{#$list.categoryname#}</a></li>
								{#/foreach#}
							</ul>
						</span>
						<input type="hidden" value="{#$hunter_profile.rank#}" name="rank" id="rank" datatype="*" sucmsg="&nbsp;" nullmsg="请选择目前头衔" errormsg="请选择目前头衔"/>
						<input type="hidden" value="{#$hunter_profile.rank_cn#}" name="rank_cn" id="rank_cn" />
					</div>
					<div class="h_p_e_right"></div>
				</div>
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left"><span class="must">*</span> 擅长行业：</div>
					<div class="h_p_e_right">
						<span data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 348px;" id="trade_result_show">
							<span class="items" style="left: 6px; height: 20px;">{#$hunter_profile.trade_cn#}</span>
							<em class="drop" style="height: 30px; margin-top: -1px;" id="trad_window"></em>
						</span>
						<input name="trade" id="trade" type="hidden" value="{#$hunter_profile.trade#}" datatype="*" sucmsg="&nbsp;" nullmsg="请选择擅长行业" errormsg="请选择擅长行业" />
		                <input name="trade_cn" id="trade_cn" type="hidden" value="{#$hunter_profile.trade_cn#}" />
					</div>
					<div class="h_p_e_right"></div>
				</div>
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left"><span class="must">*</span> 擅长职能：</div>
					<div class="h_p_e_right">
						<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;">{#$hunter_profile.category_cn#}</span>
							<em class="drop" style="height: 30px; margin-top: -1px;" id="trad_window_job"></em>
						</span>
						<input name="category" id="category_id" type="hidden" value="{#$hunter_profile.category#}" datatype="*" sucmsg="&nbsp;" nullmsg="请选择擅长职能" errormsg="请选择擅长职能"/>	
		                <input name="category_cn" id="category_cn" type="hidden" value="{#$hunter_profile.category_cn#}" />
					</div>
					<div class="h_p_e_right"></div>
				</div>
				<div class="h_profile_edit_item clearfix hunter_edit_text">
					<div class="h_p_e_left"><span class="must">*</span> 猎头介绍：</div>
					<div class="h_p_e_right">
						<div class="h_p_e_textarea">
							<textarea name="contents" id="contents" datatype="*" tip="请在输入猎头介绍" value="请在输入猎头介绍" nullmsg="请输入猎头介绍" errormsg="请填写有效内容">{#$hunter_profile.contents#}</textarea>
						</div>
					</div>
					<div class="h_p_e_right"></div>
				</div>
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left">合作过的客户：</div>
					<div class="h_p_e_right" >
						{#if $hunter_collaborative#}
						<div id="appcentent">
						{#foreach from=$hunter_collaborative item=list#}
						<div class="teamwork link_blue clearfix">
							<span class="team_com_name" title="{#$list.company_name_#}" id="{#$list.id#}">{#$list.company_name#}</span>
							<div class="op_link">
								<a href="javascript:void(0);" class="change" title="修改"></a><a href="?act=collaborative_del&id={#$list.id#}" class="del" title="删除"></a>
							</div>
						</div>
						{#/foreach#}
						</div>
						{#else#}
						<div class="teamwork link_blue clearfix">
							没有合作过的客户
						</div>
						{#/if#}
						<div class="teamwork link_blue" style="display: none;" id="add_teamwork">
							<input value="" name="company_name" class="text input-medium span200"> <span class="teamwork_link">
							<a href="javascript:void(0)" class="add_submit">保存</a><a href="javascript:void(0)" class="cancel" style="margin-left:10px;">取消</a></span>
						</div>
						<div class="teamwork link_blue clearfix">
							<a href="javascript:void(0)" class="add_team_company">添加合作企业</a>
						</div>
					</div>
				</div>
				<div class="h_profile_edit_item clearfix">
					<div class="h_p_e_left">&nbsp;</div>
					<div class="h_p_e_right link_blue">
						<input type="submit" value="保存" class="but75lan" />
						<a target="_blank" href="{#"QS_hunter_show,id:"|cat:$hunter_profile.id|qishi_url#}" class="view_my_site">预览我的主页</a>
					</div>
				</div>
			</div>
			</form>
		</div>
	</div><!-- 猎头基本资料结束 -->
	<!-- 擅长行业弹出框 -->
	<div class="aui_outer" style="display:none;" id="aui_outer">
		<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 class="items jquery-localdata">
													<p class="tips">最多可以选择 3 项</p>
													<div style="height:410px" class="item-table">
														<table style="width:700px;" class="options-table">
															<tbody class="item-list"><tr class=""><td><table><tbody id="trad_list">
																<!-- 列表内容 -->
															</tbody></table></td></tr>
															</tbody>
														</table>
													</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" type="button">确定</button><button class="aui-btn aui-btn-light" id="deselect" 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" 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" style="display:none;" id="aui_outer_city">
		<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:660px" 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">1</strong> 项</div><div style="margin-left:160px" id="result-list-city" class="result-list"><strong class="result-name">请选择</strong></div></div></div>
													<div style="height:auto;" class="data-row-list data-row-main" id="city_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_city" type="button">确定</button><button class="aui-btn aui-btn-light" id="deselect_city" 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-->
	<!-- 底部 -->
	{#include file="./footer.htm"#}
	<!-- 底部结束 -->
</body>
</html>