perbaikan auto save kirim ke kabag umum, dan penambahan button kembalikan saat verif

This commit is contained in:
nana4895
2024-06-06 20:50:03 +07:00
parent 754b51f502
commit 11377f23d4
18 changed files with 711 additions and 677 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

+7 -5
View File
@@ -13,9 +13,9 @@ while ($r = pg_fetch_array($d)) {
?>
<form role="form">
<input type="text" id="surat_id_cek" value="<?php echo $id; ?>">
<input type="text" id="satuan_kerja_id_cek" value="<?php echo $satuan_kerja_id; ?>">
<input type="text" id="no_surat_cek" value="<?php echo $no_surat; ?>">
<input type="hidden" id="surat_id_cek" value="<?php echo $id; ?>">
<input type="hidden" id="satuan_kerja_id_cek" value="<?php echo $satuan_kerja_id; ?>">
<input type="hidden" id="no_surat_cek" value="<?php echo $no_surat; ?>">
<div class="form-group">
<label>Nomor Surat</label>
<input type="text" class="form-control" id="no_surat" value="<?php echo $no_surat; ?>">
@@ -134,7 +134,7 @@ while ($r = pg_fetch_array($d)) {
}
function simpan_tujuan_kirim() {
var surat_id = $('#surat_id_cek').val(); // nomer surat masih belum sinkron
var surat_id = $('#surat_id_cek').val();; // nomer surat masih belum sinkron
var satuan_kerja_id = $('#satuan_kerja_id_cek').val();
var kepada = 771; // ini ID dari SatKer Kepala Bagian Umum
@@ -229,6 +229,8 @@ while ($r = pg_fetch_array($d)) {
$('#perihal').focusout(function() {
simpkr();
simpan_tujuan_kirim();
setTimeout(function() {
simpan_tujuan_kirim();
}, 2000); // 120000 ms = 2 menit
});
</script>
+3 -3
View File
@@ -6,8 +6,8 @@ include('../koneksi.php');
$surat_id = $_POST['id'];
$satuan_kerja_id = $_POST['satuan_kerja_id'];
?>
<input type="text" id="surat_idg" value="<?php echo $surat_id; ?>">
<input type="text" id="satuan_kerja_idg" value="<?php echo $satuan_kerja_id; ?>">
<input type="hidden" id="surat_idg" value="<?php echo $surat_id; ?>">
<input type="hidden" id="satuan_kerja_idg" value="<?php echo $satuan_kerja_id; ?>">
<form role="form">
<div class="form-group md_kpd">
<!--<label>Kepada</label>-->
@@ -52,7 +52,7 @@ $satuan_kerja_id = $_POST['satuan_kerja_id'];
<!-- </datalist> -->
</div>
<button type="button" style="display: flex;" class="btn btn-success btn-block md_kpd" id="simpan_kepada_kr">Simpan</button>
<button type="button" style="display: none;" class="btn btn-success btn-block md_kpd" id="simpan_kepada_kr">Simpan</button>
</form>
<!-- <div class="row">
<div class="col-lg-6">
Binary file not shown.