<div class="row">
    <div class="col-lg-12">
        <h3 class="page-header"><strong>Data Sekolah</strong></h3>
    </div>
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-primary">

            <div class="panel-body">
                <div class="table-responsive">

                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th class="text-center">Kode</th>
                                <th class="text-center">Nama Sekolah</th>
                                <th class="text-center">Alamat</th>
                                <th class="text-center">Aksi</th>
                            </tr>
                        </thead>

                        <tbody>
                        <?php
                        $sql = mysqli_query($koneksi, "SELECT * FROM sekolah");

                        while ($rs = mysqli_fetch_assoc($sql)) {
                        ?>
                            <tr>
                                <td><?= $rs['kode']; ?></td>
                                <td><?= $rs['nama']; ?></td>
                                <td><?= $rs['alamat']; ?></td>
                                <td class="text-center">
                                    <a href="./media.php?module=input_sekolah&act=edit_sekolah&id=<?= $rs['id']; ?>">
                                        <button class="btn btn-info">Edit</button>
                                    </a>
                                </td>
                            </tr>
                        <?php } ?>
                        </tbody>

                    </table>

                </div>
            </div>

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