<!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_personal.css" />
	<link rel="stylesheet" href="{#$QISHI.site_template#}css/datepicker.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_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 type="text/javascript" src="{#$QISHI.site_template#}js/jquery.datepicker.js"></script>
	<script type="text/javascript" src="{#$QISHI.site_template#}js/jquery.dropdown.js"></script>
	<script type="text/javascript" src="{#$QISHI.site_template#}js/jquery.checkboxui.js"></script>
	<script type="text/javascript" src="{#$QISHI.site_template#}js/jquery.checkboxrelated.js"></script>
	<script>
		$(document).ready(function() {
			$('input.date-picker').datePicker();
			// 美化多选框
			$(':checkbox').CheckboxUI();
			// 全选
			checkboxui();
			// 表格操作下拉
			$(".letter_dorp_link").on("click",function(e){
				var thisMain = $(this).parent().find($(".letter_drop_main"));
				thisMain.toggle();
				$(document).one("click",function(){
					thisMain.hide();
				});
				e.stopPropagation();
			})
			$(".letter_drop_main").on("click",function(e){
				e.stopPropagation();
			});
			dropdownform("#entrustjob_menu", "#entrustjob_name", "#job_id", "#job_id_cn"); // 委托职位
			dropdownform("#state_menu", "#state_name", "#state", "#state_cn"); // 处理状态
			dropdownform("#level_meal_menu", "#level_meal_name", "#level_meal", "#level_meal_cn"); // 猎头等级
			// 所在地区填充数据
			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");
			});
			// 批量删除
			$("#del_all").bind('click', function() {
				if (!confirm("确认要删除么？")) {
                    return false;
                } else {
					$("#del_form").submit();
                }
			});
		});
	</script>
</head>
<body>
	{#include file="member_personal/header.htm"#}
	<!-- 二级菜单 -->
	<!-- 二级导航 -->
	<div class="secondary_menu clearfix">
		<ul>
			<li><a href="{#"QS_hunter_list"|qishi_url#}" class="sec_menu_li">搜索猎头</a></li>
			<li><a href="{#$QISHI.site_dir#}user/personal/personal_hunter_service.php?act=hunter_service" class="sec_menu_li">合作猎头</a></li>
			<li><a class="sec_menu_li" href="{#$QISHI.site_dir#}user/personal/personal_hunter_service.php?act=entrust_me_hunter">收到的申请</a></li>
			<li><a class="sec_menu_li hashover" href="{#$QISHI.site_dir#}user/personal/personal_hunter_service.php?act=my_entrust_hunter">发出的申请</a></li>
			<li><a class="sec_menu_li" href="{#$QISHI.site_dir#}user/personal/personal_hunter_service.php?act=recommend_list">推荐列表</a></li>
		</ul>
	</div>
	<!-- 二级导航 End-->
	<form  method="get" name="">
		<input name="act" value="my_entrust_hunter" type="hidden"/>
		<!-- 搜索 -->
		<div class="searchbar">
			<div>
				<div class="optionlist">
					<div class="l">处理状态</div>
					<span class="optionlist">
						<span id="state_name" data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 101px;" id="city_result_show">
							<span class="items" style="left: 6px; height: 20px;">{#$smarty.get.state_cn|default:"不限"#}</span>
							<em class="selectui-drop" style="height: 30px; margin-top: -1px;" id="state_menu"></em>
						</span>
						<ul class="droplist" style="z-index: 999;">
							<li><a id="" dataid="" title="不限" href="javascript:;">不限</a></li>
							<li><a id="1" dataid="1" title="已同意" href="javascript:;">已同意</a></li>
							<li><a id="2" dataid="2" title="已拒绝" href="javascript:;">已拒绝</a></li>
							<li><a id="0" dataid="0" title="未处理" href="javascript:;">未处理</a></li>
						</ul>
						<input type="hidden" name="state" id="state" value="{#$smarty.get.state#}"/>
						<input type="hidden" name="state_cn" id="state_cn" value="{#$smarty.get.state_cn#}"/>
					</span>
				</div>
				<div class="optionlist">
					<div class="l">猎头等级</div>
					<div class="trem_input_box optionlist150_35">
						<span id="level_meal_name" data-name="industries" class="LocalDataUIC simulation-text LocalDataUIC-simulation-text" style="font-size: 12px; height: 20px; width: 101px;" id="city_result_show">
							<span class="items" style="left: 6px; height: 20px;">请选择猎头等级</span>
							<em class="selectui-drop" style="height: 30px; margin-top: -1px;" id="level_meal_menu"></em>
						</span>
						<ul class="droplist" style="z-index: 999;">
							{#qishi_hunter_level set="列表名:level"#}
							{#foreach from=$level item=list#}
							<li><a id="{#$list.id#}" dataid="{#$list.id#}" title="{#$list.name#}" href="javascript:;">{#$list.name#}</a></li>
							{#/foreach#}
						</ul>
						<input type="hidden" value="{#$smarty.get.level_meal#}" name="level_meal" id="level_meal" />
					</div>
				</div>
				<div class="optionlist">
					<div class="l">所在地区</div>
					<span class="optionlist">
						<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;">{#$smarty.get.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="{#$smarty.get.district#}" datatype="*" sucmsg="&nbsp;" nullmsg="请选择所在地区" errormsg="请选择所在地区"/>
						<input name="sdistrict" id="sdistrict" type="hidden" value="{#$smarty.get.sdistrict#}" />
						<input name="district_cn" id="district_cn" type="hidden" value="{#$smarty.get.district_cn#}" />
					</span>
				</div>
				<div class="clear"></div>
			</div>
			<div>
				<div class="optionlist nomr">
					<div class="l">申请时间</div>
					<span class="relative">
						<input value="{#$smarty.get.star_time#}" name="star_time" id="star_time" class="text input-medium span3 date-picker">
					</span>
				</div>
				<div class="optionlist">
					<div class="l" style="padding-left:5px;">到</div>
					<span class="relative">
						<input value="{#$smarty.get.end_time#}" name="end_time" id="end_time" class="text input-medium span3 date-picker">
					</span>
				</div>
				<div class="optionlist">
					<div class="l">姓名</div>
					<span class="optionlist">
						<input type="text" class="text input-medium span3" value="{#$smarty.get.hunter_name#}" name="hunter_name"/>
					</span>
				</div>
				<div class="optionlist" style="margin-left:10px;">
					<input type="submit" id="Butquery" class="btn_search" value="查询">
				</div>
				<div class="optionlist clebox">
					<div class="cleimg"></div>
					<div class="cleopt">
						<a href="?act=my_entrust_hunter">清空条件</a>
					</div>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		<!-- 搜索 End-->
	</form>
	<!-- 信息列表 -->
	<div class="data-list">
		<table class="table table-text-center table-hover table-striped">
			<thead>
	        	<tr>
	        		<th width="20">
	        			<input type="checkbox" class="checkbox" style="display:none;" autocomplete="off">
	        		</th>
		            <th width="90" style="text-align:left;">猎头编号</th>
		            <th width="80">姓名</th>
		            <th width="130">猎头等级</th>
		            <th width="60">从业年限</th>
		            <th width="105">所在地区</th>
		            <th width="110">对方处理状态</th>
		            <th width="130">申请委托时间</th>
		            <th width="110">操作</th>
	        	</tr>
	    	</thead>
	    	<tbody>
	    		<form action="?act=entrust_del" method="post" id="del_form">
	    		{#if $entrust_list#}
			    {#foreach from=$entrust_list item=li#}
	    		<tr>
		            <td>
		            	<input type="checkbox" name="y_id[]" value="{#$li.entrust_id#}" class="checkbox" style="margin-top:4px;" autocomplete="off">
		            </td>
		            <td><a target="_blank" href="{#$li.hunter_url#}" style="text-align:left;">LT{#$li.hunter_id#}</a></td>
		            <td><a target="_blank" href="{#$li.hunter_url#}" title="{#$li.hunter_name_#}">{#$li.hunter_name#}</a></td>
		            <td>
		            	<div class="p_hunter_s_level">
	            			<span class="hunter_level_icon level{#$li.level_meal#}"></span>
	            		</div>
		            </td>
		            <td>{#$li.worktime#}</td>
		            <td>{#$li.h_district_cn#}</td>
		            <td>
		            	{#if $li.state==1#}
	            			<span class="chuli_done">已同意</span>
	            		{#elseif $li.state==2#}
							<span class="chuli_no">已拒绝</span>
	            		{#else#}
							<span class="chuli_not">未处理</span>
	            		{#/if#}
		            </td>
		       		<td>{#$li.addtime|date:"Y-m-d"#}</td>
		            <td >
		            	<a href="?act=entrust_del&y_id={#$li.entrust_id#}" onclick="return confirm('确认要删除？')">删除</a>
		            </td>
		        </tr>
		        {#/foreach#}
	        	{#else#}
	        	<tr>
	        		<td colspan=9>没有您找的信息</td>
	        	</tr>
	        	{#/if#}
	        	</form>
	    	</tbody>
	    	{#if $entrust_list#}
	    	<tfoot>
	    		<tr style="border:none;">
	    			<td><input type="checkbox" class="checkbox" style="display: none;margin-top:4px;" autocomplete="off"></td>
	    			<td class="text-left table-actions" colspan="3">
			            <a href="javascript:;" class="btn btn-light btn-small link-batchview del" id="del_all">删除</a>
		            </td>
		            <td class="pagerbar-actions-inline" colspan="6">
      				<!-- 分页 -->
				<div class="page h_page clearfix">
					{#$page#}
				</div>
				<!-- 分页结束 -->
      			</td>
	    		</tr>
	    	</tfoot>
	    	{#/if#}
		</table>
	</div>
	</form>
	<!-- 信息列表 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>