<?php include'header.php'; ?>	

<div class="app-content content">
    <div class="content-overlay"></div>
    <div class="content-wrapper">
        <div class="content-header row"></div>
        <div class="content-body"> 

                <div class="row">
                    <div class="col-12">
                        <div class="card">

                            <div class="card-header">
                                <h4 class="card-title mb-1">users</h4>
                            </div>

                            <div class="card-content">
                                <div class="card-body">



<!-- CUSTOMER LIST TABLE -->
<div class="table-responsive col-md-12 s-right mt-2">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>name </th>
                <th>number </th>
                <th>password</th>
                <th>status</th>
            </tr>
        </thead>

        <tbody>
<?php
$obj->sql("SELECT * FROM users ORDER BY id DESC");
$result = $obj->getResult();
foreach ($result as $row) { ?>
    <tr>
        <td><?php echo $row['name']; ?></td>
        <td><?php echo $row['number']; ?></td>
        <td><?php echo $row['password']; ?></td>
        <td><?php echo $row['status']; ?></td>
    </tr>
<?php } ?>

        </tbody>
    </table>
</div>


                        </div><!-- card-content -->
                    </div><!-- card -->
                </div>
            </div>
        </section>

    </div>
</div>
</div>
</div>

<div class="sidenav-overlay"></div>
<?php include'footer.php'; ?>
