<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>Cs采集系统 - 历史记录管理</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">
<form name='myform' method='Post' action='<?=site_url('admin/caiji/errordel/')?>'>
<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="950" style="border-collapse:collapse;">
<tr><td align="center" height="20" colspan="7" class="title">采集历史记录管理 — <select OnChange="location.href=this.value" style='width:120px'><option value='<?=site_url('admin/caiji/error/')?>'>快速查找历史记录</option><option value='<?=site_url('admin/caiji/error/')?>'>查看全部记录</option><option value='<?=site_url('admin/caiji/error/')?>?zid=1'>查看成功记录</option><option value='<?=site_url('admin/caiji/error/')?>?zid=2'>查看失败记录</option></select></td></tr>
<TR align="center"><TD width="5%">选中</TD><TD width="35%">标题</TD><TD width="20%">项目名称</TD><TD width="12%">所属频道</TD><TD width="12%">所属栏目</TD><TD width="8%">来源</TD><TD width="8%">结果</TD></TR>
<?php
 if(empty($caiji)) echo '<tr align="center"><td colspan="7" align="center">当前没有记录!</td></tr>';
 foreach ($caiji as $row) { 
        if($row->CS_ZID==0){
             $zt='<font color=blue>成功</font>';
        }else{
             $zt='<font color=red>失败</font>';
        }
        if($row->CS_SID==1){
             $mx='歌曲';
             $lm=$this->CsdjSkins->getclass($row->CS_CID);
        }elseif($row->CS_SID==2){
             $mx='文章';
             $lm=$this->CsdjSkins->getclass($row->CS_CID);
        }else{
             $mx='视频';
             $lm=$this->CsdjSkins->getclass($row->CS_CID,'vlist');
        }
        echo "<TR align='center'><TD><input type=checkbox Name='CS_ID[]' id='CS_ID[]' Value='".$row->CS_ID."'></TD><TD align='left'>".$row->CS_Name."</TD><TD>".$row->CS_Names."</TD><TD>".$mx."</TD><TD>".$lm."</TD><TD><a href='".$row->CS_Url."' target='_blank' title='".$row->CS_Url."'>点击访问</a></TD><TD>".$zt."</TD></TR>";
 } 
?>
<tr><td colspan=7><span style='float:right;'>记录数：<?=$nums?>&nbsp;&nbsp;<?=$pages?></span>
<input type='hidden' name="Action" id="Action" value="Del">&nbsp;
<input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="ON">&nbsp;&nbsp;
<input type='submit' name="DelFlag" value='删除选中记录' class='italk-st3' onclick="return confirm('确定要清除所选记录吗？');">&nbsp;
<input type='button' name='shibai' value='清空所有记录' class='italk-st3'  onclick="if (confirm('确定要清除所有记录吗？')){javascript:document.myform.action='<?=site_url('admin/caiji/errordel/')?>?ac=all';myform.submit();}else{return false;}"/>&nbsp;
<input type='button' name='shibai' value='清空成功记录' class='italk-st3'  onclick="if (confirm('确定要清除所有成功记录吗？')){javascript:document.myform.action='<?=site_url('admin/caiji/errordel/')?>?ac=cg';myform.submit();}else{return false;}"/>&nbsp;
<input type='button' name='shibai' value='清空失败记录' class='italk-st3'  onclick="if (confirm('确定要清除所有失败记录吗？')){javascript:document.myform.action='<?=site_url('admin/caiji/errordel/')?>?ac=sb';myform.submit();}else{return false;}"/>

</td>
</tr>
</table>
</form> 
</body>
</html>

