<!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 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 type="text/javascript" src="{#$QISHI.site_template#}js/jquery.vtip-min.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$(".hunter_jobs_table .hunter_table_item:even").css({"background-color":"#F5F5F5"});
			// 下拉
			dropdownform("#company_menu", "#company_name", "#companyname", "#companyname_cn"); // 招聘企业
			checkboxui();
			// 发布职位
			$(".addjobs_but").click(function(event) {
				window.location.href='hunter_jobs.php?act=addjobs';
			});
		});
	</script>
</head>
<body>
	{#include file="member_hunter/header.htm"#}
	<!-- 二级菜单 -->
	<div class="secondary_menu clearfix hunterjobsmanages">
		<ul>
			<li><a href="?act={#$act#}&jobtype=" {#if $smarty.get.jobtype==''#}class="sec_menu_li hashover"{#else#}class="sec_menu_li"{#/if#}>正在发布</a></li>
			<li><a href="?act={#$act#}&jobtype=3" {#if $smarty.get.jobtype=='3'#}class="sec_menu_li hashover"{#else#}class="sec_menu_li"{#/if#}>审核中</a></li>
			<li><a href="?act={#$act#}&jobtype=4" {#if $smarty.get.jobtype=='4'#}class="sec_menu_li hashover"{#else#}class="sec_menu_li"{#/if#}>审核未通过</a></li>
			<li><a href="?act={#$act#}&jobtype=2" {#if $smarty.get.jobtype=='2'#}class="sec_menu_li hashover"{#else#}class="sec_menu_li"{#/if#}>已结束</a></li>
			<li><a href="?act={#$act#}&jobtype=1" {#if $smarty.get.jobtype=='1'#}class="sec_menu_li hashover"{#else#}class="sec_menu_li"{#/if#}>全部职位</a></li>
		</ul>
		<button class="addjobs_but"><i class="icon_plus_small"></i>&nbsp;发布职位</button>
	</div>
	<!-- 二级菜单结束 -->
	<div class="container">
		<div class="hunter_jobs_box">
			<form id="form1" name="form1" method="get" >
				<input type="hidden" name="act" value="{#$act#}"/>
				<input type="hidden" name="jobtype" value="{#$smarty.get.jobtype#}"/>	
				<div id="searchbar" style="height:50px;">
					<div class="optionlist" style="z-index:2">
						<div class="l">招聘企业</div>
						<span class="optionlist">
							<span id="company_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.companyname_note|default:'全部企业'#}</span>
								<em class="selectui-drop" style="height: 30px; margin-top: -1px;" id="company_menu"></em>
							</span>
							<ul class="droplist">
								<li><a dataid="" href="javascript:;" title="全部企业">全部企业</a></li>
								{#foreach from=$companyname_note item=li#}
								<li><a dataid="" href="javascript:;" title="{#$li#}">{#$li#}</a></li>
								{#/foreach#}
							</ul>
							<input type="hidden" name="companyname_note_id" id="companyname" value="{#$smarty.get.companyname_note_id#}"/>
							<input type="hidden" name="companyname_note" id="companyname_cn" value="{#$smarty.get.companyname_note#}"/>
						</span>
					</div>
					<div class="optionlist">
						<input value="{#$smarty.get.jobs_name|default:'请输入职位名称'#}" name="jobs_name" id="name" class="text input-medium span200">
					</div>
					<div class="optionlist" style="margin-left:10px;">
						<input type="submit" class="btn_search" value="查询">
					</div>
					<div class="clear"></div>
				</div>
			</form>
			<!-- 正在发布 -->
			{#if $smarty.get.jobtype==""#}
			<div class="data-list">
				<form id="form2" name="form2" method="get" >
					<table class="table table-text-center table-hover table-striped">
						<input type="hidden" name="act" value="jobs_perform" />
						<thead>
				        	<tr>
				        		<th width="20">
				        			<input type="checkbox" class="checkbox" style="display:none;" autocomplete="off">
				        		</th>
					            <th width="90">职位名称</th>
					            <th width="90">招聘企业</th>
					            <th width="50">应聘人选</th>
					            <th width="60">被浏览</th>
					            <th width="100">操作</th>
					            <th width="150">时间范围</th>
					            <th width="80">刷新时间</th>
				        	</tr>
				    	</thead>
				    	<tbody>
				    		{#if $jobs#}
							{#foreach from=$jobs item=li#}
							<tr>
							            <td>
							            	<input type="checkbox" name="y_id[]" class="checkbox" value="{#$li.id#}" style="display: none;margin-top:4px;" autocomplete="off">
							            </td>
							            <td><a href="{#$li.jobs_url#}" title="{#$li.jobs_name#}">{#$li.jobs_name_#}</a>{#if $li.recommend!=0#}<img src="{#$QISHI.site_template#}images/73.gif" alt="" />{#/if#}</td>
							            <td title="{#$li.companyname#}">{#$li.companyname_#}</td>
							            <td><a href="hunter_recruitment.php">{#$li.amount#}(<span>{#$li.countresume#}</span>)</a></td>
							            <td>{#$li.click#}次</td>
							            <td title=""><a href="?act=jobs_perform&refresh=1&y_id={#$li.id#}">刷新</a>&nbsp;<a href="?act=editjobs&id={#$li.id#}">修改</a>&nbsp;{#if $li.recommend!=0#}<a href="?act=jobs_perform&recommend2=1&y_id={#$li.id#}">取消热聘</a>{#else#}<a href="?act=jobs_perform&recommend1=1&y_id={#$li.id#}">设为热聘</a>{#/if#}</td>
							            <td title="">{#$li.addtime|date_format:"%Y-%m-%d"#} 至 {#$li.deadline|date_format:"%Y-%m-%d"#}</td>
							            <td title="">{#$li.refreshtime|date_format:"%Y-%m-%d"#}</td>
						        	</tr>
							{#/foreach#}
						{#else#}
							<tr>
								 <td colspan="8">没有查到相应的职位信息 !</td>
							</tr>
						{#/if#}
				    	</tbody>
				    	<tfoot>
				    		{#if $jobs#}
				    		<tr>
				    			<td><input type="checkbox" class="checkbox" style="display: none;margin-top:4px;" autocomplete="off"></td>
				    			<td class="text-left table-actions" colspan="3">

				    				<input type="submit" name="refresh" value="刷新" class="btn btn-light btn-small export" />
									<input type="submit" name="recommend1" value="推广" class="btn btn-light btn-small export" />
									<input type="submit" name="display2" value="结束" class="btn btn-light btn-small export" />
					            </td>
					            <td class="pagerbar-actions-inline" colspan="4">
					            	{#if $page#}
			          				<!-- 分页 -->
							<div class="page h_page clearfix">
									{#$page#}
							</div><!-- 分页结束 -->
							{#/if#}
			      			</td>
				    		</tr>
				    		{#/if#}
				    	</tfoot>
					</table>
				</form>
			</div>
			{#/if#}
			<!-- 正在发布结束 -->

			<!-- 审核中 -->
			{#if $smarty.get.jobtype=="3"#}
			<div class="data-list">
				<form id="form3" name="form3" method="get" >
					<table class="table table-text-center table-hover table-striped">
						<input type="hidden" name="act" value="jobs_perform" />
						<thead>
				        	<tr>
				        		<th width="20">
				        			<input type="checkbox" class="checkbox" style="display:none;" autocomplete="off">
				        		</th>
					            <th width="80">职位名称</th>
					            <th width="80">招聘企业</th>
					            <th width="60">学历要求</th>
					            <th width="50">工作经验</th>
					            <th width="80">工作地区</th>
					            <th width="90">年薪</th>
					            <th width="130">时间范围</th>
					            <th width="40">操作</th>
				        	</tr>
				    	</thead>
				    	<tbody>
				    		{#if $jobs#}
							{#foreach from=$jobs item=li#}
							<tr>
					            <td>
					            	<input type="checkbox" name="y_id[]" class="checkbox" value="{#$li.id#}" style="display: none;margin-top:4px;" autocomplete="off">
					            </td>
					            <td><a href="{#$li.jobs_url#}" title="{#$li.jobs_name#}">{#$li.jobs_name_#}</a></td>
					            <td title="{#$li.companyname#}">{#$li.companyname_#}</td>
					            <td>{#$li.education_cn#}及以上</td>
					            <td>{#$li.experience_cn#}</td>
					            <td title="{#$li.district_cn#}">{#$li.district_cn_#}</td>
					            <td title="">{#$li.wage_min#}-{#$li.wage_max#}万</td>
					            <td title="">{#$li.addtime|date_format:"%Y-%m-%d"#} 至 {#$li.deadline|date_format:"%Y-%m-%d"#}</td>
					            <td><a href="?act=editjobs&id={#$li.id#}">修改</a></td>
				        	</tr>
							{#/foreach#}
							{#else#}
							<tr>
								<td colspan="9" align="center">没有查到相应的职位信息</td>
							</tr>
							{#/if#}
				    	</tbody>
				    	<tfoot>
				    		{#if $jobs#}
				    		<tr>
				    			<td><input type="checkbox" class="checkbox" style="display: none;margin-top:4px;" autocomplete="off"></td>
				    			<td class="text-left table-actions" colspan="3">
									<input type="submit" name="display2" value="结束" class="btn btn-light btn-small export" />
					            </td>
					            <td class="pagerbar-actions-inline" colspan="5">
					            	{#if $page#}
			          				<!-- 分页 -->
							<div class="page h_page clearfix">
									{#$page#}
							</div><!-- 分页结束 -->
							{#/if#}
			      			</td>
				    		</tr>
				    		{#/if#}
				    	</tfoot>
					</table>
				</form>
			</div>
			{#/if#}
			<!-- 审核中结束 -->

			<!-- 审核未通过 -->
			{#if $smarty.get.jobtype=="4"#}
			<div class="data-list">
				<form id="form4" name="form4" method="get" >
					<table class="table table-text-center table-hover table-striped">
						<input type="hidden" name="act" value="jobs_perform" />
						<thead>
				        	<tr>
				        		<th width="20">
				        			<input type="checkbox" class="checkbox" style="display:none;" autocomplete="off">
				        		</th>
					            <th width="80">职位名称</th>
					            <th width="80">招聘企业</th>
					            <th width="60">学历要求</th>
					            <th width="50">工作经验</th>
					            <th width="80">工作地区</th>
					            <th width="130">时间范围</th>
					            <th width="90">未通过原因</th>
					            <th width="40">操作</th>
				        	</tr>
				    	</thead>
				    	<tbody>
				    		{#if $jobs#}
							{#foreach from=$jobs item=li#}
							<tr>
					            <td>
					            	<input type="checkbox" name="y_id[]" class="checkbox" value="{#$li.id#}" style="display: none;margin-top:4px;" autocomplete="off">
					            </td>
					            <td><a href="{#$li.jobs_url#}" title="{#$li.jobs_name#}">{#$li.jobs_name_#}</a></td>
					            <td title="{#$li.companyname#}">{#$li.companyname_#}</td>
					            <td>{#$li.education_cn#}及以上</td>
					            <td>{#$li.experience_cn#}</td>
					            <td title="{#$li.district_cn#}">{#$li.district_cn_#}</td>
					            <td title="">{#$li.addtime|date_format:"%Y-%m-%d"#} 至 {#$li.deadline|date_format:"%Y-%m-%d"#}</td>
					            <td >{#if $li.reason#}<span class="vtip" title="{#$li.reasonmsg#}">{#$li.reason#}</span>{#else#}无原因{#/if#}</td>
					            <td><a href="?act=editjobs&id={#$li.id#}">修改</a></td>
				        	</tr>
							{#/foreach#}
							{#else#}
							<tr>
								<td colspan="9" align="center">没有查到相应的职位信息</td>
							</tr>
							{#/if#}
				    	</tbody>
				    	<tfoot>
				    		{#if $jobs#}
				    		<tr>
				    			<td><input type="checkbox" class="checkbox" style="display: none;margin-top:4px;" autocomplete="off"></td>
				    			<td class="text-left table-actions" colspan="3">
									<input type="submit" name="display2" value="结束" class="btn btn-light btn-small export" />
					            </td>
					            <td class="pagerbar-actions-inline" colspan="5">
					            	{#if  $page#}
			          				<!-- 分页 -->
							<div class="page h_page clearfix">
									{#$page#}
							</div><!-- 分页结束 -->
							{#/if#}
			      			</td>
				    		</tr>
				    		{#/if#}
				    	</tfoot>
					</table>
				</form>
			</div>
			{#/if#}
			<!-- 审核未通过结束 -->

			<!-- 已结束 -->
			{#if $smarty.get.jobtype=="2"#}
			<div class="data-list">
				<form id="form5" name="form5" method="get" >
					<table class="table table-text-center table-hover table-striped">
						<input type="hidden" name="act" value="jobs_perform" />
						<thead>
				        	<tr>
				        		<th width="20">
				        			<input type="checkbox" class="checkbox" style="display:none;" autocomplete="off">
				        		</th>
					            <th width="70">职位名称</th>
					            <th width="70">招聘企业</th>
					            <th width="70">工作地区</th>
					            <th width="60">应聘人选</th>
					            <th width="50">被浏览</th>
					            <th width="130">时间范围</th>
					            <th width="90">结束时间</th>
					            <th width="70">操作</th>
				        	</tr>
				    	</thead>
				    	<tbody>
				    		{#if $jobs#}
							{#foreach from=$jobs item=li#}
							<tr>
					            <td>
					            	<input type="checkbox" name="y_id[]" class="checkbox" value="{#$li.id#}" style="display: none;margin-top:4px;" autocomplete="off">
					            </td>
					            <td><a href="{#$li.jobs_url#}" title="{#$li.jobs_name#}">{#$li.jobs_name_#}</a></td>
					            <td title="{#$li.companyname#}">{#$li.companyname_#}</td>
					            <td title="{#$li.district_cn#}">{#$li.district_cn_#}</td>
					            <td><a href="hunter_recruitment.php">{#$li.amount#}(<span>{#$li.countresume#}</span>)</a></td>
					            <td title="">{#$li.click#}次</td>
					            <td title="">{#$li.addtime|date_format:"%Y-%m-%d"#} 至 {#$li.deadline|date_format:"%Y-%m-%d"#}</td>
					            <td title="">{#if $li.finishtime!='0'#}{#$li.finishtime|date_format:"%Y-%m-%d"#}{#else#}{#$li.deadline|date_format:"%Y-%m-%d"#}{#/if#}</td>
					            <td><a href="?act=editjobs&id={#$li.id#}">修改</a>&nbsp;&nbsp;{#if $li.finishtime!='0'#}<a href="?act=jobs_perform&display1=1&y_id={#$li.id#}">恢复</a>{#/if#}</td>
				        	</tr>
							{#/foreach#}
							{#else#}
							<tr>
								<td colspan="9" align="center">没有查到相应的职位信息</td>
							</tr>
							{#/if#}
				    	</tbody>
				    	<tfoot>
				    		{#if $jobs#}
				    		<tr>
				    			<td><input type="checkbox" class="checkbox" style="display: none;margin-top:4px;" autocomplete="off"></td>
				    			<td class="text-left table-actions" colspan="3">
									<input type="submit" name="display1" value="恢复" class="btn btn-light btn-small export" />
					            </td>
					            <td class="pagerbar-actions-inline" colspan="5">
					            	{#if $page#}
			          				<!-- 分页 -->
							<div class="page h_page clearfix">
									{#$page#}
							</div><!-- 分页结束 -->
							{#/if#}
			      			</td>
				    		</tr>
				    		{#/if#}
				    	</tfoot>
					</table>
				</form>
			</div>
			{#/if#}
			<!-- 已结束 结束 -->

			<!-- 全部职位 -->
			{#if $smarty.get.jobtype=="1"#}
			<div class="data-list">
				<form id="form6" name="form6" method="get" >
					<table class="table table-text-center table-hover table-striped">
						<input type="hidden" name="act" value="jobs_perform" />
						<thead>
				        	<tr>
				        		<th width="20">
				        			<input type="checkbox" class="checkbox" style="display:none;" autocomplete="off">
				        		</th>
					            <th width="70">职位名称</th>
					            <th width="70">招聘企业</th>
					            <th width="70">工作地区</th>
					            <th width="70">职位状态</th>
					            <th width="130">时间范围</th>
					            <th width="80">刷新时间</th>
					            <th width="120">操作</th>
				        	</tr>
				    	</thead>
				    	<tbody>
				    		{#if $jobs#}
							{#foreach from=$jobs item=li#}
							<tr>
					            <td>
					            	<input type="checkbox" name="y_id[]" class="checkbox" value="{#$li.id#}" style="display: none;margin-top:4px;" autocomplete="off">
					            </td>
					            <td><a href="{#$li.jobs_url#}" title="{#$li.jobs_name#}">{#$li.jobs_name_#}</a></td>
					            <td title="{#$li.companyname#}">{#$li.companyname_#}</td>
					            <td title="{#$li.district_cn#}">{#$li.district_cn_#}</td>
					            <td>{#if $li.status=='0'#}{#$li.status_cn#}{#elseif $li.status=='2'#}{#$li.status_cn#}{#elseif $li.status=='3'#}{#$li.status_cn#}{#else#}{#$li.status_cn#}{#/if#}</td>
					            <td title="">{#$li.addtime|date_format:"%Y-%m-%d"#} 至 {#$li.deadline|date_format:"%Y-%m-%d"#}</td>
					            <td title="">{#$li.refreshtime|date_format:"%Y-%m-%d"#}</td>
					            <td>{#if $li.status=='0'#}<a href="?act=jobs_perform&refresh=1&y_id={#$li.id#}">刷新</a>&nbsp;&nbsp;<a href="?act=editjobs&id={#$li.id#}">修改</a>{#elseif $li.status=='2'#}<a href="?act=editjobs&id={#$li.id#}">修改</a>&nbsp;&nbsp;<a href="?act=jobs_perform&display1=1&y_id={#$li.id#}">恢复</a>{#elseif $li.status=='3'#}<a href="?act=editjobs&id={#$li.id#}">修改</a>&nbsp;&nbsp;<a href="?act=jobs_perform&display2=1&y_id={#$li.id#}">结束</a>{#else#}<a href="?act=editjobs&id={#$li.id#}">修改</a>{#/if#}</td>
				        	</tr>
							{#/foreach#}
							{#else#}
							<tr>
								<td colspan="8" align="center">没有查到相应的职位信息</td>
							</tr>
							{#/if#}
				    	</tbody>
				    	<tfoot>
				    		{#if $jobs#}
				    		<tr>
				    			<td><input type="checkbox" class="checkbox" style="display: none;margin-top:4px;" autocomplete="off"></td>
				    			<td class="text-left table-actions" colspan="3">
									<input type="submit" name="display1" value="恢复" class="btn btn-light btn-small export" />
					            </td>
					            <td class="pagerbar-actions-inline" colspan="4">
					            	{#if  $page#}
			          				<!-- 分页 -->
							<div class="page h_page clearfix">
									{#$page#}
							</div><!-- 分页结束 -->
							{#/if#}
			      			</td>
				    		</tr>
				    		{#/if#}
				    	</tfoot>
					</table>
				</form>
			</div>
			{#/if#}
			<!-- 全部职位结束 -->
		</div>
	</div>
	<!-- 底部 -->
	{#include file="./footer.htm"#}
	<!-- 底部结束 -->
</body>
</html>