92 lines
4.7 KiB
PHP
92 lines
4.7 KiB
PHP
<?php
|
|
include('../koneksi.php');
|
|
$riwayat_ship_id=$_POST['riwayat_ship_id'];
|
|
$tujuan_ship=$_POST['tujuan_ship'];
|
|
$d=pg_query("SELECT status,tgl_verifikasi,ket,ket_dokdir,ket_dokbkd FROM riwayat_ship WHERE id=$riwayat_ship_id");
|
|
while($r=pg_fetch_array($d)) {
|
|
$status=$r[0];
|
|
$tgl_verifikasi=$r[1];
|
|
$ket=$r[2];
|
|
$ket_dokdir=$r[3];
|
|
$ket_dokbkd=$r[4];
|
|
}
|
|
?>
|
|
<input type="hidden" id="st_riwayat_ship_id" value="<?php echo $riwayat_ship_id; ?>">
|
|
<input type="hidden" id="tujuan_ship_yx" value="<?php echo $tujuan_ship; ?>">
|
|
<div id="tabel_rw_kelengkapan"></div>
|
|
|
|
<br>
|
|
<div class="row">
|
|
<div class="col-lg-4">
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Status Usulan</label>
|
|
<select class="form-control" id="ri_status" disabled>
|
|
<option value="step"></option>
|
|
<option <?php if ($status=='REVISI') {echo "selected";} ?> value="REVISI">REVISI</option>
|
|
<option <?php if ($status=='SELESAI VERIFIKASI') {echo "selected";} ?> value="SELESAI VERIFIKASI">SELESAI VERIFIKASI</option>
|
|
<option <?php if ($status=='ARSIP') {echo "selected";} ?> value="ARSIP">ARSIP</option>
|
|
<option <?php if ($status=='TIDAK MEMENUHI SYARAT') {echo "selected";} ?> value="TIDAK MEMENUHI SYARAT">TIDAK MEMENUHI SYARAT</option>
|
|
<option <?php if ($status=='TIDAK DISETUJUI') {echo "selected";} ?> value="TIDAK DISETUJUI">TIDAK DISETUJUI</option>
|
|
<option <?php if ($status=='BELUM VERIFIKASI') {echo "selected";} ?> value="BELUM VERIFIKASI">BELUM VERIFIKASI</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-4">
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Tanggal Verifikasi</label>
|
|
<input type="text" class="date form-control" id="ri_tgl_verifikasi" placeholder="dd/mm/yyyy"
|
|
onkeyup="
|
|
var v = this.value;
|
|
if (v.match(/^\d{2}$/) !== null) {
|
|
this.value = v + '/';
|
|
} else if (v.match(/^\d{2}\/\d{2}$/) !== null) {
|
|
this.value = v + '/';
|
|
}
|
|
"
|
|
value="<?php
|
|
$jtr=date('d-m-Y',strtotime($tgl_verifikasi));
|
|
if (($jtr=="01-01-1970") || ($jtr==NULL) || ($jtr=="")) {
|
|
echo "";
|
|
} else {
|
|
echo date('d/m/Y',strtotime($jtr));
|
|
}
|
|
?>"
|
|
disabled>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-4">
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1">Pesan/Keterangan</label>
|
|
<input type="text" class="form-control" id="ri_ket" value="<?php echo $ket; ?>" disabled>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
if ($status=='SELESAI VERIFIKASI') {
|
|
?>
|
|
<div class="row">
|
|
<div class="col-lg-4">
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1" style="color:black;">File Persetujuan Direktur</label>
|
|
<div id="tabel_upl_dir"></div><br>
|
|
<input type="hidden" class="form-control" id="ket_dokdir" Placeholder="Keterangan persetujuan Direktur" value="<?php echo $ket_dokdir; ?>" disabled>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4">
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1" style="color:black">File Persetujuan BKD</label>
|
|
<div id="tabel_upl_bkd"></div><br>
|
|
<input type="hidden" class="form-control" id="ket_dokbkd" Placeholder="Keterangan persetujuan BKD" value="<?php echo $ket_dokbkd; ?>" disabled>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php } else {} ?>
|
|
<script>
|
|
var riwayat_ship_id=$('#st_riwayat_ship_id').val();
|
|
var tujuan_ship_yx=$('#tujuan_ship_yx').val();
|
|
$('#tabel_rw_kelengkapan').load('app/ship_inbox/tabel_verifikasi.php',{riwayat_ship_id:riwayat_ship_id, tujuan_ship:tujuan_ship_yx},function(){$('.abc').hide();});
|
|
$('#tabel_upl_dir').load("app/ship_inbox/pdf_dir/tabel_upl_cv.php",{riwayat_ship_idzz:riwayat_ship_id},function(){$('button[name="cv_deletse"]').hide();});
|
|
$('#tabel_upl_bkd').load("app/ship_inbox/pdf_bkd/tabel_upl_cv.php",{riwayat_ship_idzz:riwayat_ship_id},function(){$('button[name="cv_deletsez"]').hide();});
|
|
</script>
|