<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>Cscms采集系统项目管理</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>
</head>
<BODY style="margin:2px">
<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="950" style="border-collapse:collapse;">
<tr><td align="center" height="20" colspan="6" class="title">采集项目管理 — <select OnChange="location.href='<?=site_url('admin/caiji/index/')?>?sid='+this.value" style='width:120px'><option value=''>快速查找模型项目</option><option value="1">歌曲</option><option value="2">文章</option><option value="3">视频</option></select> — <a title="添加采集项目" href="<?=site_url('admin/caiji/add/')?>">添加新项目</a> — <a title="导入采集项目" href="<?=site_url('admin/caiji/daoru/')?>">导入新项目</a></td></tr>

<form method="post" Name="myForm" action="<?=site_url('admin/caiji/pldel')?>">
  <tr>
    <td align="center" width="5%">选择</td>
    <td align="center" width="27%">项目名称</td>
    <td align="center" width="15%">所属频道</td>
    <td align="center" width="10%">所属栏目</td>
    <td align="center" width="18%">上次采集</div></td>
    <td align="center" width="25%">操作</td>
  </tr>
<?php
 if(empty($caiji)) echo '<tr align="center"><td colspan="6" align="center">当前没有记录!</td></tr>';
 foreach ($caiji as $row) { 
		if(date("Y-m-d",strtotime($row->CS_AddTime))==date('Y-m-d')){
				$addtime="<font color=red>".$row->CS_AddTime."</font>";
		}else{
				$addtime=$row->CS_AddTime;
		}
?>
  <tr align="center">
    <TD><input type=checkbox Name="CS_ID[]" id="CS_ID[]" Value="<?=$row->CS_ID?>"></TD>
    <td><a href='<?=$row->CS_Url?>' target='_blank'><?=$row->CS_Name?></a></td>
    <td><?php if($row->CS_SID==1){echo '歌曲';}elseif($row->CS_SID==2){echo '文章';}else{echo '视频';}?></td>
    <td>
<?php
 if($row->CS_SID==3){
       echo $this->CsdjSkins->getclass($row->CS_CID,'vlist');
 }else{
       echo $this->CsdjSkins->getclass($row->CS_CID);
 }
?>
    </td>
    <td><?php if(empty($row->CS_AddTime)){echo '尚无记录';}else{echo $addtime;}?></td>
    <td><a href="<?=site_url('admin/caiji/edit/'.$row->CS_ID)?>">编辑</a>｜<a href="<?=site_url('admin/caiji/daochu/'.$row->CS_ID)?>">导出</a>｜<a href="<?=site_url('admin/caiji/del/'.$row->CS_ID)?>" onClick="return confirm('删除后将不能恢复，您确定要删除吗?');">删除</a>｜<a href="<?=site_url('admin/caiji/caijigo/'.$row->CS_ID)?>?ac=ceshi">测试</a>｜<a href="<?=site_url('admin/caiji/caijigo/'.$row->CS_ID)?>">正式采集</a></td>
  </tr>
<?php } ?>
  <tr><td colspan=6><span style="float:right;">项目数：<?=$nums?>&nbsp;&nbsp;<?=$pages?></span>
      <input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="ON">全选&nbsp;
      <input type="submit" value="批量删除" name="StartMe" class='italk-st' onClick="return confirm('您确定删除吗?')">&nbsp;&nbsp;
      </td>
  </tr>
</form>
</table> 
</body>
</html>

