<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="get" action="admincp.php">
    <input type="hidden" name="action" value="<?=$action?>" />
    <input type="hidden" name="file" value="<?=$file?>" />
    <div class="space">
        <div class="subtitle">用户管理 - 搜索用户</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="10%" class="altbg1">用户名:</td>
                <td width="30%"><input type="text" name="search[username]" class="txtbox2" value="<?=$search['username']?>" /></td>
                <td width="10%" class="altbg1">会员组:</td>
                <td width="20%"><select name="search[groupid]">
                    <option value="0" selected="selected">请选择用户组</option>
                    <?=$group_opt?>
                </select></td>
                <td width="30%" class="altbg1"><input type="submit" value="搜索用户" class="btn" /></td>
            </tr>
        </table>
    </div>
</form>
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&">
    <div class="space">
        <div class="subtitle">用户列表</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr class="altbg1">
                <td width="5%">删?</td>
                <td width="*">用户名</td>
                <td width="10%">用户组</td>
                <td width="7%">积分</td>
                <td width="7%">金币</td>
                <td width="7%">鲜花</td>
                <td width="7%">点评</td>
                <td width="7%">回应</td>
                <td width="15%">最后登录</td>
                <td width="10%">IP</td>
                <td width="6%">操作</td>
            </tr>
            <? if($members) { foreach($members as $member) { ?>
            <tr>
                <td><input type="checkbox" name="uid[]" value="<?=$member['uid']?>" /></td>
                <td><a href="<?=$_modules['space']['url']?>index.php?suid=<?=$member['uid']?>" target="_blank"><?=$member['username']?></a></td>
                <td><?=$member['groupname']?></td>
                <td><?=$member['point']?></td>
                <td><?=$member['coin']?></td>
                <td><?=$member['flowers']?></td>
                <td><?=$member['reviews']?></td>
                <td><?=$member['responds']?></td>
                <td><?=$member['logintime']?></td>
                <td><?=$member['loginip']?></td>
                <td><?if($admin->admintype != 1){?>-<?}else{?><a href="admincp.php?action=<?=$action?>&file=edit&sub=basic&uid=<?=$member['uid']?>">修改</a><?}?></td>
            </tr>
            <? }  ?>
            <tr class="altbg1">
                <td colspan="11">
                    <input type="button" name="select" value="全选" class="btn2" onclick="checkbox_checked('uid[]');" />
                </td>
            </tr>
            <? } ?>
        </table>
        <?if($multipage){?><div class="multipage"><?=$multipage?></div><?}?>
        <center><input type="submit" name="dosubmit" value=" 提交 " class="btn" /></center>
    </div>
</form>
</div>