perbaikan auto save kirim ke kabag umum, dan penambahan button kembalikan saat verif
This commit is contained in:
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 |
@@ -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>
|
||||
@@ -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.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user