<!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">
	<tr><td align="center" height="20" colspan="12" class="title">等待审核MM认证会员 ｜ <A href="<?=site_url('admin/user/index')?>?sid=1">查看已审核MM认证会员</A>
	</td></tr>
	<tr align="center">
		<td width="6%">ID</td>
		<td width="8%">认证相片</td>
		<td width="*">会员名称</td>
		<td width="10%">会员呢称</td>
		<td width="8%">级别</td>
        <td width="5%">积分</td>
        <td width="5%">金币</td>
        <td width="10%">最后登入IP</td>
		<td width="8%">注册时间</td>
		<td width="4%">dj认证</td>
		<td width="4%">推荐</td>
		<td width="13%">↓管理操作</td>
	</tr>
<?php
 if(empty($user)) echo '<tr align="center"><td colspan="12" align="center">当前没有记录!</td></tr>';
 foreach ($user as $row) { 
?>
	<tr>
		<td align="center"><?=$row->CS_ID?></td>
		<td align="center"><img src="<?=Web_Path?>attachment/rzpic/<?=$row->CS_ID?>.jpg" style="cursor:url(<?=Web_Path?>csdj/images/zoomin.cur),auto" onload="ResizeImages(this,50,30);" onclick="PreviewImage(this);"></td>
		<td align="center"><a href="<?=$this->CsdjSkins->userlink('index',$row->CS_ID,$row->CS_Name)?>" target="_blank"><?=$row->CS_Name?></a></td>
		<td align="center"><a href="<?=$this->CsdjSkins->userlink('index',$row->CS_ID,$row->CS_Name)?>" target="_blank"><?=$row->CS_Nichen?></a></td>
		<td align="center"><?=$this->CsdjSkins->userlevel($row->CS_Vip)?></td>
		<td align="center"><?=$row->CS_Cion?></td>
		<td align="center"><?=$row->CS_RMB?></td>
		<td align="center"><?=$row->CS_LogIP?></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" id="rz<?=$row->CS_ID?>">
<?php
if($row->CS_DJID==0){
	echo '<a href="javascript:;" title="点击dj认证" onClick="userrz(\''.site_url('admin/ajax/userDJrz/').'\','.$row->CS_DJID.','.$row->CS_ID.');return false"><font color=#ff0033>×</font></a>';
}else{
	echo '<a href="javascript:;" title="点击取消dj认证" onClick="userrz(\''.site_url('admin/ajax/userDJrz/').'\','.$row->CS_DJID.','.$row->CS_ID.');return false">√</a>';
}
?>
			</td>

		<td align="center" id="tj<?=$row->CS_ID?>">
<?php
if($row->CS_TID==0){
	echo '<a href="javascript:;" title="点击推荐" onClick="usertj(\''.site_url('admin/ajax/usertj/').'\',1,'.$row->CS_ID.');return false"><font color=#ff0033>×</font></a>';
}else{
	echo '<a href="javascript:;" title="点击取消推荐" onClick="usertj(\''.site_url('admin/ajax/usertj/').'\',0,'.$row->CS_ID.');return false">√</a>';
}
?>
        </td>
		<td align="center">
			<a href="<?=site_url('admin/user/mmrz_edit/'.$row->CS_ID)?>?sid=1" onClick="return confirm('确定通过此会员吗?');">通过审核</a> ｜
			<a href="<?=site_url('admin/user/mmrz_edit/'.$row->CS_ID)?>?sid=2" onClick="return confirm('确定取消吗?');">取消通过</a>
		</td>
	</tr>
<?php } ?>

	<tr><td colspan='13'><span style="float:right;">会员：<?=$nums?>位&nbsp;&nbsp;&nbsp;&nbsp;<?=$pages?></span>
	</td></tr></table>
</body>
</html>

