first commit

This commit is contained in:
2024-05-31 14:18:00 +07:00
commit 1f8ef5e17f
4029 changed files with 777987 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?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>