<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>网站专题管理</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/ajaxrequest.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
</head>
<BODY style="margin:2px">
<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#A2DAE7" width="100%" style="border-collapse:collapse;">
<form name="MyForm" method=post action="<?=site_url('admin/news/topicdelall/')?>">
<tr><td colspan="7" align="center" class=title>文章专题管理 ｜ <a href="<?=site_url('admin/news/topicadd/')?>">新增专题</a></td></tr>
	<tr align="center"> 
		<td width="4%">选中</td>
		<td width="*">专题名称</td>
		<td width="20%">发行公司</td>
		<td width="10%">专题语言</td>
		<td width="10%">创建日期</td>
		<td width="8%">状态</td>
		<td width="20%">↓管理操作</td>
	</tr>
<?php
 if(empty($topic)) echo '<tr align="center"><td colspan="7" align="center">当前没有记录!</td></tr>';
 foreach ($topic as $row) { 
?>

        <tr align="center"> 
          	<td><input type=checkbox Name="CS_ID[]" Value="<?=$row->CS_ID?>"></td>
          	<td align="left">[<?=$this->CsdjSkins->getclass($row->CS_CID)?>] <a href="<?=$this->CsdjSkins->LinkUrl('show','zj','id',$row->CS_CID,$row->CS_ID)?>" target="_blank"><?=$row->CS_Name?></a></td>
          	<td><?php if(empty($row->CS_Fxgs)){ echo '未知';}else{echo $row->CS_Fxgs;}?></td>
          	<td><?=$row->CS_Yuyan?></td>
<?php
		if(date("Y-m-d",strtotime($row->CS_AddTime))==date('Y-m-d')){
				$addtime="<font color=red>".date("Y-m-d",strtotime($row->CS_AddTime))."</font>";
		}else{
				$addtime=date("Y-m-d",strtotime($row->CS_AddTime));
		}
?>
          	<td><?=$addtime?></td>
          	<td id="sh<?=$row->CS_ID?>">
<?php
if($row->CS_YID==1){
	echo '<a href="javascript:;" title="点击审核" onClick="topicsh(\''.site_url('admin/ajax/topicsh/').'\','.$row->CS_YID.','.$row->CS_ID.');return false">×</a>';
}else{
	echo '<a href="javascript:;" title="点击取消审核" onClick="topicsh(\''.site_url('admin/ajax/topicsh/').'\','.$row->CS_YID.','.$row->CS_ID.');return false">√</a>';
}
?>
          	</td>
          	<td><a href="<?=site_url('admin/news/topicedit/'.$row->CS_ID)?>">编辑专题</a>
          	 ｜ <a href="<?=site_url('admin/news/topicdel/'.$row->CS_ID)?>" onClick="return confirm('确定删除此专题吗?');">删除专题</a>
<?php
 if(Web_Mode==3){

          	echo ' ｜ <span id="html'.$row->CS_ID.'"><a href="javascript:;" title="点击生成HTML" onClick="html(\''.site_url('admin/ajax/html/').'\',\'zj\','.$row->CS_ID.','.$row->CS_CID.');return false">Html</a></span>';
 } 
?>
                </td>
        </tr>
<?php } ?>
     	<tr>
		<td colspan="7"><span style="float:right;">专题数：<?=$nums?>个&nbsp;&nbsp;&nbsp;&nbsp;<?=$pages?></span>
         	<input type=hidden value=DEL name=operation>
	 	<input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="ON">选中本页所有 <input type=submit class="italk-st" value=批量删除 onClick="return confirm('确定删除选中的专题吗?');" class="button"></td>
     	</tr></form>
	</table>
</BODY>
</HTML>

