{#include file="sys/admin_header.htm"#}
<script type="text/javascript">
$(document).ready(function()
{
	$("#ButAudit").QSdialog({
	DialogTitle:"请选择",
	DialogContent:"#OpAuditLayer",
	DialogContentType:"id",
	DialogAddObj:"#OpAudit",	
	DialogAddType:"html"	
	});
	$("#ButDel").QSdialog({
	DialogTitle:"请选择",
	DialogContent:"#OpDelLayer",
	DialogContentType:"id",
	DialogAddObj:"#OpDel",	
	DialogAddType:"html"	
	});
	$("#Butrefresh").QSdialog({
	DialogTitle:"请选择",
	DialogContent:"#OprefreshLayer",
	DialogContentType:"id",
	DialogAddObj:"#Oprefresh",	
	DialogAddType:"html"	
	});
});
</script>
<div class="admin_main_nr_dbox">
<div class="pagetit">
	<div class="ptit"> {#$pageheader#}</div>
  <div class="clear"></div>
</div>
<div class="seltpye_x">
		<div class="left">认证状态</div>	
		<div class="right">
			<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#}>认证通过</a>
			<a href="{#"audit:2"|qishi_parse_url#}" {#if $smarty.get.audit=="2"#}class="select"{#/if#}>等待认证</a>
			<a href="{#"audit:3"|qishi_parse_url#}" {#if $smarty.get.audit=="3"#}class="select"{#/if#}>认证未通过</a>
			<a href="{#"audit:0"|qishi_parse_url#}" {#if $smarty.get.audit=="0"#}class="select"{#/if#}>未认证</a>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
  </div>
  <div class="seltpye_x">
		<div class="left">添加时间</div>	
		<div class="right">
		<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>
		<a href="{#"settr:180"|qishi_parse_url#}" {#if $smarty.get.settr=="180"#}class="select"{#/if#}>半年内</a>
		<a href="{#"settr:360"|qishi_parse_url#}" {#if $smarty.get.settr=="360"#}class="select"{#/if#}>一年内</a>
		<div class="clear"></div>
		</div>
		<div class="clear"></div>
</div>
  <form id="form1" name="form1" method="post" action="?act=company_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  width="12%" class="admin_list_tit">营业执照</td>  
      <td width="10%" align="center" class="admin_list_tit">认证状态</td>
	     
      <td width="10%" align="center" class="admin_list_tit">创建时间</td>
	   <td width="10%" align="center" class="admin_list_tit">刷新时间</td>
	  <td width="10%" align="center" class="admin_list_tit">添加方式</td>
      <td width="8%" align="center" class="admin_list_tit">操作</td>
    </tr>
	{#foreach from=$clist item=list#}
      <tr >
      <td class="admin_list admin_list_first" >
        <input name="y_id[]" type="checkbox" id="y_id" value="{#$list.uid#}" />
		<a href="{#$list.company_url#}" target="_blank">{#$list.companyname#}</a>
		</td>
		
		<td  class="admin_list">
		{#$list.username#}
		</td>
        <td class="admin_list">
		{#if $list.license#}
			{#if $list.certificate_img#}
			<a href="{#$certificate_dir#}{#$list.certificate_img#}" target="_blank" title="点击查看">{#$list.license#}</a>&nbsp;
			{#else#}
			{#$list.license#}
			{#/if#}
		{#else#}
		<span  style="color: #999999">未上传</span>
		{#/if#}	
		</td>
		
        <td align="center" class="admin_list">
		{#if $list.audit == "0"#}未认证{#/if#}
		{#if $list.audit == "1"#}<span style="color: #009900">认证通过</span>{#/if#}
		{#if $list.audit == "2"#}<span style="color:#FF3300">等待认证</span>{#/if#}
		{#if $list.audit == "3"#}认证未通过{#/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">
		{#if $list.robot == "0"#}人工{#/if#}
		{#if $list.robot == "1"#}采集{#/if#}		</td>
        <td width="8%" align="center" class="admin_list">
		<a href="?act=edit_company_profile&id={#$list.id#}">修改</a>
		&nbsp;
		<a href="?act=management&id={#$list.uid#}"  target="_blank">管理</a>
		</td>
      </tr>
      {#/foreach#}
    </table>
<span id="OpAudit"></span>
<span id="OpDel"></span>
<span id="Oprefresh"></span>
  </form>
	{#if !$clist#}
	<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" name="" value="认证企业" class="admin_submit"  id="ButAudit" />
		<input type="button" name="" value="刷新" class="admin_submit"  id="Butrefresh" />
		<input type="button" name="" value="删除" class="admin_submit"   id="ButDel"/>
		  
		</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="会员名">会员名</li>
														<li id="4" title="会员id">会员id</li>														
														<li id="5" title="地址">地址</li>
														<li id="6" title="电话">电话</li>
														</ul>
												</div>
						</div>				
				</div>
				<div class="sbtbox">
				<input name="act" type="hidden" value="company_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>
<div style="display:none" id="OpDelLayer">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="6" >
    <tr>
      <td height="30" colspan="2"><strong  style="color:#0066CC; font-size:14px;">你确定要删除吗？</strong></td>
      </tr>
    <tr>
      <td width="20" height="25">&nbsp;</td>
      <td><label>
        <input name="delete_company" type="checkbox" id="delete_company" value="yes" checked="checked" />
        删除企业资料</label></td>
    </tr>
	<tr>
      <td height="25">&nbsp;</td>
      <td><label>
        <input name="delete_jobs" type="checkbox" id="delete_jobs" value="yes" checked="checked"/>
        删除此企业发布的招聘信息</label></td>
    </tr>
	<tr>
	  <td height="25">&nbsp;</td>
	  <td><input type="submit" name="delete" value="确定" class="admin_submit"    /></td>
	  </tr>
  </table>
</div>
<!-- -->
<div style="display:none" id="OprefreshLayer">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="6" >
    <tr>
      <td height="30" colspan="2"><strong  style="color:#0066CC; font-size:14px;">刷新该企业的职位：</strong></td>
      </tr>
    <tr>
      <td width="20" height="25">&nbsp;</td>
      <td><label>
        <input name="refresh_jobs" type="checkbox" id="refresh_jobs" value="yes" />
        同时刷新所选企业的职位</label></td>
    </tr>
	 <tr>
      <td height="25">&nbsp;</td>
      <td><input type="submit" name="set_refresh" value="确定" class="admin_submit"    /></td>
    </tr>
  </table>
</div>
<!-- -->
<div style="display:none" id="OpAuditLayer">
 <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 height="25">&nbsp;</td>
      <td>
	  <label >
                      <input name="audit" type="radio" value="1" checked="checked"  />
                      认证通过 </label>	  </td>
    </tr>
    <tr>
      <td height="25">&nbsp;</td>
      <td><label >
                      <input type="radio" name="audit" value="3"  />
        认证未通过</label></td>
    </tr>
	 <tr>
      <td height="25">&nbsp;</td>
      <td>
	  <label >
	  <input type="radio" name="audit" value="2"  />      
	  等待认证
	  </label>	</td>
    </tr>
    <tr>
      <td height="25">&nbsp;</td>
      <td><input type="submit" name="set_audit" value="确定" class="admin_submit"    /></td>
    </tr>		  
  </table>
</div>
<!-- -->
{#include file="sys/admin_footer.htm"#}
</body>
</html>