<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<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?v23"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.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/setcolor.js"></script>
</head>
<body style="margin:2px">
 
	<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="100%" style="border-collapse:collapse;" id="m_Imgs">
	<form name=form method=post action="<?=site_url('admin/user/tixian')?>">
	<tr><td align="center" height="20" colspan="9" class="title">会员提现记录    
	 ｜ <select OnChange="location.href='<?=site_url('admin/user/tixian')?>?sid='+this.value" style='width:120px'><option value=''>快速查找</option><option value="1">等待提现</option><option value="2">提现成功</option><option value="3">提现失败</option></select>
	 &nbsp;&nbsp;订单号：<input style="width:150px" name="dingdan" type="text" value="">&nbsp;&nbsp;<INPUT type="submit" name="Submit" class="italk-bt" value=" 搜 索 ">
	</td></tr></form>
	<form method="post" Name="myForm" action="<?=site_url('admin/user/tixian_del')?>">
	<tr align="center">
		<td width="3%">选中</td>
		<td width="6%">ID</td>
		<td width="20%">订单号</td>
		<td width="10%">提现会员</td>
        <td width="8%">提现金币</td>
		<td width="6%">状态</td>
		<td width="*">提现信息</td>
		<td width="8%">提现时间</td>
		<td width="13%">管理操作</td>
	</tr>
<?php
 if(empty($user)) echo '<tr align="center"><td colspan="9" align="center">当前没有记录!</td></tr>';
 foreach ($user as $row) { 
         $rowu=$this->db->query("SELECT CS_ID,CS_Name FROM ".CS_SqlPrefix."user where cs_id=".$row->CS_UID."")->row();
?>
	<tr>
		<td align="center"><input type=checkbox Name="CS_ID[]" id="CS_ID[]" Value="<?=$row->CS_ID?>"></td>
		<td align="center"><?=$row->CS_ID?></td>
		<td align="center"><?=$row->CS_Dingdan?></td>
		<td align="center"><a href="<?=$this->CsdjSkins->userlink('index',$rowu->CS_ID,$rowu->CS_Name)?>" target="_blank"><?=$rowu->CS_Name?></a></td>
		<td align="center"><?=$row->CS_RMB?></td>
		<td align="center">
<?php
if($row->CS_SID==0){
	echo '<font color=#ff0033>等待提现</font>';
}elseif($row->CS_SID==1){
	echo '<font color=#0000ff>提现成功</font>';
}else{
	echo '<font color=red>提现失败</font>';
}
?>
			</td>
		<td id="txs_<?=$row->CS_ID?>" align="left"><?=sub_str(str_replace("<br>","",$row->CS_Neir),15)?>... <A onclick="document.getElementById('tx_<?=$row->CS_ID?>').style.display='';document.getElementById('txs_<?=$row->CS_ID?>').style.display='none';return false" href="javascript:;">[查看详细]</A></td>
		<td style="display:none;" align="left" id="tx_<?=$row->CS_ID?>"><?=$row->CS_Neir?> <A onclick="document.getElementById('txs_<?=$row->CS_ID?>').style.display='';document.getElementById('tx_<?=$row->CS_ID?>').style.display='none';return false" href="javascript:;">[隐藏]</A></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 align="center"><?=$addtime?></td>
		<td align="center">
		<?php if($row->CS_SID==0){ ?>
			<a href="<?=site_url('admin/user/tixian_save/'.$row->CS_ID)?>?sid=1" onClick="return confirm('确定此操作吗?');">已经支付</a> ｜
			<a href="<?=site_url('admin/user/tixian_save/'.$row->CS_ID)?>?sid=2" onClick="return confirm('确定此操作吗?');">支付失败</a>
		<?php }else{ ?>
            --------
		<?php } ?>
		</td>
	</tr>
<?php } ?>

	<tr><td colspan='9'><span style="float:right;">数据：<?=$nums?>条&nbsp;&nbsp;&nbsp;&nbsp;<?=$pages?></span>选中<input type="checkbox" name="chkall" onclick="CheckAll(this.form)" value="ON">
	&nbsp;&nbsp;<input type="submit" name="Submit1" class="italk-st3" value="批量删除所选" onClick="return confirm('您确定删除吗?')">
	</span>
	</td></tr></form></table>
</body>
</html>

