<table class="table">
    <tr>
        <td>序号</td>
        <td>用户名</td>
        <td>管理</td>
    </tr>
    <?php
    if ($result) {
        foreach ($result as $row) {
            ?>
            <tr>
                <td><a href="index.php?c=user&action=edit&id=<?php echo $row['id'] ?>"><?php echo $row['id'] ?></a></td>
                <td><a href="index.php?c=user&action=edit&id=<?php echo $row['id'] ?>"><?php echo $row['mobi'] ?></a></td>
                <td><a href="index.php?c=user&action=edit&id=<?php echo $row['id'] ?>"><i class="fa fa-pencil"></i></a>  </td>
            </tr>
            <?php
        }
    } else {
        ?>
        <tr>
            <td>nothing</td>
        </tr>
        <?php
    }
    ?>
</table>
</div>