first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
include('../../koneksi.php');
|
||||
$satuan_kerja_id=$_POST['satuan_kerja_id'];
|
||||
$riwayat_kegiatan_id=$_POST['riwayat_kegiatan_id'];
|
||||
$data=pg_query("SELECT
|
||||
id,quota
|
||||
FROM riwayat_quota WHERE satuan_kerja_id='$satuan_kerja_id' AND riwayat_kegiatan_id='$riwayat_kegiatan_id'");
|
||||
while($row=pg_fetch_array($data)) {
|
||||
$id=$row[0];
|
||||
$quota=$row[1];
|
||||
}
|
||||
?>
|
||||
|
||||
<form role="form">
|
||||
<div class="form-group">
|
||||
<label for="exampleInputEmail1">Quota</label>
|
||||
<input type="hidden" value="<?php echo $id; ?>" id="id">
|
||||
<input type="hidden" value="<?php echo $satuan_kerja_id; ?>" id="satuan_kerja_id">
|
||||
<input type="text" class="form-control" value="<?php echo $quota; ?>" id="quota" >
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
var id = $('#id').val();
|
||||
if ((id=='') || (id==null)) {$('#id').val('0');} else {}
|
||||
</script>
|
||||
Reference in New Issue
Block a user