first commit
This commit is contained in:
50
dev/app/master/jarsip/modal.php
Normal file
50
dev/app/master/jarsip/modal.php
Normal 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>
|
||||
Reference in New Issue
Block a user