<!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="8" class="title">充值记录管理</td>
	</tr>
	<form name=form method=post action="<?=site_url('admin/pay/index/')?>">
	<tr>
   		<td align="center" height="20" colspan="8">时间：&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:120px" name="dingdan" type="text" value="">&nbsp;&nbsp;会员名：
                       <input style="width:80px" name="user" type="text" value="">&nbsp;&nbsp;状态：
                       <select style="width:80px" name="pid" size="1">
                            <option value=''>全部状态</option>
                            <option value='1'>支付成功</option>
                            <option value='2'>支付失败</option>
                       </select>&nbsp;&nbsp;&nbsp;&nbsp;
                       <INPUT type="submit" name="Submit" class="italk-bt" value=" 搜 索 ">
                </td>
	</tr></form>
	<form name=form method=post action="<?=site_url('admin/pay/pldel/')?>">
	<tr align="center">
		<td width="5%">选中</td>  
		<td width="*">定单</td>
		<td width="10%">方式</td>
		<td width="7%">金额</td>
		<td width="5%">状态</td>
		<td width="12%">IP</td>
		<td width="12%">会员</td>
		<td width="18%">时间</td>
	</tr>
<?php
 if(empty($pay)) echo '<tr align="center"><td colspan="8" align="center">当前没有记录!</td></tr>';
 foreach ($pay as $row) { 
?>
	<tr>
		<td align="center"><input type=checkbox Name="CS_ID[]" Value="<?=$row->CS_ID?>"></td>
		<td><?=$row->CS_Dingdan?></td>
		<td align="center">
<?php
if($row->CS_Type=='alipay'){
           echo '支付宝';
}elseif($row->CS_Type=='wypay'){
           echo '网银在线';
}else{
           echo '财付通';
}
?>
                </td>
		<td align="center"><?=$row->CS_RMB?></td>
		<td align="center">
<?php
if($row->CS_PID==1){
           echo '<font color=#0000ff>成功</font>';
}else{
    if($row->CS_Type=='alipay' && CS_Alipay_JK==1){
           echo '<font color=red>未完成</font>';
    }else{
           echo '<font color=red>失败</font>';
    }
}
?>
                </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="8">
		<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>

