{#include file="sys/admin_header.htm"#}
<script type="text/javascript" src="js/jquery.userinfotip-min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
	$("#ButAudit").QSdialog({
	DialogTitle:"请选择",
	DialogContent:"#AuditSet",
	DialogContentType:"id",
	DialogAddObj:"#OpAudit",	
	DialogAddType:"html"	
	});
	//点击批量删除	
	$("#ButDlete").click(function(){
		if (confirm('你确定要删除吗？'))
		{
			$("form[name=form1]").attr("action",$("form[name=form1]").attr("action")+"&delete=true");
			$("form[name=form1]").submit()
		}
	});
	//刷新
	$("#Butrefresh").click(function(){
			$("form[name=form1]").attr("action",$("form[name=form1]").attr("action")+"&refresh=ok");
			$("form[name=form1]").submit()
	});
	
	//纵向列表排序
	$(".listod .txt").each(function(i){
	var li=$(this).children(".select");
	var htm="<a href=\""+li.attr("href")+"\" class=\""+li.attr("class")+"\">"+li.text()+"</a>";
	li.detach();
	$(this).prepend(htm);
	});
		
});
</script>
<div class="admin_main_nr_dbox">
<div class="pagetit">
	<div class="ptit"> {#$pageheader#}</div>
  <div class="clear"></div>
</div>
<div class="toptip">
	<h2>提示：</h2>
	<p>
有效职位是指：审核通过,有效期未到期,服务未到期,正常招聘的职位。反之为无效职位<br />
</p>
</div>


<div class="seltpye_y">

	<div class="tit link_lan">
	<strong>职位列表</strong><span>(共找到{#$totaljob#}条)</span>
	<a href="?">[恢复默认]</a>
	<div class="pli link_bk"><u>每页显示：</u>
	<a href="{#"perpage:10"|qishi_parse_url#}" {#if $smarty.get.perpage=="10"#}class="select"{#/if#}>10</a>
	<a href="{#"perpage:20"|qishi_parse_url#}" {#if $smarty.get.perpage=="20"#}class="select"{#/if#}>20</a>
	<a href="{#"perpage:30"|qishi_parse_url#}" {#if $smarty.get.perpage=="30"#}class="select"{#/if#}>30</a>
	<a href="{#"perpage:60"|qishi_parse_url#}" {#if $smarty.get.perpage=="60"#}class="select"{#/if#}>60</a>
	<div class="clear"></div>
	</div>
	</div>	

     <div class="list">
	  <div class="t">职位类型</div>	  
	  <div class="txt link_lan">
	 	<a href="{#"j_type:"|qishi_parse_url#}" {#if $smarty.get.j_type==""#}class="select"{#/if#}>不限</a>
		<a href="{#"j_type:1"|qishi_parse_url#}" {#if $smarty.get.j_type=="1"#}class="select"{#/if#}>初级职位</a>
		<a href="{#"j_type:2"|qishi_parse_url#}" {#if $smarty.get.j_type=="2"#}class="select"{#/if#}>高级职位</a>
		<a href="{#"j_type:3"|qishi_parse_url#}" {#if $smarty.get.j_type=="3"#}class="select"{#/if#}>委托职位</a>
	  </div>
    </div>
    <div class="list">
	  <div class="t">有效状态</div>	  
	  <div class="txt link_lan">
	 	<a href="{#"jobtype:1"|qishi_parse_url#}" {#if $smarty.get.jobtype=="1"#}class="select"{#/if#}>有效职位</a>
		<a href="{#"jobtype:2"|qishi_parse_url#}" {#if $smarty.get.jobtype=="2"#}class="select"{#/if#}>无效职位</a>
	  </div>
    </div>
	  {#if $smarty.get.jobtype=="2"#}
	<div class="list">
	  <div class="t">审核状态</div>	  
	  <div class="txt link_lan">
	 	<a href="{#"audit:"|qishi_parse_url#}" {#if $smarty.get.audit==""#}class="select"{#/if#}>不限</a>
		<a href="{#"audit:1"|qishi_parse_url#}" {#if $smarty.get.audit=="1"#}class="select"{#/if#}>审核通过<span>({#$total.1#})</span></a>
		<a href="{#"audit:2"|qishi_parse_url#}" {#if $smarty.get.audit=="2"#}class="select"{#/if#}>等待审核<span>({#$total.2#})</span></a>
		<a href="{#"audit:3"|qishi_parse_url#}" {#if $smarty.get.audit=="3"#}class="select"{#/if#}>审核未通过<span>({#$total.3#})</span></a>
	  </div>
    </div>
	  {#/if#}
	
	
	<div class="list listod" >
	  <div class="t">到期时间</div>	  
	  <div class="txt link_lan">
	 	<a href="{#"deadline:"|qishi_parse_url#}" {#if $smarty.get.deadline ==""#}class="select"{#/if#}>不限</a>
		{#if $smarty.get.jobtype=="2"#}		
		<a href="{#"deadline:1"|qishi_parse_url#}" {#if $smarty.get.deadline =="1"#}class="select"{#/if#}>已到期</a>
		<a href="{#"deadline:2"|qishi_parse_url#}" {#if $smarty.get.deadline =="2"#}class="select"{#/if#}>未到期</a>
		{#/if#}
		<a href="{#"deadline:3"|qishi_parse_url#}" {#if $smarty.get.deadline =="3"#}class="select"{#/if#}>三天内</a>
		<a href="{#"deadline:7"|qishi_parse_url#}" {#if $smarty.get.deadline =="7"#}class="select"{#/if#}>一周内</a>
		<a href="{#"deadline:30"|qishi_parse_url#}" {#if $smarty.get.deadline =="30"#}class="select"{#/if#}>一月内</a>
	  </div>
    </div>
	
	<div class="list" >
	  <div class="t">添加时间</div>	  
	  <div class="txt link_lan">
	 	<a href="{#"addsettr:"|qishi_parse_url#}" {#if $smarty.get.addsettr==""#}class="select"{#/if#}>不限</a>
		<a href="{#"addsettr:3"|qishi_parse_url#}" {#if $smarty.get.addsettr=="3"#}class="select"{#/if#}>三天内</a>
		<a href="{#"addsettr:7"|qishi_parse_url#}" {#if $smarty.get.addsettr=="7"#}class="select"{#/if#}>一周内</a>
		<a href="{#"addsettr:30"|qishi_parse_url#}" {#if $smarty.get.addsettr=="30"#}class="select"{#/if#}>一月内</a>
	  </div>
    </div>
	
	<div class="list" >
	  <div class="t">刷新时间</div>	  
	  <div class="txt link_lan">
	 	<a href="{#"settr:"|qishi_parse_url#}" {#if $smarty.get.settr==""#}class="select"{#/if#}>不限</a>
		<a href="{#"settr:3"|qishi_parse_url#}" {#if $smarty.get.settr=="3"#}class="select"{#/if#}>三天内</a>
		<a href="{#"settr:7"|qishi_parse_url#}" {#if $smarty.get.settr=="7"#}class="select"{#/if#}>一周内</a>
		<a href="{#"settr:30"|qishi_parse_url#}" {#if $smarty.get.settr=="30"#}class="select"{#/if#}>一月内</a>
	  </div>
    </div>
	
	
	
	<div class="clear"></div>
</div>



  
  <form id="form1" name="form1" method="post" action="?act=jobs_perform">
  {#$inputtoken#}
  <table width="100%" border="0" cellpadding="0" cellspacing="0" id="list" class="link_lan">
    <tr>
      <td   class="admin_list_tit admin_list_first">
      <label id="chkAll"><input type="checkbox" name=" " title="全选/反选" id="chk"/>职位名称</label></td>
      <td  class="admin_list_tit"> 发布公司 </td>
      <td align="center"  width="10%" class="admin_list_tit">推荐人才</td>
	  <td align="center"  width="10%" class="admin_list_tit">审核状态</td>
	  <td align="center"  width="10%" class="admin_list_tit">添加时间</td>
      <td align="center" width="10%"  class="admin_list_tit">到期时间</td>
      <td align="center" width="10%"  class="admin_list_tit">刷新时间</td>
	    <td align="center" width="5%" class="admin_list_tit">点击</td>      
      <td    width="100" align="center"  class="admin_list_tit">操作</td>
	
    </tr>
	{#foreach from=$jobs item=list#}
      <tr>
      <td  class="admin_list admin_list_first">
        <input name="y_id[]" type="checkbox" id="y_id" value="{#$list.id#}"  />		
		 <a href="{#$list.jobs_url#}" target="_blank"{#if $list.deadline<$smarty.now || $list.display == "2"#}style="color:#999999"{#/if#}  >{#$list.jobs_name#}</a>
		{#if $list.jobs_type=='0'#}
			<span class="jobs_level rank1">初</span>
		{#elseif $list.jobs_type=='1'#}
			<span class="jobs_level rank2">高</span>
		{#else#}
			<span class="jobs_level rank3">赏</span>&nbsp;{#$list.reward#}元
		{#/if#}		 
		{#if $list.recommend == "1"#}&nbsp;<span style="color: #339900">[热聘]</span>{#/if#}
		{#if $list.display == "2"#}&nbsp;<span style="color: #999999">[已暂停]</span>{#/if#}		
	    </td>
        <td class="admin_list">
		<a href="{#$list.company_url#}" target="_blank" style="color: #000000" title="{#$list.companyname#}">{#$list.companyname#}</a>
		</td>
		<td class="admin_list" align="center">
			<a href="?act=recommend_show&id={#$list.id#}&company_id={#$list.company_id#}">{#$list.countrecommend#}</a>
		</td>
		 <td class="admin_list" align="center">
		{#if $list.audit == "1"#}
		<span style="color: #009900">审核通过</span>	
		{#elseif $list.audit == "2"#}
		<span style="color:#FF0000">等待审核</span>
		{#elseif $list.audit == "3"#}
		审核未通过
		{#/if#}
		</td>
		<td class="admin_list" align="center" >
		{#$list.addtime|date_format:"%Y-%m-%d"#}
		</td>
        <td class="admin_list" align="center" >
		{#if $list.deadline>$smarty.now#}
		{#$list.deadline|date_format:"%Y-%m-%d"#}
		{#else#}
			<span style="color:#FF6600">已经过期</span>
		{#/if#}
		</td>
       <td class="admin_list" align="center" >
		{#$list.refreshtime|date_format:"%m-%d %H:%M"#}
		</td>
		  <td class="admin_list" align="center" >
		{#$list.click#}
		</td>
        <td class="admin_list" align="center" >		
		<a href="?act=edit_jobs&id={#$list.id#}">修改</a> 
		&nbsp;
		<a href="?act=management&id={#$list.uid#}"  target="_blank"  class="userinfo"  id="{#$list.uid#}">管理</a> 
		</td>
      </tr>
      {#/foreach#}   
  </table>
  <span id="OpAudit"></span>
  <span id="Opdelay"></span>
  </form>
	{#if !$list#}
	<div class="admin_list_no_info">没有任何信息！</div>
	{#/if#}
	<table width="100%" border="0" cellspacing="10" cellpadding="0" class="admin_list_btm">
      <tr>
        <td>
          <input name="ButAudit" type="button" class="admin_submit" id="ButAudit"    value="审核"  />
		  <input type="button" name="Butrefresh"  id="Butrefresh" value="刷新" class="admin_submit"/>
		<input type="button" name="ButDlete"  id="ButDlete" value="删除" class="admin_submit"/>
		</td>
        <td width="305" align="right">
		<form id="formseh" name="formseh" method="get" action="?act=jobs">	
			<div class="seh">
			    <div class="keybox"><input name="key" type="text"   value="{#$smarty.get.key#}" /></div>
			    <div class="selbox">
					<input name="key_type_cn"  id="key_type_cn" type="text" value="{#$smarty.get.key_type_cn|default:"职位名"#}" readonly="true"/>
						<div>
								<input name="key_type" id="key_type" type="hidden" value="{#$smarty.get.key_type|default:"1"#}" />
												<div id="sehmenu" class="seh_menu">
														<ul>
														<li id="1" title="职位名">职位名</li>
														<li id="2" title="公司名">公司名</li>
														<li id="3" title="职位ID">职位ID</li>
														<li id="4" title="公司ID">公司ID</li>
														<li id="5" title="会员ID">会员ID</li>
														</ul>
												</div>
						</div>				
				</div>
				<div class="sbtbox">
				<input name="act" type="hidden" value="jobs" />
				<input type="submit" name="" class="sbt" id="sbt" value="搜索"/>
				</div>
				<div class="clear"></div>
		  </div>
		  </form>
		  <script type="text/javascript">$(document).ready(function(){showmenu("#key_type_cn","#sehmenu","#key_type");});	</script>
	    </td>
      </tr>
  </table>
<div class="page link_bk">{#$page#}</div>
<div style="display:none" id="AuditSet">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="6">
    <tr>
      <td width="20" height="30">&nbsp;</td>
      <td height="30"><strong  style="color:#0066CC; font-size:14px;">将所选职位置为：</strong></td>
    </tr>
	      <tr>
      <td width="27" height="25">&nbsp;</td>
      <td>
                      <label><input name="audit" type="radio" value="1" checked="checked"  />
                      审核通过</label></td>
    </tr>
    <tr>
      <td width="27" height="25">&nbsp;</td>
      <td>
                      <label><input type="radio" name="audit" value="3"  />
                       审核未通过</label></td>
    </tr>
    <tr>
      <td height="25">&nbsp;</td>
      <td>
	  <input type="submit" name="set_audit" value="确定" class="admin_submit"/>
 </td>
    </tr>
  </table>
  </div>
  
  
<div style="display:none" id="delayset">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="6">
    <tr>
      <td width="20" height="30">&nbsp;</td>
      <td height="30"><strong  style="color:#0066CC; font-size:14px;">延长职位有效期：</strong></td>
    </tr>
	      <tr>
      <td width="27" height="25">&nbsp;</td>
      <td>
        <input name="days" type="text" class="input_text_150" id="days" value="1" maxlength="3"/>&nbsp;天</td>
    </tr>
 
    <tr>
      <td height="25">&nbsp;</td>
      <td>
	  <input type="submit" name="set_delay" value="确定" class="admin_submit"/>
 </td>
    </tr>
  </table>
  </div>
    
</div>
{#include file="sys/admin_footer.htm"#}
</body>
</html>