<?php
$idg = $_GET['idg'];

$sql = mysqli_query($koneksi, "SELECT * FROM guru WHERE idg='$idg'");
$rs  = mysqli_fetch_assoc($sql);
?>

<div class="row">
    <div class="col-lg-12">
        <h3 class="page-header">
            <strong>Data Guru : <?php echo $rs['nama']; ?></strong>
        </h3>
    </div>
</div>

<div class="row">
<div class="col-lg-12">
<div class="panel panel-primary">
<div class="panel-heading">Data Guru</div>

<div class="panel-body">
<div class="row">

<div class="col-lg-6">
<fieldset disabled>

<div class="form-group">
<label>NIP</label><br>
<label><?php echo $rs['nip']; ?></label>
</div>

<div class="form-group">
<label>Nama</label>
<input type="text" class="form-control" value="<?php echo $rs['nama']; ?>">
</div>

<div class="form-group">
<label>Jenis Kelamin</label>

<div class="radio">
<label>
<input type="radio" <?php if($rs['jk']=="L") echo "checked"; ?>>
Laki - Laki
</label>
</div>

<div class="radio">
<label>
<input type="radio" <?php if($rs['jk']=="P") echo "checked"; ?>>
Perempuan
</label>
</div>

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

<div class="col-lg-6">
<div class="form-group">
<label>Alamat</label>
<textarea class="form-control" rows="3" disabled><?php echo $rs['alamat']; ?></textarea>
</div>
</div>

</div>
</div>

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