{dede:config.pagesize value="20"/}
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title>网站会员管理</title>
<link href='../img/base.css' rel='stylesheet' type='text/css'>
<link href='img/base.css' rel='stylesheet' type='text/css'>
<style type="text/css">
.rb{ border-right:1px solid #666666 }
.tb{ border-top:1px solid #666666 }
</style>
</head>
<body background='img/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D1DDAA" style="margin-bottom:6px">
  <tr>
    <td height="30" align="center" bgcolor="#FAFCEF"> 
  <form action="member_main.php" name="form1" method="get">
	  <table border="0" cellspacing="0" cellpadding="3">
      <tr>
          <td>关键字：</td>
          <td><input name="keyword" type="text" id="keyword" size="12" style="width:120px" value="{dede:global name='keyword'/}" /></td>
          <td>&nbsp;排序：</td>
          <td>
		        <select name="sortkey" id="sortkey" style="width:120px">
              {dede:global name='sortform'/}
				      <option value="mid">mid/注册时间</option>
              <option value="logintime">登录时间</option>
              <option value="spaceshow">空间访问量</option>
              <option value="pageshow">文档总点击量</option>
            </select>
          </td>
          <td>
		         <select name="sex" id="sex" style="width:50px">
               {dede:global name='sexform'/}
               <option value="男">男</option>
               <option value="女">女</option>
               <option value="保密">保密</option>
             </select>
          </td>
          <td>
          	<select name="mtype" id="mtype" style="width:50px">
               {dede:global name='mtypeform'/}
               <option value="个人">个人</option>
               <option value="企业">企业</option>
             </select>
          </td>
          <td>
		         <select name="spacesta" id="spacesta" style="width:150px">
              <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>
		     </td>
         <td>
           <input name="imageField" class="np" type="image" src="img/button_search.gif" width="60" height="22" border="0" />
          </td>
        </tr>
      </table>
	  </form>
    </td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">
  <tr> 
  <td height="28" colspan="7" background="img/tbg.gif">
   <table width="99%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td width="29%">&nbsp;<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?att=ad">被推荐</a> |
          <a href="member_main.php?att=mb">非普通</a> &nbsp;
       </td>
     </tr>
  </table>
 </td>
</tr>
  <tr bgcolor="#FEFCEF" height="26" align="center"> 
    <td width="17%">登录名</td>
    <td width="16%">email/昵称</td>
    <td width="5%">性别</td>
    <td width="10%">会员等级</td>
    <td width="20%">会员属性</td>
    <td width="14%">最后登录</td>
    <td>操作</td>
  </tr>
{dede:datalist} 
<tr height="26" align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#EDF7D0';"
  	 onMouseOut="javascript:this.bgColor='#FFFFFF';"> 
  <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>
  	{dede:field.rank function="GetMemberName(@me,'限制会员')"/}
  </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>
  </td>
</tr>
{/dede:datalist} 
<tr bgcolor="#F1FDE3"> 
 <td height="36" colspan="7" align="center">
	{dede:pagelist listsize='6' /}
 </td>
</tr>
</table>
</body>
</html>