51 lines
2.1 KiB
PHP
51 lines
2.1 KiB
PHP
<?php
|
|
include ('../../koneksi.php');
|
|
$id=$_POST['id'];
|
|
$data=pg_query("SELECT * FROM jenis_arsip WHERE id='$id'");
|
|
while($row=pg_fetch_array($data)) {
|
|
$id=$row['id'];
|
|
$jarsip=$row['jenis'];
|
|
$jaktif=$row['aktif'];
|
|
$jinaktif=$row['inaktif'];
|
|
$jketerangan=$row['keterangan'];
|
|
}
|
|
?>
|
|
|
|
|
|
<form role="form">
|
|
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Jenis Arsip</label>
|
|
<input type="hidden" value="<?php echo $id; ?>" id="jarsip_id">
|
|
<input type="text" class="form-control" value="<?php echo $jarsip; ?>" id="jarsip">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Masa Aktif</label>
|
|
<input type="text" onkeypress="return hanyaAngka(event)" class="form-control" value="<?php echo $jaktif; ?>" id="jaktif">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Masa Inaktif</label>
|
|
<input type="text" onkeypress="return hanyaAngka(event)" class="form-control" value="<?php echo $jinaktif; ?>" id="jinaktif">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Keterangan</label>
|
|
<input type="text" class="form-control" value="<?php echo $jketerangan; ?>" id="jketerangan">
|
|
</div>
|
|
</form>
|
|
|
|
<script type="text/javascript">
|
|
function hanyaAngka(evt) {
|
|
var charCode = (evt.which) ? evt.which : event.keyCode
|
|
if (charCode > 31 && (charCode < 48 || charCode > 57))
|
|
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
|
|
|
|
</script>
|