{#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:"#OpAuditLayer",
	DialogContentType:"id",
	DialogAddObj:"#OpAudit",	
	DialogAddType:"html"	
	});
	$(".act").click(function(){
		$("#form1").attr("action",$(this).attr("id"));
		$("#form1").submit();
	})
});
</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:90"|qishi_parse_url#}" {#if $smarty.get.settr=="90"#}class="select"{#/if#}>三月内</a>
		<div class="clear"></div>
		</div>
		<div class="clear"></div>
</div>
  <form id="form1" name="form1" method="post" action="">
  {#$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" align="center">公司名称</td> 
	  <td  width="12%" class="admin_list_tit" align="center">认证状态</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="15%" align="center" class="admin_list_tit">操作</td>
    </tr>
	{#foreach from=$clist item=list#}
      <tr >
      <td class="admin_list admin_list_first" >
        <input name="id[]" type="checkbox" id="id" value="{#$list.id#}" />
		<a href="{#$list.news_url#}"  target="_blank">{#$list.title#}
		</td>
		
		<td  class="admin_list" align="center">
		{#if $list.companyname #}
		{#$list.companyname#}
		{#else#}
		公司信息已删除
		{#/if#}
		</td>
        <td class="admin_list" align="center">
		{#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 class="admin_list" align="center">
		{#$list.order#}
		</td>
		
        <td align="center" class="admin_list">
		{#$list.click#}
		</td>
        <td align="center" class="admin_list">
		{#$list.addtime|date_format:"%Y-%m-%d"#}
		</td>
        <td width="15%" align="center" class="admin_list">
		<a href="?act=edit_company_news&id={#$list.id#}&{#$urltoken#}">修改</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="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 act"   id="?act=del_company_news"/>
		</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="新闻id">新闻id</li>
														<li id="4" title="新闻标题">新闻标题</li>														
														</ul>
												</div>
						</div>				
				</div>
				<div class="sbtbox">
				<input name="act" type="hidden" value="company_news" />
				<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="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"  id="success" />
                      认证通过 </label>	  </td>
    </tr>
    <tr>
      <td height="25">&nbsp;</td>
      <td><label >
                      <input type="radio" name="audit" value="3"  id="fail"/>
        认证未通过</label></td>
    </tr>
	 <tr>
      <td height="25">&nbsp;</td>
      <td>
	  <label >
	  <input type="radio" name="audit" value="2"  id="wait"/>      
	  等待认证
	  </label>	</td>
    </tr>
    <tr>
      <td width="40" height="25">&nbsp;</td>
      <td>
		  <label><input type="checkbox" name="pms_notice" value="1"  checked="checked" id="pms_notice"/>
		  站内信通知
		   </label>
	  </td>
    </tr>
	<tr id="reason">
      <td width="40" height="25" >说明：</td>
      <td>
         <textarea name="reason"  cols="50" style="font-size:12px"></textarea>            
      </td>
    </tr>
    <tr>
      <td height="25">&nbsp;</td>
      <td><input type="submit" name="set_audit" value="确定" class="admin_submit act"  id="?act=edit_news_audit"  /></td>
    </tr>		  
  </table>
</div>
{#include file="sys/admin_footer.htm"#}
</body>
</html>