<!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?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 method="post" Name="myForm" action="<?=site_url('admin/user/pldel')?>">
	<tr><td align="center" height="20" colspan="15" class="title">会员数据管理    
	 ｜ <select OnChange="location.href='<?=site_url('admin/user/index/')?>?sid='+this.value" style='width:120px'><option value=''>快速查找会员</option><option value="1">已认证会员</option><option value="2">未认证会员</option><option value="3">已推荐会员</option><option value="4">未推荐会员</option><option value="5">被锁定会员</option><option value="6">普通会员</option><option value="7">高级会员</option></select>
	 ｜ <A onclick="window.parent.document.getElementById('menu').contentWindow.showSearchForm('user',0);return false" href="javascript:;">会员搜索</A>
	</td></tr>
	<tr align="center">
		<td width="3%">选中</td>
		<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="12%">最后登入IP</td>
		<td width="9%">注册时间</td><td width="4%">推荐</td><td width="4%">↓状态</td><td width="4%">↓激活</td>
		<td width="4%">↓认证</td>
		<td width="8%">↓管理操作</td>
	</tr>
<?php
 if(empty($user)) echo '<tr align="center"><td colspan="15" align="center">当前没有记录!</td></tr>';
 foreach ($user as $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">
<?php
if(empty($row->CS_Logo)){
       echo '--';
}else{
       echo '<img src="'.$this->CsdjSkins->piclink('logo',$row->CS_Logo).'" style="cursor:url('.base_url().'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_LogNum?></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="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" id="sh<?=$row->CS_ID?>">
<?php
if($row->CS_SID==1){
	echo '<a href="javascript:;" title="点击解锁" onClick="usersh(\''.site_url('admin/ajax/usersh/').'\','.$row->CS_SID.','.$row->CS_ID.');return false"><font color=#ff0033>×</font></a>';
}else{
	echo '<a href="javascript:;" title="点击锁定" onClick="usersh(\''.site_url('admin/ajax/usersh/').'\','.$row->CS_SID.','.$row->CS_ID.');return false">√</a>';
}
?>
		</td>
		
		<td align="center" id="jh<?=$row->CS_ID?>">
<?php
if($row->CS_YID==1){
	echo '<a href="javascript:;" title="点击激活" onClick="userjh(\''.site_url('admin/ajax/userjh/').'\','.$row->CS_ID.');return false"><font color=#ff0033>×</font></a>';
}else{
	echo '√';
}
?>
		</td>

		<td align="center" id="rz<?=$row->CS_ID?>">
<?php
if($row->CS_RZID==0){
	echo '<a href="javascript:;" title="点击认证" onClick="userrz(\''.site_url('admin/ajax/userrz/').'\','.$row->CS_RZID.','.$row->CS_ID.');return false"><font color=#ff0033>×</font></a>';
}else{
	echo '<a href="javascript:;" title="点击取消认证" onClick="userrz(\''.site_url('admin/ajax/userrz/').'\','.$row->CS_RZID.','.$row->CS_ID.');return false">√</a>';
}
?>
			</td>
		<td align="center">
			<a href="<?=site_url('admin/user/edit/'.$row->CS_ID)?>">编辑</a> ｜
			<a href="<?=site_url('admin/user/del/'.$row->CS_ID)?>" onClick="return confirm('确定删除此会员吗?');">删除</a>
		</td>
	</tr>
<?php } ?>

	<tr><td colspan='15'><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>

