<!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"></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="5" class="title">会员昵称管理 — <a href='<?=site_url('admin/user/nichen')?>?sid=2'>等待审核</a> — <a href='<?=site_url('admin/user/nichen')?>?sid=1'>已经审核</a></td></tr>
<TR align="center"><TD width="5%">序</TD><TD width="20%">昵称</TD><TD width="20%">所属会员</TD><TD width="20%">修改时间</TD><TD width="15%">操作</TD></TR>
<?php
 if(empty($user)) echo '<tr align="center"><td colspan="5" align="center">当前没有记录!</td></tr>';
 $i=1;
 foreach ($user as $row) { 
	    $rowu=$this->db->query("SELECT CS_Name FROM ".CS_SqlPrefix."user where cs_id=".$row->CS_UID."")->row();
		$uname=($rowu)?$rowu->CS_Name:'会员已删除';
		$cmd=($row->CS_SID==0)?"----":"<a href='".site_url('admin/user/nichen_save')."?id=".$row->CS_ID."&sid=1'>通过</a> ｜ <a href='".site_url('admin/user/nichen_save')."?id=".$row->CS_ID."&sid=2'>不通过</a>";
        echo "<TR align='center'><TD>".$i."</TD><TD>".$row->CS_Nichen."</TD><TD>".$uname."</TD><TD>".date('Y-m-d H:i:s',$row->CS_AddTime)."</TD><TD>".$cmd."</TD></TR>";
 $i=$i+1;
 } 
?>
<tr><td colspan=5><span style='float:right;'>记录数：<?=$nums?>&nbsp;&nbsp;<?=$pages?></span></td>
</tr>
</table>
</body>
</html>

