<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>网站会员管理</title>

<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="js/jquery.min.js" type="text/javascript"></script>	
<script type="text/javascript" src="js/admin.jquery.configuration.js"></script>

<script language="javascript" src="js/global.js"></script>
<script language="javascript" src="../include/js/dedeajax2.js"></script>
<script language="javascript" src="js/member.js"></script>
<style type="text/css">
.rb{ border-right:1px solid #666666 }
.tb{ border-top:1px solid #666666 }
</style>
</head>
<body>
<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
<?php include(DEDEADMIN.'/templets/menu.htm'); ?>
<script language="javascript">
$("#member").addClass("current");$("#member_main").addClass("current");</script>				

	<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>网站会员管理</h3>
					
					<ul class="content-box-tabs">

					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
<div class="tab-content  default-tab" id="tab1">				
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" style="margin-bottom:6px">
  <tr>
    <td align="center"> 
  <form action="member_main.php" name="form1" method="get">
	  关键字：
          <input name="keyword" type="text" id="keyword" size="12" style="width:120px" value="{dede:global name='keyword'/}" />
          &nbsp;排序：
          
		        <select name="sortkey" id="sortkey" style="width:120px">
              {dede:global name='sortform'/}
				      <option value="mid">mid/注册时间</option>
              <option value="logintime">登录时间</option>
              <option value="rank">会员等级</option>
              <option value="money">会员金币</option>
              <option value="scores">会员积分</option>
            </select>
          
          
		         <select name="sex" id="sex">
               {dede:global name='sexform'/}
               <option value="男">男</option>
               <option value="女">女</option>
               <option value="保密">保密</option>
             </select>
          
          
          	<select name="mtype" id="mtype" >
               {dede:global name='mtypeform'/}
               <?php
           		foreach($MemberModels as $row)
           		{
           			echo "<option value=".$row['name'].">".$row['name']."</option>\r\n";
           		}
           	   ?>
             </select>
          
          
		      <select name="spacesta" id="spacesta">
              <option value='-10'>--会员状态--</option>
              <?php
           		foreach($staArr as $k=>$v)
           		{
           			if($spacesta==$k) echo "<option value='$k' selected>$v</option>\r\n";
           			else echo "<option value='$k'>$v</option>\r\n";
           		}
           	  ?>
            </select>
         <input class="button" name="imageField" type="submit" value="搜索" />
         

	  </form>
    </td>
  </tr>
</table>
<form name="form2">
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1">
  <tr> 
  <td height="28" colspan="9">
   <table width="99%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td width="29%" style="padding-left:10px;"><strong>注册会员列表</strong></td>
       <td width="71%" align="right">
          <a href="member_main.php">所有会员</a> |
          <a href="member_main.php?spacesta=-2">被禁言用户</a> |
          <a href="member_main.php?matt=1">被推荐</a> |
          <a href="member_main.php?matt=0">普通</a> &nbsp;
       </td>
     </tr>
  </table>
 </td>
</tr>
  <tr height="30" align="center"> 
    <td width="3%">选择</td>
    <td width="5%">mid</td>
    <td width="11%">登录名</td>
    <td width="16%">email/昵称</td>
    <td width="5%">性别</td>
    <td width="8%">会员等级</td>
    <td width="20%">会员属性</td>
    <td width="14%">最后登录</td>
    <td>操作</td>
  </tr>
{dede:datalist} 
<tr height="26" align="center"> 
  <td><input name="mid" type="checkbox" id="mid" value="{dede:field.mid/}" class="np" /></td>
  <td>{dede:field.mid/}</td>
  <td><a href="../member/index.php?uid={dede:field.userid/}" target='_blank'>
    <?php
	  echo '<u>'.$fields['userid'].'</u>';
	if($fields['spacesta']==-2) echo "<font color='red'>(禁言)</font>";
	if($fields['spacesta']==-1) echo "<font color='red'>(未审核)</font>";
	  if(!empty($fields['face'])) {
       echo "<br /><img src='{$fields['face']}' width='60' alt='浏览会员空间' />";
	  }
	?>
  </a></td>
	<td>
	  {dede:field.email/}
	  <br />
	  昵称：{dede:field.uname/}
	</td>
  <td>
  	{dede:field.sex /}
  </td>
  <td>
  	<a href="member_main.php?rank={dede:field.rank/}">{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</a>
  </td>
  <td>
  	{dede:field.mtype /}用户 {dede:field.matt function="GetMAtt(@me)" /}
  	<br />
  	金币：{dede:field.money /} 积分：{dede:field.scores /}
  </td>
  <td>
  	{dede:field.logintime function="MyDate('y-m-d H:i',@me)" /}
  	<br />
  	【{dede:field.loginip /}】
  </td>
  <td align="center">
    <a href="member_view.php?id={dede:field.mid/}">修改</a> | 
    <a href="member_do.php?id={dede:field.mid/}&dopost=delmember">删除</a> |
    <a href="content_list.php?mid={dede:field.mid/}" target="_blank">文档</a> |
    <a href="member_toadmin.php?id={dede:field.mid/}" target="_self">提升</a>
  </td>
</tr>
{/dede:datalist} 
<tr> 
 <td height="36" colspan="9">
	&nbsp;
    <input class="button" name="imageField" type="button" value="全选" onclick="selAll()" />
    <input class="button" name="imageField" type="button" value="取消" onclick="noSelAll()" />
    <input class="button" name="imageField" type="button" value="删除" onclick="delArc()" />

 （如果已经整合了论坛的用户请不要使用批量删除功能）</td>
</tr>
<tr> 
 <td height="36" colspan="9" align="center">
	{dede:pagelist listsize='6' /}
 </td>
</tr>
</table>
							<div class="clear"></div><!-- End .clear -->
							
						
						
					</div> <!-- End #tab1 -->

					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="clear"></div>
			
           <?php include(DEDEADMIN.'/templets/footer.htm'); ?>
			
		</div> <!-- End #main-content -->	
	</div>
</body>
</html>