Files
eletter-backup/app/tindaklanjut/print_pic.php
2024-05-31 14:18:00 +07:00

53 lines
770 B
PHP

<!DOCTYPE html>
<html>
<head>
<!-- App title -->
<title>E-LETTER RSSA</title>
</head>
<style type="text/css">
img {
width: 100%;
height: auto;
}
.breakAfter{
page-break-after: always;
}
@page
{
size: 210mm 430mm;
height: 430;
width: 210mm;
/* this affects the margin in the printer settings */
margin: 7mm 0mm 0mm 6mm;
}
body
{
margin-left: 30px;
}
</style>
<body>
<?php
include('../koneksi.php');
$id=$_POST['id'];
$d=pg_query("SELECT file FROM scan_komen WHERE id='$id'");
while($r=pg_fetch_array($d)) {$file=$r[0];}
?>
<img src="app/tindaklanjut/dok/<?php echo $file; ?>">
<script type="text/javascript">
window.print();
window.close();
</script>
</body>
</html>