perubahan surat disposisi

This commit is contained in:
2024-07-14 13:15:09 +07:00
parent c3bff35638
commit 77e95ff2ee
109 changed files with 2140 additions and 2086 deletions
+47 -43
View File
@@ -1,51 +1,55 @@
<?php
include("../koneksi.php");
$komen_id=$_POST['id'];
<?php
include("../koneksi.php");
$komen_id = $_POST['id'];
$baseURL = '../../../public/doc/';
$dir = 'tindaklanjut/img/';
?>
<!--
<div class="row port">
<div class="portfolioContainer"> -->
<?php
$dok=pg_query("SELECT * FROM scan_komen WHERE komen_id='$komen_id' AND LOWER(file) LIKE ANY (ARRAY['%jpg','%jpeg','%png']) ORDER BY id DESC");
while($rdok=pg_fetch_array($dok)) {$foto=$rdok['file'];$file_id=$rdok['id'];
?>
<div class="row">
<div class="col-lg-12">
<button type="button" id="<?php echo $file_id; ?>" class="btn btn-block btn-success waves-effect waves-light pr_scan_surat">Print</button>
</div>
</div>
<br>
<?php
$dok = pg_query($koneksi, "SELECT * FROM scan_komen WHERE komen_id='$komen_id'
AND LOWER(file) LIKE ANY (ARRAY['%jpg','%jpeg','%png'])
ORDER BY id DESC
");
while ($rdok = pg_fetch_array($dok)) {
$foto = $rdok['file'];
$file_id = $rdok['id'];
?>
<div class="row">
<div class="col-lg-12">
<!-- <div class="gal-detail"> -->
<img name="pic" id="<?php echo $rdok['id']; ?>" src="<?php echo 'app/tindaklanjut/dok/'.$foto; ?>" class="img-thumbnail" alt="work-thumbnail">
<!-- </div> -->
</div>
<div class="col-lg-12">
<button type="button" id="<?php echo $file_id; ?>" class="btn btn-block btn-success waves-effect waves-light pr_scan_surat">Print</button>
</div>
</div>
<hr>
<?php
}
?>
<!--
<br>
<div class="row">
<div class="col-lg-12">
<center>
<!-- <div class="gal-detail"> -->
<img name="pic" id="<?php echo $rdok['id']; ?>" src="<?= $baseURL . $dir . $foto; ?>" class="img-thumbnail" alt="work-thumbnail">
<!-- </div> -->
</center>
</div>
</div>
</div> -->
<hr>
<?php
}
?>
<script>
$('.pr_scan_surat').click(function(){
var id = $(this).attr('id');
var w = 1000;
var h = 800;
var left = Number((screen.width/2)-(w/2));
var tops = Number((screen.height/2)-(h/2));
$.post('app/tindaklanjut/print_pic.php', { id : id}, function (result) {
WinId = window.open('toolbar=no, location=no, directories=no, status=no, menubar=yes, 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();
});
$('.pr_scan_surat').click(function() {
var id = $(this).attr('id');
var w = 1000;
var h = 800;
var left = Number((screen.width / 2) - (w / 2));
var tops = Number((screen.height / 2) - (h / 2));
$.post('app/tindaklanjut/print_pic.php', {
id: id
}, function(result) {
WinId = window.open('toolbar=no, location=no, directories=no, status=no, menubar=yes, 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();
});
});
</script>