<DIV style="width: 95%; border:none; margin-right: auto; margin-left: auto; margin-bottom: 20px; ">
<table class="table">
    <form action="index.php?c=user&action=user_<?php echo $action; ?>&id=<?php echo $id; ?>" method="post"
          enctype="application/x-www-form-urlencoded">
        <tr>
            <td width="100">用户名</td>
            <td><input type="text" value="<?php echo $result[0]['username'] ?>" name="username"/></td>
        </tr>
        <?php
        if ($action == 'edit') {
            ?>
            <tr>
                <td>密码</td>
                <td><?php echo $result[0]['password_o'] ?> <a href="index.php?c=user&action=reset_pwd&id=<?php echo $id ?>">重设</a></td>
            </tr>
            <?php
        }
        ?>
        <tr>
            <td>email</td>
            <td><input type="text" value="<?php echo $result[0]['email'] ?>" name="email"/></td>
        </tr>
        <tr>
            <td>手提电话</td>
            <td><input type="text" value="<?php echo $result[0]['mobi'] ?>" name="mobi"/></td>
        </tr>
        <tr>
            <td>全名</td>
            <td><input type="text" value="<?php echo $result[0]['fullname'] ?>" name="fullname"/></td>
        </tr>
        <?php if($action == 'edit')
        {?>
        <tr>
            <td>注册时间</td>
            <td><?php echo $result[0]['reg_time']?></td>
        </tr>
    <?php }?>
        <tr>
            <td></td>
            <td><input type="submit" value="提交"/></td>
        </tr>
    </form>
</table>
</DIV>
        <?php if($reg_list)
        {
            ?>
            <h3><i class="fa fa-table"></i> 赛事纪录</h3>
            <table class="table">
                <thead>
                <tr>
                    <td>赛事id</td>
                    <td>真实姓名</td>
                    <td>电话</td>
                    <td>证件编号</td>
                    <td>电子邮件</td>
                    <td>生日</td>
                    <td>详细信息</td>
                </tr>
                </thead>
                <tbody>
            <?php 
            foreach($reg_list as $row)
            {
                ?>
<tr>
    <td><?php echo $row['race_id']?></td>
    <td><?php echo $row['realname']?></td>
    <td><?php echo $row['tel']?></td>
    <td><?php echo $row['id_card']?></td>
    <td><?php echo $row['email']?></td>
    <td><?php echo $row['born']?></td>
    <td><a href="index.php?c=race&action=race_reg_member_list&race_id=<?php echo $row['race_id']?>&user_id=<?php echo $row['user_id']?>"><i class="fa fa-search"></i></a></td>
</tr>
                <?php
            }
            ?>

         </tbody>
        </table>
            <?php
        }?>