<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&op=<?=$op?>&">
    <div class="space">
        <div class="subtitle">后台用户管理</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr class="altbg1">
                <td width="10%">删?</td>
                <td width="15%">用户名</td>
                <td width="20%">E-mail</td>
                <td width="15%">最后登录</td>
                <td width="15%">登录IP</td>
                <td width="15%">登录次数</td>
                <td width="10%">编辑</td>
            </tr>
            <tr class="altbg2">
                <td><input type="checkbox" disabled /></td>
                <td><?=$admin->adminname?></td>
                <td><?=$admin->email?></td>
                <td><?=$controluser['logintime']?></td>
                <td><?=$controluser['loginip']?></td>
                <td><?=$controluser['logincount']?></td>
                <td><a href="admincp.php?action=<?=$action?>&file=<?=$file?>&op=edit&adminid=<?=$admin->id?>">编辑</a></td>
            </tr>
            <? if($controlusers) { foreach($controlusers as $controluser) { ?>
            <tr>
                <td><input type="checkbox" name="adminids[]" value="<?=$controluser['id']?>" <?if(!$admin->is_founder){?>disabled<?}?> /></td>
                <td><?=$controluser['adminname']?></td>
                <td><?=$controluser['email']?></td>
                <td><?=$controluser['logintime']?></td>
                <td><?=$controluser['loginip']?></td>
                <td><?=$controluser['logincount']?></td>
                <td><?if(!$admin->is_founder){?>-<?}else{?><a href="admincp.php?action=<?=$action?>&file=<?=$file?>&op=edit&adminid=<?=$controluser['id']?>">编辑</a><?}?></td>
            </tr>
            <? } } ?>
            <tr class="altbg1">
                <td colspan="7">
                    <input type="button" name="select" value="全选" class="btn2" onclick="checkbox_checked('adminids[]');" />
                </td>
            </tr>
        </table>
        <?if($multipage){?><div class="multipage"><?=$multipage?></div><?}?>
        <center><input type="submit" name="userssubmit" value=" 提交 " class="btn" /></center>
    </div>
</form>
</div>