{#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"	
	});
	$("#ButTalent").QSdialog({
	DialogTitle:"请选择",
	DialogContent:"#TalentSet",
	DialogContentType:"id",
	DialogAddObj:"#OpTalent",	
	DialogAddType:"html"	
	});	
	//点击批量删除	
	$("#ButDel").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>
		可见状态是指：简历通过设置可见度来限制面向对象,共有四种状态: <1>完全公开 <2>仅企业可见 <3>仅猎头可见 <4>完全不公开<br />
		</p>
	</div>
	<div class="seltpye_y">
		<div class="tit link_lan">
			<strong>简历列表</strong><span>(共找到{#$total_val#}条)</span>
			{#if $smarty.get.tabletype!="2"#}
				<a href="?act=list">[恢复默认]</a>
			{#else#}
				<a href="?act=list&audit=2&tabletype=2">[恢复默认]</a>
			{#/if#}
			<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="{#"display:"|qishi_parse_url#}" {#if $smarty.get.display==''#}class="select"{#/if#}>不限</a>
			 	<a href="{#"display:1"|qishi_parse_url#}" {#if $smarty.get.display=="1"#}class="select"{#/if#}>完全公开<span>({#$total.0#})</span></a>
				<a href="{#"display:2"|qishi_parse_url#}" {#if $smarty.get.display=="2"#}class="select"{#/if#}>仅企业可见<span>({#$total.1#})</span></a>
				<a href="{#"display:3"|qishi_parse_url#}" {#if $smarty.get.display=="3"#}class="select"{#/if#}>仅猎头可见<span>({#$total.2#})</span></a>
				<a href="{#"display:4"|qishi_parse_url#}" {#if $smarty.get.display=="4"#}class="select"{#/if#}>完全不公开<span>({#$total.3#})</span></a>
			</div>
		</div>
		{#if $smarty.get.tabletype=="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.4#})</span></a>
				<a href="{#"audit:2"|qishi_parse_url#}" {#if $smarty.get.audit=="2"#}class="select"{#/if#}>等待审核<span>({#$total.5#})</span></a>
				<a href="{#"audit:3"|qishi_parse_url#}" {#if $smarty.get.audit=="3"#}class="select"{#/if#}>审核未通过<span>({#$total.6#})</span></a>
			</div>
	    	</div>
		{#/if#}
		<div class="list" >
		  	<div class="t">简历等级</div>	  
			<div class="txt link_lan">
			 	<a href="{#"talent:"|qishi_parse_url#}" {#if $smarty.get.talent==""#}class="select"{#/if#}>不限</a>
				<a href="{#"talent:1"|qishi_parse_url#}" {#if $smarty.get.talent=="1"#}class="select"{#/if#}>普通人才</a>
				<a href="{#"talent:2"|qishi_parse_url#}" {#if $smarty.get.talent=="2"#}class="select"{#/if#}>高级人才</a>
			</div>
	    	</div>
		<div class="list" >
			<div class="t">添加时间</div>	 
			<div class="txt link_lan">
			 	<a href="{#"addtimesettr:"|qishi_parse_url#}" {#if $smarty.get.addtimesettr==""#}class="select"{#/if#}>不限</a>
				<a href="{#"addtimesettr:3"|qishi_parse_url#}" {#if $smarty.get.addtimesettr=="3"#}class="select"{#/if#}>三天内</a>
				<a href="{#"addtimesettr:7"|qishi_parse_url#}" {#if $smarty.get.addtimesettr=="7"#}class="select"{#/if#}>一周内</a>
				<a href="{#"addtimesettr:30"|qishi_parse_url#}" {#if $smarty.get.addtimesettr=="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=perform">
	  	{#$inputtoken#}
	  	<table width="100%" border="0" cellpadding="0" cellspacing="0"   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   align="center"  width="80"     class="admin_list_tit">完整指数 </td>
				<td   align="center"  width="6%"    class="admin_list_tit">等级</td>
				<td   align="center"  width="10%"  class="admin_list_tit">审核状态</td> 
			      	<td   align="center"  width="8%"    class="admin_list_tit">公开</td>
				<td   align="center"  width="8%"    class="admin_list_tit">照片</td>
			      	<td   align="center"  width="12%"  class="admin_list_tit">添加时间</td>
				<td   align="center"  width="12%"  class="admin_list_tit">刷新时间</td>	
			      	<td   align="center"  width="12%"  class="admin_list_tit">操作</td>
			</tr>
			{#foreach from=$resumelist item=list#}
			<tr>
		      		<td  class="admin_list admin_list_first" >
			  		<input name="id[]" type="checkbox" id="id" value="{#$list.id#}"  />
					<a href="{#$list.resume_url#}" target="_blank">{#$list.fullname#}</a>
					{#if $list.photo_img<>""#}
					<span style="color: #009900"  class="vtip" title="<img src={#$QISHI.resume_photo_dir_thumb#}100/{#$list.photo_img#}  border=0  align=absmiddle>">[照片]</span>
					{#/if#}	
				</td>
				<td align="center"  class="admin_list">
					 <div style="width:100%; border:1px #CCCCCC solid; padding:1px; text-align:left; position:relative; font-size:0px">
					 	<div style=" background-color: #99CC00; height:10px; color:#990000;width:{#$list.complete_percent#}%;font-size:0px">
						</div>
						<div style="position:absolute; top:0px; left:40%; font-size:10px;">{#$list.complete_percent#}%</div>
					 </div>	
				</td>
			  	<td align="center"  class="admin_list">
					{#if $list.talent=="1"#}
						普通
				  	{#elseif $list.talent=="2"#}
				  		<span style="color: #009900">高级</span>
				  	{#/if#}
				</td>
				<td align="center"  class="admin_list">
				   	{#if $list.audit=="1"#}
				   		审核通过
				   	{#elseif $list.audit=="2"#}
				   		<span style="color: #FF6600">等待审核</span>
				   	{#elseif $list.audit=="3"#}
				   		<span style="color: #666666">审核未通过</span>
				   	{#/if#}	   
				</td>   
		      		<td align="center"  class="admin_list">
					{#if $list.display=="1"#}
					  	完全公开
					{#elseif $list.display=="2"#}
					  	仅企业可见
					{#elseif $list.display=="3"#}
						仅猎头可见
					{#else#}
						完全不公开
					{#/if#}	  
				</td>
		      		<td align="center"  class="admin_list">
					{#if $list.photo_img==""#}
					  	无照片
					{#else#}
					  	 有照片
					{#/if#}	  
				</td>
		      		<td align="center"  class="admin_list">{#$list.addtime|date_format:"%Y-%m-%d"#}</td>
			  	<td align="center"  class="admin_list">{#$list.refreshtime|date_format:"%Y-%m-%d"#}</td>
		     		<td align="center"  class="admin_list">
			  		<a href="{#$list.resume_url#}" target="_blank">查看</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="OpTalent"></span>
	</form>
	{#if !$resumelist#}
	<div class="admin_list_no_info">没有任何信息！</div>
	{#/if#}
	<table width="100%" border="0" cellspacing="10" cellpadding="0" class="admin_list_btm">
	          <tr>
		          <td>
				<input type="button" class="admin_submit" id="ButAudit" value="审核简历" />
				<input type="button" class="admin_submit" id="Butrefresh" value="刷新"/>
				<input type="button" class="admin_submit" id="ButDel" value="删除"/>
			</td>
		        	<td width="305" align="right">
				<form id="formseh" name="formseh" method="get" action="?">	
					<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="ID">ID</li>
									<li id="3" title="UID">UID</li>
									<li id="4" title="电话">电话</li>
									<li id="6" title="	">地址</li>
									</ul>
								</div>
							</div>				
						</div>
						<div class="sbtbox">
							<input name="act" type="hidden" value="list" />
							<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>
{#include file="sys/admin_footer.htm"#}
<div id="AuditSet" style="display: none" >
  	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="6" >
		<tr>
		      	<td 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 width="425"><label >
		                     <input type="radio" name="audit" value="3"  />审核未通过</label>
		           </td>
		</tr>
		<tr>
		     	<td height="25">&nbsp;</td>
		     	<td><span style="border-top: 1px #A3C7DA solid;">
		        		<input type="submit" name="set_audit" value="确定" class="admin_submit">
		      		</span>
		      	</td>
		</tr>		  
  	</table>
</div>
</body>
</html>