<?php include 'ckaryawan.php'; include 'header.php'; $cm = new ckaryawan(); $query = $cm->getSearch(); if ($data = mysql_fetch_array($query)) { ?> <div class="container"> <form action="index.php?hal=karyawan&file=edit" method="POST" > <legend>Input Data Karyawan</legend> <input type="hidden" name="id" value="<?php echo $data['id']; ?> " class="form-control"> <div class="form-group"> <label for="">Nama</label> <input type="text" name="nama" value="<?php echo $data['nama']; ?> " class="form-control" id="" placeholder="Input Nama Karyawan"> </div> <div class="form-group"> <label for="">Telpon</label> <input type="text" maxlength="12" name="telp" value="<?php echo $data['telp']; ?> " class="form-control" id="" placeholder="Input telepon"> </div> <div class="form-group">