100 lines
3.5 KiB
PHP
100 lines
3.5 KiB
PHP
<?php
|
|
include("../koneksi.php");
|
|
$pekerjaan_id=$_POST['pekerjaan_id'];
|
|
$st_termin=$_POST['st_termin'];
|
|
$nilai_pelunasan=$_POST['nilai_pelunasan'];
|
|
$vr_pelunasan_id=$_POST['vr_pelunasan_id'];
|
|
$tglselsp=$_POST['tglselsp'];
|
|
?>
|
|
<style>
|
|
.numberCircle {
|
|
display: inline-block;
|
|
line-height: 0px;
|
|
border-radius: 50%;
|
|
background-color:red;
|
|
color:white;
|
|
}
|
|
|
|
.numberCircle span {
|
|
display: inline-block;
|
|
padding-top: 50%;
|
|
padding-bottom: 50%;
|
|
margin-left: 8px;
|
|
margin-right: 8px;
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
|
|
<input type="hidden" id="pekerjaan_idv" value="<?php echo $pekerjaan_id; ?>">
|
|
<input type="hidden" id="st_terminv" value="<?php echo $st_termin; ?>">
|
|
<input type="hidden" id="nilai_pelunasanv" value="<?php echo $nilai_pelunasan; ?>">
|
|
<input type="hidden" id="vr_pelunasan_idv" value="<?php echo $vr_pelunasan_id ?>">
|
|
<input type="hidden" id="tglselspv" value="<?php echo $tglselsp ?>">
|
|
<button type="button" class="btn btn-default btn-block" id="cari_databa" style="font-family:Arial;font-weight:bold;color:red">CARI DATA BA YANG DI-INPUT PENGADAAN <span class="numberCircle"><span id="bg_notifxxx"></span></span></button>
|
|
<br>
|
|
<div class="alert alert-icon alert-info alert-dismissible fade in" role="alert" style="color:green" id="info_setor">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<i class="mdi mdi-information"></i>
|
|
<span><strong>PERHATIAN!</strong></span><br>
|
|
<span>Bila data BA tidak tertera di tabel, silakan klik tombol 'CARI DATA BA YANG DI-INPUT PENGADAAN' diatas.</span><br>
|
|
</div>
|
|
<button type="button" class="btn btn-default btn-rounded btn-block" id="tambah_databa"><i class="fa fa-plus m-r-5"></i>Berita Acara</button>
|
|
<div id="tabel_databa"></div>
|
|
|
|
|
|
<script>
|
|
var pekerjaan_id = $('#pekerjaan_idv').val();
|
|
var st_termin = $('#st_terminv').val();
|
|
var nilai_pelunasan = $('#nilai_pelunasanv').val();
|
|
var vr_pelunasan_id = $('#vr_pelunasan_idv').val();
|
|
var tglselsp = $('#tglselspv').val();
|
|
$('#tabel_databa').load("app/input_ba/tabel_ba.php",{vr_pelunasan_id:vr_pelunasan_id, pekerjaan_id:pekerjaan_id, st_termin:st_termin, nilai_pelunasan:nilai_pelunasan, tglselsp:tglselsp});
|
|
|
|
$.ajax({
|
|
type: "POST",
|
|
url:'app/kendali/not_notif.php',
|
|
data: 'pekerjaan_id='+pekerjaan_id,
|
|
success: function(data){
|
|
if (data==0) {$('#bg_notifxxx').hide();} else {
|
|
$('#bg_notifxxx').show();
|
|
$('#bg_notifxxx').html(data);
|
|
}
|
|
}
|
|
});
|
|
|
|
$('#tambah_databa').click(function(){
|
|
var riwayat_ba_id = 0;
|
|
var pekerjaan_id = $('#pekerjaan_idv').val();
|
|
var vr_pelunasan_id = $('#vr_pelunasan_idv').val();
|
|
$('#modal_databa_baruc').modal('show');
|
|
$('#modal_body_databa_baruc').html("");
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "app/input_ba/modal_input_ba.php",
|
|
data: 'riwayat_ba_id='+riwayat_ba_id
|
|
+'&pekerjaan_id='+pekerjaan_id
|
|
+'&vr_pelunasan_id='+vr_pelunasan_id,
|
|
success: function(data){
|
|
$('#modal_body_databa_baruc').html(data);
|
|
}
|
|
});
|
|
});
|
|
|
|
$('#cari_databa').click(function(){
|
|
var pekerjaan_id = $('#pekerjaan_idv').val();
|
|
var vr_pelunasan_id = $('#vr_pelunasan_idv').val();
|
|
$('#modal_databa_caric').modal('show');
|
|
$('#modal_body_databa_caric').html("");
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "app/input_ba/modal_cari_ba.php",
|
|
data: 'pekerjaan_id='+pekerjaan_id
|
|
+'&vr_pelunasan_id='+vr_pelunasan_id,
|
|
success: function(data){
|
|
$('#modal_body_databa_caric').html(data);
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
</script>
|