<?php 
defined('IN_HS') or exit('Access Denied');
include admintpl('header');
?>
<body>
<table cellpadding='2' cellspacing='1' border='0' align='center' class='tableBorder'>
  <tr>
    <td class='pagemenu' align="center">
	<input type="button" class="btn" value="所有会员" onClick="javascript:location.href='?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>'"> 
	<input type="button" class="btn" value="管理员" onClick="javascript:location.href='?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&groupid=1'"> 
	<input type="button" class="btn" value="普通会员" onClick="javascript:location.href='?mod=<?=$mod?>&file=<?=$file?>&action=<?=$action?>&groupid=6'">	
	</td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
  <tr>
    <td ></td>
  </tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
<form method="get" name="search" action="?">
  <tr>
    <td width=10%><strong>会员搜索</strong></td>
    <td width=20%>用户名：<input name='username' type='text' size='20' value='<?=$username?>'></td>
	<td width=70%>
<input name='mod' type='hidden' value='<?=$mod?>'>
<input name='file' type='hidden' value='<?=$file?>'>
<input name='action' type='hidden' value='<?=$action?>'>
<input name='submit' type='submit' class='btn' value=' 搜索 '>
</td>
</tr>
</form>
</table>

<form method="post" name="myform">
<table cellpadding="2" cellspacing="1" class="tableborder">
<tr align="center">
<td width="8%" class="tablerowhighlight">选中</td>
<td width="22%" class="tablerowhighlight">用户名</td>
<td width="10%" class="tablerowhighlight">用户类型</td>
<td width="10%" class="tablerowhighlight">资金</td>
<td width="10%" class="tablerowhighlight">消费</td>
<td width="20%" class="tablerowhighlight">最后登录</td>
<td width="*" class="tablerowhighlight">管理操作</td>
</tr>
<?php 
if(is_array($members))
{
foreach($members as $member){ ?>
<tr align="center">
<td><input class="checkbox_style" type="checkbox" name="userid[]"  id="userid[]" value="<?=$member['userid']?>" <?=($member['userid'] == $_userid ? 'disabled' : '')?>></td>
<td><?=$member['username']?></td>
<td><?=$GROUP[$member['groupid']]['groupname']?></td>
<td><?=$member['money']?>元</td>
<td><?=$member['payment']?>元</td>
<td title="最后登录IP：<?=$member['lastloginip']?>&#10登录次数：<?=$member['logintimes']?>"><?=$member['lastlogintime']?></td>
<td align="center"><input type="button" class="btn" value=" 修改资料 " onClick="javascript:location.href='?mod=<?=$mod?>&file=member&action=edit&userid=<?=$member['userid']?>'"></td>
</tr>
<?php } 
}
?>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10%"><input class="checkbox_style" name='chkall' type='checkbox' id='chkall' onclick='checkall(this.form)' value='checkbox'>全选/反选</td>
    <td>
<input type="submit" class="btn" name="submit1" value="批量锁定" onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=lock&val=1'">&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="btn" name="submit2" value="批量解锁" onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=lock&val=0'">&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="btn" name="submit3" value="批量移动" onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=move'">&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="btn" name="submit4" value="批量删除" onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=delete'">&nbsp;&nbsp;
</td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="30">
  <tr>
    <td align="center"><?=$pages?></td>
  </tr>
</table>
</form>
</body>
</html>
