99 lines
4.4 KiB
PHP
99 lines
4.4 KiB
PHP
<?php
|
|
include('../koneksi.php');
|
|
$riwayat_kegiatan_id=$_POST['riwayat_kegiatan_id'];
|
|
$satker=$_POST['satker'];
|
|
?>
|
|
<script>var sess_satker = $('#cek_satker').val();</script>
|
|
|
|
<style type="text/css">
|
|
.jib {
|
|
font-family: 'Inter';
|
|
font-size: 13px;
|
|
white-space: pre-wrap;
|
|
word-break: keep-all;
|
|
border: 0;
|
|
color:black;
|
|
padding: 0px;
|
|
background: rgba(0, 151, 19, 0);
|
|
}
|
|
|
|
|
|
</style>
|
|
<input type="hidden" id="satker" value="<?php echo $satker; ?>">
|
|
<script type="text/javascript">$("#tabel_data_notulen").DataTable({"stateSave": true,"paging": true,"lengthChange": true,"searching": true,"ordering": false,"info": true,"autoWidth": false});</script>
|
|
<table id="tabel_data_notulen" class="table table-striped table-condensed" cellpadding="1">
|
|
<thead>
|
|
<tr>
|
|
<td>Pembahasan</td>
|
|
<td>Rencana Tindak Lanjut</td>
|
|
<td width="50px;">Tools</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$data = pg_query("SELECT pembahasan,tindak_lanjut,id FROM riwayat_notulen WHERE riwayat_kegiatan_id='$riwayat_kegiatan_id' ORDER BY id DESC");
|
|
while($row=pg_fetch_array($data)) {
|
|
?>
|
|
<tr>
|
|
<td class="kiri"><pre class="jib"><?php echo $row['pembahasan']; ?></pre></td>
|
|
<td><pre class="jib"><?php echo $row['tindak_lanjut']; ?></pre></td>
|
|
<td class="kanan">
|
|
<button type="button" name="edit_notulen" style="height:22px;" class="btn btn-teal btn-xs edit_notulen" id="<?php echo $row['id'];?>" data-content="Edit Data" rel="popover" data-placement="top" data-trigger="hover">
|
|
<i class="fa fa-pencil"></i>
|
|
</button>
|
|
<button type="button" name="hapus_notulen" style="height:22px;" class="btn btn-danger btn-xs hapus_notulen" id="<?php echo $row['id'];?>" data-content="Hapus" rel="popover" data-placement="top" data-trigger="hover">
|
|
<i class="fa fa-remove"></i>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$('button[name="edit_notulen"]').popover();
|
|
$('button[name="hapus_notulen"]').popover();
|
|
|
|
$("#tabel_data_notulen").on('click','.edit_notulen',function(){
|
|
var id = $(this).attr('id');
|
|
$('#modal_notulen').modal('show');
|
|
$('#modal_body_notulen').html("");
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "app/notulen/modal.php",
|
|
data: 'id='+id,
|
|
success: function(data){
|
|
$('#modal_body_notulen').html(data);
|
|
}
|
|
});
|
|
});
|
|
|
|
$("#tabel_data_notulen").on('click','.hapus_notulen',function(){
|
|
var x = confirm("Anda yakin ingin menghapus ?");
|
|
if (x) {
|
|
var key = "hapus_notulen";
|
|
var id = $(this).attr('id');
|
|
var rowElement = $(this).parent().parent();
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "app/notulen/crud.php",
|
|
data: 'id='+id
|
|
+'&key='+key,
|
|
success: function(data){
|
|
rowElement.fadeOut(500).remove();
|
|
}
|
|
});
|
|
} else {}
|
|
});
|
|
|
|
//$.post('app/peserta/main.php',{id : id, tujuan_rapat : tujuan_rapat, nm_ruangan : nm_ruangan, tgl_kegiatan : tgl_kegiatan, jam : jam, st_persiapan : st_persiapan},function(html){$("#main_tag").html(html);});
|
|
|
|
|
|
</script>
|
|
|