<?php
 include template("header"); ;echo '<div id="menu2"><a href="'; echo WEB_ROOT; ;echo '/manage/account.php?state=manager">管理员</a>&nbsp;|
    <a href="'; echo WEB_ROOT; ;echo '/manage/account.php?state=close">关闭的用户</a>&nbsp;|
    <a href="'; echo WEB_ROOT; ;echo '/manage/account.php">全部用户</a>
</div>
<div id="info" style="display:none">info</div>
<div id="data">
    <table>
        <thead><tr><th>ID</th><th>用户名</th><th>真实姓名</th><th>性别</th><th>邮箱</th><th>手机</th><th>QQ</th>
                <th>注册时间</th><th>上次登录</th><th>用户等级</th><th>余额</th></tr></thead>
        '; if(is_array($users)){foreach($users AS $index=>$one) { ;echo '        <tr id="user_'; echo $one['id']; ;echo '" onmouseover="cart_item_over(\'user_'; echo $one['id']; ;echo '\')" onmouseout="cart_item_out(\'user_'; echo $one['id']; ;echo '\')">
            <td>'; echo $one['id'] ;echo '</td>
            <td><a href="'; echo WEB_ROOT; ;echo '/manage/account_detail.php?id='; echo $one['id'] ;echo '">'; echo $one['username'] ;echo '</a></td>
            <td>'; echo $one['realname'] ;echo '</td>
            <td>'; echo gender($one['gender']) ;echo '</td>
            <td>'; echo $one['email'] ;echo '</td>
            <td>'; echo $one['mobile'] ;echo '</td>
            <td>'; echo $one['qq'] ;echo '</td>
            <td>'; echo date('Y-m-d H:i:s',$one['create_time']) ;echo '</td>
            <td>'; echo date('Y-m-d H:i:s',$one['login_time']) ;echo '</td>
            <td>'; echo $one['level'] ;echo '</td>
            <td>'; echo $one['money'] ;echo '</td>
        </tr>
        '; }} ;echo '        <tr><td colspan="11">'; echo $pagestring; ;echo '</td></tr>
    </table>
</div>
<div id="fm">
    <h2>标题</h2>
    <form id="login-user-form" method="post" action="/account/login.php" class="validator">
    </form>
</div>
<div id="op">
    <h2>操作部分</h2>
</div>
<div id="help">help</div>
'; include template("footer"); ?>
