<?php
// Mengambil data siswa yang sedang login berdasarkan ID Session
$id_siswa = $_SESSION['idu'];
$query = mysqli_query($koneksi, "SELECT * FROM siswa WHERE ids = '$id_siswa'");
$data = mysqli_fetch_array($query);
?>

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

<div class="row">
    <div class="col-lg-8">
        <div class="panel panel-primary">
            <div class="panel-heading">Detail Data Siswa</div>
            <div class="panel-body">
                <table class="table table-striped">
                    <tr>
                        <td width="200">NIS / Username</td>
                        <td width="10">:</td>
                        <td><strong><?php echo $data['nis']; ?></strong></td>
                    </tr>
                    <tr>
                        <td>Nama Lengkap</td>
                        <td>:</td>
                        <td><?php echo $data['nama']; ?></td>
                    </tr>
                    <tr>
                        <td>Alamat</td>
                        <td>:</td>
                        <td><?php echo $data['alamat']; ?></td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>