Files
2025-10-09 12:30:11 +07:00

126 lines
5.1 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
$satker=$_POST['satker'];
?>
<script>var sess_satker = $('#cek_satker').val();</script>
<style type="text/css">
.no-border{
border:none;
}
</style>
<br>
<!-- Page-Title -->
<div class="row">
<div class="col-sm-12">
<div class="page-title-box">
<h4 class="page-title">Hasil Rapat</h4>
</div>
</div>
</div>
<!-- end page title end breadcrumb -->
<div class="row">
<div class="col-md-12">
<div class="">
<div class="card-box">
<div id="tabel_hasil"></div>
</div>
</div>
</div>
<div id="modal_hasil" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-full">
<div class="modal-content">
<div class="modal-header no-border">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Hasil Rapat</h4>
</div>
<div class="modal-body" id="modal_body_hasil"></div>
<div class="modal-footer" id="modal_footer_hasil">
<button type="button" class="btn btn-default waves-effect" data-dismiss="modal" id="keluar_hasil">Keluar</button>
<button type="button" class="btn btn-inverse waves-effect" data-dismiss="modal" id="print_hasil"><i class="fa fa-file"></i>&nbsp;&nbsp;PDF</button>
</div>
</div>
</div>
</div>
<script>
$('#tabel_hasil').load("app/hasil/tabel.php",{satker:sess_satker});
/*
$('#simpan_hasil').click(function(){
var id = $('#id_rw_kegiatan').val();
var no_undangan = $('#no_undangan').val();
var sifat_undangan = $('#sifat_undangan').val();
var lamp_undangan = $('#lamp_undangan').val();
var tgl_undangan = $('#tgl_undangan').val();
var key = 'simpan_hasil';
$.ajax({
type: "POST",
url: "app/hasil/crud.php",
data: 'id='+id
+'&no_undangan='+no_undangan
+'&sifat_undangan='+sifat_undangan
+'&lamp_undangan='+lamp_undangan
+'&tgl_undangan='+tgl_undangan
+'&key='+key,
success: function(data){
$('#modal_hasil').modal('hide');
$('body').removeClass('modal-open');
$('.modal-backdrop').remove();
alert('Undangan terkirim ke masing-masing satuan kerja pegawai yang diundang..');
$('#tabel_hasil').load("app/hasil/tabel.php");
}
});
});
*/
$("#modal_hasil").on("hidden.bs.modal", function () {
$(this).off('hidden.bs.modal');
});
function print_hasil() {
var riwayat_kegiatan_id = $('#riwayat_kegiatan_id').val();
var w = 600;
var h = 800;
var left = Number((screen.width/2)-(w/2));
var tops = Number((screen.height/2)-(h/2));
$.post('app/hasil/pdf.php', { riwayat_kegiatan_id : riwayat_kegiatan_id}, function (result) {
window.open('app/hasil/pdf.php?riwayat_kegiatan_id='+riwayat_kegiatan_id,'newwin','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+tops+', left='+left);
});
}
$('#print_hasil').click(function(){
print_hasil();
});
/*
function tanda_terima() {
var id_rw_kegiatan = $('#id_rw_kegiatan').val();
var w = 600;
var h = 800;
var left = Number((screen.width/2)-(w/2));
var tops = Number((screen.height/2)-(h/2));
$.post('app/hasil/print_ttu.php', { id_rw_kegiatan : id_rw_kegiatan}, function (result) {
WinId = window.open('', 'newwin', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+tops+', left='+left);
WinId.document.open();
WinId.document.write(result);
WinId.document.close();
WinId.focus();
});
}
$('#ttu_peserta').click(function(){
tanda_terima();
});
*/
</script>