53 lines
757 B
PHP
53 lines
757 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 WHERE id='$id'");
|
|
while($r=pg_fetch_array($d)) {$file=$r[0];}
|
|
?>
|
|
|
|
<img src="app/kirim/dok/<?php echo $file; ?>">
|
|
|
|
<script type="text/javascript">
|
|
window.print();
|
|
window.close();
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|