<!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/datepicker/wdatepicker.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="7" class="title">消费记录管理</td>
	</tr>
	<form name=form method=post action="<?=site_url('admin/down/index/')?>">
	<tr>
   		<td align="center" height="20" colspan="8">模型：
                       <select style="width:80px" name="sid" size="1">
                            <option value=''>全部</option>
                            <option value="1">歌曲</option>
                            <option value="2">视频</option>
                       </select>&nbsp;&nbsp;时间：
                       <input style="width:80px" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="kstime" type="text" value="<?=date("Y-m-d",strtotime("last month"))?>">-<input style="width:80px" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" name="jstime" type="text" value="<?=date('Y-m-d')?>">&nbsp;&nbsp;会员名：
                       <input style="width:80px" name="user" type="text" value="">&nbsp;&nbsp;
                       <INPUT type="submit" name="Submit" class="italk-bt" value=" 搜 索 ">
                </td>
	</tr></form>
	<form name=form method=post action="<?=site_url('admin/down/pldel/')?>">
	<tr align="center">
		<td width="5%">选中</td>  
		<td width="*">名称</td>
		<td width="8%">模型</td>
		<td width="5%">扣币</td>
		<td width="12%">IP</td>
		<td width="12%">会员</td>
		<td width="18%">时间</td>
	</tr>
<?php
 if(empty($down)) echo '<tr align="center"><td colspan="7" align="center">当前没有记录!</td></tr>';
 foreach ($down as $row) { 
?>
	<tr>
		<td align="center"><input type=checkbox Name="CS_ID[]" Value="<?=$row->CS_ID?>"></td>
		<td>
<?php
if($row->CS_SID==1){
       echo '[<a href="'.$this->CsdjSkins->LinkUrl('lists','dance','id',$row->CS_CID,$row->CS_DID).'" target="_blank">'.$this->CsdjSkins->getclass($row->CS_CID).'</a>]
             <a href="'.$this->CsdjSkins->LinkUrl('play','dance','id',$row->CS_CID,$row->CS_DID).'" target="_blank">'.$row->CS_Name.'</a>
            ';
}else{
       echo '[<a href="'.$this->CsdjSkins->LinkUrl('lists','vod','id',$row->CS_CID,$row->CS_DID).'" target="_blank">'.$this->CsdjSkins->getclass($row->CS_CID,'vlist').'</a>]
             <a href="'.$this->CsdjSkins->LinkUrl('show','vod','id',$row->CS_CID,$row->CS_DID).'" target="_blank">'.$row->CS_Name.'</a>
            ';
}
?>
                </td>
		<td align="center">
<?php
if($row->CS_SID==1){
           echo '歌曲';
}else{
           echo '视频';
}
?>
                </td>
		<td align="center"><?=$row->CS_Cion?></td>
		<td align="center"><?=$row->CS_Ip?></td>
		<td align="center"><a href="<?=$this->CsdjSkins->userlink('index',$this->CsdjSkins->getuser('uid',$row->CS_User,2),$row->CS_User)?>" target="_blank"><?=$row->CS_User?></a></td>
		<td align="center"><?=$row->CS_AddTime?></td>
	</tr>
<?php } ?>
	<tr>
		<td colspan="7">
		<span style="float:right;">消费记录：<?=$nums?>&nbsp;&nbsp;<?=$pages?></span>
		<input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="ON">选中本页 
		<input type="submit" class="italk-st" name="put" value="批量删除" onClick="return confirm('确定删除选中的下载吗?');" class="button"> </td>
	</tr></form> 
</table>
</body>
</html>

