first commit
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
include("../koneksi.php");
|
||||
$filter_status=$_POST['filter_status'];
|
||||
$data_pegawai_id=$_POST['data_pegawai_id'];
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("#tabel_data_inbox_tg").DataTable({"stateSave": true,"paging": true,"lengthChange": true,"searching": true,"ordering": false,"info": true,"autoWidth": false});
|
||||
</script>
|
||||
<table id="tabel_data_inbox_tg" class="table table-striped table-condensed table-bordered" cellpadding="1" style="font-family:'RubReg';font-size:13px">
|
||||
<thead>
|
||||
<tr style="text-align:center;color:black;font-weight:bold">
|
||||
<td align="center"width="30px;">NO</td>
|
||||
<td align="center" width="350px;" style="display:none">NAMA</td>
|
||||
<td align="center" width="100px;">TGL USULAN</td>
|
||||
<td align="center" width="250px;">STATUS USULAN</td>
|
||||
<td align="center">KETERANGAN</td>
|
||||
<td align="center" width="120px;">TGL VERIFIKASI</td>
|
||||
<td align="center" width="40px;">TOOLS</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="color:black">
|
||||
<?php
|
||||
$no=1;
|
||||
$d=pg_query("SELECT i.id,i.data_pegawai_id,i.tgl_usulan,i.tgl_verifikasi,i.status,i.ket,p.nama
|
||||
FROM riwayat_ship i
|
||||
INNER JOIN data_pegawai p ON (p.id=i.data_pegawai_id)
|
||||
WHERE i.id IS NOT NULL AND p.id=$data_pegawai_id
|
||||
".($filter_status== 'BELUM VERIFIKASI' ? "AND i.tgl_verifikasi IS NULL AND i.status IS NULL" : "
|
||||
".($filter_status== 'SELESAI VERIFIKASI' ? "AND i.tgl_verifikasi IS NOT NULL AND i.status='SELESAI VERIFIKASI'" : "
|
||||
".($filter_status== 'TIDAK MEMENUHI SYARAT' ? "AND i.tgl_verifikasi IS NULL AND i.status='TIDAK MEMENUHI SYARAT'" : "
|
||||
".($filter_status== 'TIDAK DISETUJUI' ? "AND i.tgl_verifikasi IS NULL AND i.status='TIDAK DISETUJUI'" : "
|
||||
".($filter_status== 'BATAL' ? "AND i.status='BATAL'" : "
|
||||
".($filter_status== 'REVISI' ? "AND i.status='REVISI'" : "
|
||||
".($filter_status== 'ARSIP' ? "AND i.status='ARSIP'" : "AND (i.status IS NOT NULL AND i.status <> 'REVISI')")."
|
||||
")."
|
||||
")."
|
||||
")."
|
||||
")."
|
||||
")."
|
||||
")."
|
||||
ORDER BY i.tgl_usulan DESC
|
||||
");
|
||||
while($r=pg_fetch_array($d)) {
|
||||
if (($r['tgl_verifikasi']==NULL) && ($r['status']==NULL)) {$st='BELUM VERIFIKASI';} else {$st=$r['status'];}
|
||||
?>
|
||||
<tr>
|
||||
<td class="kiri" align="center"><?php echo $no; ?></td>
|
||||
<td style="display:none"><?php echo $r['nama']; ?></td>
|
||||
<td align="center"><?php
|
||||
if (($r['tgl_usulan']==null) || ($r['tgl_usulan']=='1970-01-01 00:00:00')) {} else {
|
||||
echo date('d-m-Y',strtotime($r['tgl_usulan'])); }
|
||||
?>
|
||||
</td>
|
||||
<td align="center"><?php echo $st; ?></td>
|
||||
<td><?php echo $r['ket']; ?></td>
|
||||
<td align="center"><?php
|
||||
if (($r['tgl_verifikasi']==null) || ($r['tgl_verifikasi']=='1970-01-01 00:00:00')) {} else {
|
||||
echo date('d-m-Y',strtotime($r['tgl_verifikasi'])); }
|
||||
?>
|
||||
</td>
|
||||
|
||||
<td align="center" class="kanan">
|
||||
<!--<button type="button" name="detail_tg" style="height:22px;"class="btn btn-success btn-xs detail_tg" id="<?php echo $r['id'];?>" data-content="Detail" rel="popover" data-placement="top" data-trigger="hover"
|
||||
>
|
||||
<i class="fa fa-arrow-right"></i>
|
||||
</button>-->
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$no++;
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
$('button[name="detail"]').popover();
|
||||
|
||||
$("#tabel_data_inbox_tg").on('click','.detail_tg',function(){
|
||||
var riwayat_ship_id = $(this).attr('id');
|
||||
var currentRow=$(this).closest("tr");
|
||||
var nama = currentRow.find("td:eq(1)").text();
|
||||
$('#modal_verifikasi').modal('show');
|
||||
$('#modal_body_verifikasi').html("");
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "app/st_ship/modal_verifikasi_rev.php",
|
||||
data: 'riwayat_ship_id='+riwayat_ship_id,
|
||||
success: function(data){
|
||||
$('#modal_body_verifikasi').html(data);
|
||||
$('#modal_head_verifikasi').html('REVISI Fellowship a.n. '+nama);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user