user.php 2.67 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>用户信息查看</title>
    </head>
    <body>
    <br><br><br>
        <form method="post" action="<?php echo url('/user') ?>">
            <table>
                <tr>
                    <td>账号类型:</td>
                    <td>
                        <?php foreach ($this->view->types as $k => $v):?>
                            <input type="radio" name="type" id="type<?php echo $k ;?>" value="<?php echo $k?>" <?php if ($this->view->type == $k):?>checked="checked"<?php endif;?>> 
                            <label for="type<?php echo $k ;?>"><?php echo $v?></label>
                        <?php endforeach;?>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>账号名称:</td>
                    <td><input type="text" name="account" value="<?php echo $this->view->account ;?>"></td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td><input type="submit" value="查询 "></td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td colspan=2 style="color: red;"><?php echo $this->view->error ;?></td>
                </tr>
                <?php if ($this->view->userinfo):?>
                <tr>
                    <td colspan=2>账号列表</td>
                </tr>
                <?php foreach ($this->view->auth_list as $type => $val):?>
                <tr>
                    <td><?php echo $this->view->types[$type]?>:</td>
                    <td>
                    <?php echo $val['auth_id']?>
                    </td>
                </tr>
                <?php endforeach;?>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>用户ID:</td>
                    <td>
                    <?php echo $this->view->userinfo['uid'];?>
                    </td>
                </tr>
                <tr>
                    <td>状态: </td> 
                    <td>
                         <?php echo ($this->view->userinfo['state'])?'<font style="color:green;">有效</font>':'<font style="color:red;">禁用</font>';?><br>
                    </td>
                </tr>
                <?php endif;?>
            </table>
            
        </form>
    </body>
</html>